OpenCode, the open-source coding agent, shipped v2.2.3 at 09:55 UTC on Oct 30 with a built-in "Claude Agent" provider. After installing Claude Code and running claude auth login, users pick Claude Agent in /connect and can call Claude models through their own Claude Code login, whether that is a subscription, an API key or a cloud account. It runs the user's local claude program through Anthropic's public Claude Agent SDK, but turns off Claude Code's built-in tools and uses OpenCode's own tools and permission system instead. Hours earlier, OpenCode team member dax (@thdxr) teased on X "what if you could use your claude subscription in opencode", drawing about 2,300 likes.

Key Takeaways

  • ✓v2.2.3 shipped at 09:55 UTC on Oct 30; its first highlight is "Use Claude Code in OpenCode", from PR #58782 (release notes)
  • ✓Setup is three steps: install Claude Code, run claude auth login, and pick Claude Agent in /connect; OPENCODE_CLAUDE_PATH overrides the claude binary
  • ✓The design spec says it uses only the public SDK, never reads Claude Code's saved login and never intercepts or changes its requests; subscription, API key and cloud logins all work (spec)
  • ✓Claude Code's built-in tools, CLAUDE.md, hooks, MCP servers, skills, auto compaction and auto memory are all off; OpenCode's tools, permissions and compaction apply, with one claude process per session that stops after 5 idle minutes
  • ✓dax's (@thdxr) teaser post drew about 2,300 likes and 280 replies (post); no performance comparison has been published
🧭

Heavy Claude Code use: compare subscription limits and API bills

Compare 40 dev plans & simulate token costs vs $20/mo subscriptions

🔬

In-Depth Technical Analysis

Background

Many developers already pay for a Claude subscription, but that quota mostly lived inside Claude Code; using an open-source agent such as OpenCode meant setting up a separate pay-as-you-go API key. Third-party tools like T3 Code had already started connecting to users' own Claude Code logins through the Claude Agent SDK, and OpenCode now follows with a built-in provider. Before the release, OpenCode team member dax (@thdxr, whose bio says he builds @opencode at @anomalyco) asked on X "what if you could use your claude subscription in opencode", drawing about 2,300 likes and 280 replies.

How it works

According to the official design spec, OpenCode does not call Anthropic's API itself. It starts the user's local claude program through Anthropic's public Claude Agent SDK, never reads its saved login and never rewrites its requests. The key choice is to treat Claude Code as just another model provider: its built-in tools, CLAUDE.md, hooks, MCP servers, skills, auto compaction, auto memory and advisor tool are all off, and Claude may only call OpenCode's tools, exposed over MCP, under OpenCode's single permission system. That keeps session history model-agnostic; when you switch away from Claude and back, only the part Claude has not seen is sent. The trade-offs are that tool calls run one at a time, and each session holds one claude process that stops after 5 idle minutes and resumes on the next message.

Benchmarks

OpenCode has published no speed, cost or success-rate comparison between the Claude Agent provider and native Claude Code or direct API use. The spec only documents behavior: Claude Code's own system prompt plus a short OpenCode note, summarized thinking, and a requirement of Claude Code 2.1.248 or later.

Getting started

After updating to v2.2.3, install Claude Code, run claude auth login in a terminal, then run /connect in OpenCode and pick Claude Agent. Set OPENCODE_CLAUDE_PATH if claude is not on your PATH. Settings in ~/.claude and CLAUDE.md are ignored, so move them into OpenCode's AGENTS.md, skills and MCP config. Usage counts against your own Claude plan or account, so check your plan's terms first. The same release also speeds up long sessions in Desktop and includes breaking changes to @opencode/ai, so anyone importing that package directly should read the release notes.

Action HubReady to adopt this in production?

Benchmark side-by-side against alternatives, or calculate monthly token cost vs subscription break-even.

Up NextOpenCode 2.0 ships: one background service for TUI, web and desktop, Code Mode for all MCP servers, background subagents, and @opencode/sdk
Read Now→