OpenCode 2.0 puts terminal, desktop, and web on one shared service

A ground-up rewrite: MCP Code Mode is now the default, subagents run in the background, and an SDK embeds the agent anywhere — and every v1 plugin breaks.

Nowline OCT 13 8:00 AM banner

Top AI stories from the last hour

Top AI stories from the last hour

Copy markdown

  • Start a session in the terminal, finish it in the browser

    v2 runs a single background server per user that the TUI, desktop, and web apps all attach to, so a session opened in one surface continues in another. Scripts and scheduled jobs can discover and connect to that same local service, and you can expose it to other machines.

  • Code Mode is now the default for every MCP server

    Instead of one model round-trip per tool call, the agent writes JavaScript that calls several MCP tools in a single execution — cutting round trips and the context that tool definitions eat. You can also turn OpenAPI endpoints into callable functions.

  • Push a code review to another model and keep coding

    Subagents and shell commands can now run in the background: start a review on a different model while you keep working, or send a long-running foreground task to the background with a keystroke.

  • @opencode/sdk drops the whole agent into your own app

    The new SDK runs the same code as the CLI, so you can embed OpenCode in your servers or in environments like Cloudflare Durable Objects. The rebuilt @opencode/client (plain JS or Effect) also lets the agent create its own git worktree per task and interrupt a stuck session — though Anomaly says the SDK is still in progress.

  • The catch: every v1 plugin breaks and CLAUDE.md is ignored

    v1 plugins won't load on the new plugin API, the old server API is replaced (scripts move to @opencode/client), and v2 only reads AGENTS.md — move your CLAUDE.md guidance there. v1 and v2 can't share the `opencode` command, and auto-updates are gone: run `opencode upgrade --major` or `/update`.

  • v2 also stopped running your language servers

    It keeps the `lsp` config but no longer starts language servers or emits diagnostics — lean on your lint, typecheck, or compiler commands instead. Upside: it normalizes v1 config in memory without rewriting files, so trying v2 is non-destructive until you convert.