AI
OpenCode 2.0 unifies terminal, desktop, and web interfaces through shared background service
Anomaly's open-source coding agent receives a major architectural overhaul, consolidating its multiple interfaces into a single managed service with a redesigned API and new capabilities for background task execution.
1/6
The New Stack
OpenCode, the open-source coding agent from Anomaly, has officially moved version 2.0 out of beta, delivering what the company describes as a fundamental restructuring of how the tool operates. After three months of gradual rollout and developer feedback, the update is now considered production-ready, with the project moving its changelog to the 2.x series to reflect the shift.
Unified architecture across interfaces#
The most significant change in version 2.0 centers on consolidating OpenCode's various access points—terminal, web browser, and desktop applications—into a single shared background service. Previously, a client/server model existed but saw limited adoption beyond power users. Now the service launches automatically as a local background process, enabling all interfaces to communicate with the same underlying engine.
This architectural shift enables developers to start work in one interface and seamlessly continue in another. A developer might begin a coding task in the terminal, switch to the desktop application for visual editing, then move to the web interface—all while maintaining continuity. Additionally, custom scripts written with OpenCode's programmatic client can discover and connect to this local service, proving useful for automation and scheduled tasks.
The design also allows the service to be exposed to remote machines and integrated with external applications, opening possibilities for pairing with other tools and environments.
Redesigned API and development capabilities#
Alongside the architectural changes, Anomaly rebuilt OpenCode's API from scratch. The company acknowledged that its earlier version "grew haphazardly" as the field itself was still maturing, describing the original design as fundamentally flawed. The new API grants agents greater autonomy over their environment—they can create Git worktrees for isolated tasks, migrate existing sessions between branches, and detect or interrupt stalled operations.
Two new packages accompany this refresh: @opencode/client provides programmatic access through JavaScript and Effect, while @opencode/sdk offers an embeddable toolkit for developers who want to integrate OpenCode directly into custom applications or specialized environments like Cloudflare Durable Objects. The SDK uses the same underlying code as OpenCode's command-line tool, enabling consistent behavior across deployment contexts.

