OpenCode 2.0 rewrites its API and runs a single server for all your agent sessions

OpenCode 2.0 rewrites its API and runs a single server for all your agent sessions

OpenCode 2.0 is a major overhaul that automatically runs a single background server for all clients—TUI, web, desktop, and programmatic. The API is rebuilt from scratch, and a new JavaScript interpreter lets agents script MCP servers and OpenAPI endpoints in one round trip. Background sub-agents and shell commands keep long tasks from blocking. The plugin API is now proven by 80+ internal plugins, and the SDK lets you embed OpenCode anywhere.

The old API grew haphazardly as we and the world collectively learned what agents are and should be. It was bad.
  1. ghrl

    I've been using OpenCode V2 since it first appeared on the website, and I can only repeat the positive views on usability, the client/server model and self-awareness/ability to edit it's config and write plugins.

    I'd like to mention two other impressive things about OpenCode.

    First, their issue tracker on GitHub works really well. They have the OpenCode GitHub App connected, and for any bug report it reads the issue, tests on the mentioned version and latest dev branch, and comments the findings along with a reproduction script. For TUI Bugs it even records a video. And all that in less than two minutes, usually.

    https://github.com/anomalyco/opencode/issues?q=is%3Aissue+st...

    Another thing they are working on is opentunnel, where you can tunnel services to https on <random>.opentunnel.xyz and its subdomains. What's notable is that the subdomain is persistent and unique to you, and a wildcard ssl cert is actually generated on your machine, so the platform cannot see the traffic. Their primary use case seems to be making the OpenCode Server usable from anywhere, but it can do much more with their cli:

    https://opentunnel.xyz/

  2. solarkraft

    It's good.

    Many of the annoyances from V1 are gone. Skills and plugins reload automatically (finally). Tasks can be backgrounded (though I think this doesn't happen automatically yet). There's a built-in skill for editing the configuration (finally I can retire mine). The front-end got some love. Apparently they re-architected the loop around Effect. Sub-sessions can be communicated with better. Configuration is loaded from the folder the session is created in rather than where the server was started.

    In general, this update largely takes OpenCode into the current age features-wise and is a good overhaul quality-wise. Just in time to stop my early switching away efforts, which would've been a pain because I know few other harnesses with such a strong server/client model.

  3. 5ak3t

    what happened to crush(charmbracelet/crush), it was being told as opencode successor?

  4. moretti

    Does opencode support anything similar to claude code's auto mode (https://code.claude.com/docs/en/permission-modes#eliminate-p...)?

    I'd like to switch to opencode, But "yolo mode" feels risky and manually approving every command the model runs kills the flow

  5. tomaskafka

    Anyone know how to turn off code mode?

    I just tried the excellent local https://www.liquid.ai/blog/lfm2-5-24b-a2b model, but the model is trained to talk in bash, while OpenCode stubbornly expects JavaScript, and there seems to be no way to make them work together. The model itself performs excellently in pi.

  6. zelosleone

    Never got used to opencode honestly, there is always this clunky feeling (same with pi but at least i can customize it more than anything.) and this feeling didn't go away with 2.0 either :/

  7. Lucasoato

    It’s great, they’re embracing even more the “everything’s a plugin” principle that has been pushed by other harnesses like Deepseek. Shoutout to all the AI model companies out there: if your subscription can’t be used on open code, I’ll buy something else.

    Many of the workarounds I had to develop for the v1 now come as native features in v2 (i.e. session rebinding to other folders), now the only thing that was missing is the ability of plugins to read the response you’re writing (useful if you want to have the double-Esc feature like in claude code).

  8. andunie

    Feels like more of the same, although I can't say because this article wasn't very readable so I couldn't bring myself to reading it.

    A list of big new features and changes would have been nicer.

    I hope they fixed the long delays to opening OpenCode I have been experiencing, and the huge database of old chats I don't care about anymore.

  9. afruitpie

    Native apps connecting to the OpenCode server is a great way to run sessions on remote hosts!

    I wish Claude Code would adopt the same model. The desktop app deploys a separate engine that restarts and clobbers long-running sessions upon reconnect (Remote Control is their recommended solution but requires a Claude.ai account).

    I’ve been vibe coding a native macOS Claude Code app that spawns a server that wraps Claude Code on remote hosts, but the UX and features are always lagging behind.

  10. egorfine

    I wonder why all of a sudden these harnesses want to run a permanent daemon on my machine? Like, all of them, and at the same time.

    (Obviously, this feature should not exist at all let alone be default.)

More from this day

2026-10-14