1. Symvibe
  2. Compare
  3. OpenCode vs Claude Code

OpenCode vs Claude Code

OpenCode is an open-source coding agent that talks to almost any model provider; Claude Code is Anthropic's own agent for Claude models. The trade is freedom of models against a subscription that covers them, with a real difference in default permissions. OpenCode has two live lines, V1 and V2, so the page names the version where they differ. Checked against both projects' docs on 27 October 2026.

The short answer

  • Pick OpenCode if you want to choose the model per task from many providers, local models included, or want an MIT-licensed agent you can read and change.
  • Pick Claude Code if you want Claude models under a flat subscription. A Claude Pro or Max plan cannot be used in OpenCode, so Claude there means paying per token.
  • Use both: Claude Code for Claude models, OpenCode for the others, on the same repo and the same AGENTS.md.

At a glance

OpenCodeClaude Code
Made byAnomaly, MIT license, written in TypeScriptAnthropic, closed source
Models75+ providers through Models.dev, and local models through Ollama, LM Studio and vLLMClaude, through Anthropic, Bedrock, Google Cloud or Foundry
The agent itselfFreeIncluded in Claude plans from $20 a month, or the API
Sign in/connect, then a provider's credentials; a ChatGPT Plus or Pro plan and GitHub Copilot work tooA Claude account, a Console account or an API key
Default modelYour config's model; without one, a catalog default or the newest supported model you can useOpus 5.5
Permissions by defaultV2 allows tools and access outside the workspace, and asks before reading .env filesAuto mode: a classifier runs routine actions and blocks destructive ones
SandboxNone documentedOptional, with /sandbox
InstructionsAGENTS.md; V1 also reads CLAUDE.md when there is no AGENTS.mdCLAUDE.md; AGENTS.md when there is none
Configopencode.json in ~/.config/opencode/ or the projectsettings.json in ~/.claude/ or .claude/
Headlessopencode run "task", with --format jsonclaude -p "task", with --output-format json
AlsoDesktop and web apps, opencode serve, opencode acpA desktop app, the web, VS Code and JetBrains

OpenCode V1 and V2 are both live

OpenCode 2.0 shipped on 11 September 2026 with a new plugin API, new server contracts and new defaults, and both lines are still published: V2 as @opencode/cli, at 2.2.0 on 27 October, and V1 as opencode-ai, at 1.19.4. They cannot share the default command on one machine, and brew install opencode now installs V2.

curl -fsSL https://opencode.ai/v2/install | bash   # V2
brew install anomalyco/tap/opencode-v2             # V2 with Homebrew
npm install -g opencode-ai                         # V1

V1 plugins do not run in V2, and V2 no longer runs language servers or produces LSP diagnostics. Where the two lines behave differently, this page says which one it means.

What each one costs

OpenCode itself is free; you pay for the models, in one of these ways:

  • Free models that OpenCode offers, such as Big Pickle, plus promotional ones at any given time.
  • OpenCode Zen, a pay-as-you-go gateway that charges per request from a prepaid balance, at no markup.
  • OpenCode Go, $10 a month, or Go Plus at $40, with usage capped at 20% of the monthly allowance per five hours and 50% per week.
  • Accounts you already have with model providers: an API key, a ChatGPT Plus or Pro plan in place of an OpenAI key, GitHub Copilot, or local models at no cost.
Claude in OpenCode means the API

OpenCode's V1 docs note that Anthropic prohibits using a Claude Pro or Max subscription in OpenCode, and the plugins that allowed it were removed in 1.3.0; V2 lists Anthropic by API key. So Claude models in OpenCode bill per token, while Claude Code on a Claude plan covers them within the plan's limits. Claude Code pricing has both sides, with a calculator.

Permissions by default

