OpenCode 2.0 turns the open-source coding agent into a scriptable background service
Anomaly's OpenCode 2.0 runs as one shared local service with a rebuilt API, Code Mode and background subagents, and V1 plugins and server integrations break.
Anomaly has published its OpenCode 2.0 announcement (October 12, 2026). The main change for builders is that the open-source coding agent now runs as a single background service on your machine. The terminal UI, web interface and desktop app all talk to that same process. According to Anomaly's post, scripts written with the @opencode/client package find the local service automatically, and the company pitches this for scheduled tasks. If you want agent automation you can script without tying yourself to one model vendor, that is the reason to look.
The post lists several other additions:
- A rebuilt server API. Anomaly says the old one "was bad."
- Code Mode, which turns MCP servers or OpenAPI endpoints into functions the agent can chain in one JavaScript script.
- Background subagents and background shell commands.
- An SDK for embedding OpenCode as a library.
The New Stack reports that 2.0 had been in public beta for about three months. During that time, developers were unsure whether it was stable and complained about missing release notes.
The cost is migration. The v1.19.0 release (October 11) adds opencode upgrade --major and stops installing updates automatically. AICoder and Developers Digest summarize the official migration guide, which lists three breaking changes:
- V1 plugins don't run.
- V1 server API integrations must move to
@opencode/client. - Layered
tui.jsonconfig is replaced by one globalcli.json.
Developers Digest also notes that V2 doesn't run language servers and only discovers AGENTS.md, not CLAUDE.md. That matters if you share a repo with Claude Code.
Still unclear is how authentication and security work when you expose the service to other hosts and connect with /pair. None of the sources cover it, so be careful exposing the service remotely until the docs do.
Sources
- OpenCode 2.0 · Opencode Notes
- OpenCode 1.19.0 opens the upgrade path to OpenCode 2: new plugin and server APIs, auto-updates now manual — AICoder · AICoder
- Releases · anomalyco/opencode · GitHub
- "A major overhaul": OpenCode 2.0 puts its terminal, desktop, and web apps on one shared service · The New Stack
- OpenCode 2: How to Upgrade From v1 Without Breaking Your Setup · Developers Digest