What this thread does
Do first: Keep a copy of the V1 setup, start V2 with opencode, and check existing supported definitions before choosing native conversion.
Short answer
V2 normalizes supported V1 fields in memory without rewriting the file. Native V2 syntax is optional. Both versions use the same command and configuration locations; remove a package-managed V1 install before installing V2. The curl installer replaces the V1 binary.
What to do
Project config can remain in opencode.json(c) or .opencode/opencode.json(c).
| V1 / existing form | Native V2 / action |
|---|---|
agent, deprecated mode maps | agents; old mode-map entries become primary agents |
prompt in JSON | system; keep agent Markdown bodies as instructions |
disable | disabled; the example preserves false |
maxSteps | steps |
Separate model, variant | provider/model#variant; example anthropic/claude-sonnet-5-5 + high → anthropic/claude-sonnet-5-5#high |
permission: {"edit":"deny"} | permissions: [{"action":"edit","resource":"*","effect":"deny"}] |
Agent temperature, top_p, options | Set sampling/provider controls on a model variant; agent request.body is retained but not sent to the model |
agent/, agents/, mode/, modes/ | All remain discoverable; preferred .opencode/agents/<name>.md |
Move mode/ or modes/ file to agents/ | Add mode: primary to frontmatter |
Move agent/ file to agents/ | Relative path preserves its path-derived ID |
tui.json(c) | On first V2 terminal startup, supported global tui.json settings and persisted preferences migrate if cli.json is absent; project-local settings are not migrated |
Convert every frontmatter field in one file together: any of permissions, request, system or disabled makes it V2. V1 fields such as name, tools, permission or temperature in that file are ignored with a log warning. At the top level, supported V1 and V2 fields can coexist; a valid native V2 value wins regardless of key order.
Limits and open questions
Keep each nested agent definition entirely in one format. Do not point V1 at files converted to V2-only syntax. V1 plugins do not run in V2 and must be ported to the new plugin API; server integrations also need their new API contracts. This page gives no release date for V2.
Not for: Claude Code agent Markdown configuration.
Sources
- Migrate from V1, OpenCode.
Checked
2026-11-17; read Migrate from V1; no command was run.
Started from a post by @OpenCode, packaged by the editor. Original post