This is where the two differ most out of the box.

  • OpenCode V2 starts from an allow-all policy: the build agent uses its tools and reaches outside the workspace without asking, and only reads of *.env files ask. Rules you add are matched in order and the last match wins. The plan agent explores without editing project files. V1 asked before touching paths outside the project; V2 does not. --auto, in the TUI or with opencode run, approves everything not explicitly denied. No sandbox is documented.
  • Claude Code starts interactive sessions in auto mode: a classifier runs routine actions and blocks anything irreversible, destructive or aimed outside your environment, with your deny and ask rules checked first. /sandbox adds an OS sandbox for shell commands.

Before the first OpenCode V2 session on a machine that matters, write the deny and ask rules for what it must not touch.

Instructions, config and extensions

OpenCodeClaude Code
InstructionsAGENTS.md, and ~/.config/opencode/AGENTS.md for every projectCLAUDE.md, and ~/.claude/CLAUDE.md for every project
The other's fileV2 reads AGENTS.md only. V1 falls back to CLAUDE.md when there is no AGENTS.md.Reads AGENTS.md when there is no CLAUDE.md
Config~/.config/opencode/opencode.json, and opencode.json or .opencode/opencode.json in the project~/.claude/settings.json, .claude/settings.json and .claude/settings.local.json
CommandsMarkdown files in .opencode/commands/Skills in .claude/skills/
AgentsMarkdown files in .opencode/agents/, with mode: subagent for subagents.claude/agents/
SkillsSKILL.md, and it reads .claude/skills tooSKILL.md in .claude/skills/
MCPLocal and remote servers, with OAuth, via opencode mcp addclaude mcp add, and .mcp.json for the project
PluginsFrom npm or local foldersFrom marketplaces, with claude plugin

Because OpenCode reads .claude/skills, skills you write for Claude Code work in OpenCode as well.

opencode run takes --continue, --session and --format json for newline-delimited JSON; opencode session list, export and import manage history; opencode serve and opencode acp expose the agent to other programs. In Claude Code the same jobs are claude -p, -c, -r and claude mcp serve.

Which one for which job

  • You switch models by task, or want local models. OpenCode.
  • You want an agent you can fork. OpenCode is MIT.
  • You want Claude on a subscription. Claude Code; Claude in OpenCode is API billing.
  • You want guarded defaults. Claude Code's auto mode, or OpenCode with your rules written first.

Run both on one Mac

A sensible split is Claude Code for Claude models and OpenCode for the rest, both on the same repo. OpenCode reads AGENTS.md, and so does Claude Code when there is no CLAUDE.md, so one file can brief both.

On a Symvibe board, which we make, OpenCode and Claude Code are both built-in consoles, each the real CLI in a real terminal. When you reopen the app, the OpenCode console offers to continue the latest conversation in its folder and the Claude Code console its own. With live agent status on, Claude Code reports working, ready or needs you; OpenCode shows whether output is arriving.

Questions people ask

Is OpenCode free?

The agent is free and MIT-licensed, and it comes with some free models. Beyond those, you pay for the models you use: through OpenCode Zen, OpenCode Go or a provider account.

Can I use my Claude Pro or Max plan in OpenCode?

No. OpenCode's docs say Anthropic prohibits it, and the plugins that did it were removed in 1.3.0. Claude models in OpenCode need an Anthropic API key.

Does OpenCode read CLAUDE.md?

V1 does, when there is no AGENTS.md. V2 reads AGENTS.md only.

Is OpenCode safer than Claude Code?

Not by default. OpenCode V2 allows tools and access outside the workspace unless you write rules against it, and documents no sandbox. Claude Code's auto mode blocks destructive actions, and its sandbox is one command away.

Which OpenCode version should I install?

New installs get V2 from brew install opencode or @opencode/cli. Stay on V1 if you depend on V1 plugins or on language server diagnostics, which V2 dropped.

OpenCode and Claude Code on one board

Symvibe runs both as real terminals on one canvas, with resume on reopen, next to Codex, Gemini CLI and 30 more agents.

macOS 14 or later · Apple Silicon · USD 19 a month or USD 190 a year