Orkas Orkas
Home Compare OpenCode vs Claude Code
Honest comparison

OpenCode vs Claude Code:
an open agent for any model and Anthropic's own, and OpenCode can run Claude Code.

OpenCode is a free, MIT-licensed coding agent that works with 200+ model providers, including ChatGPT and GitHub Copilot plans and local models. Claude Code is Anthropic's coding agent for Claude models; installing it is free, but using it takes a paid Claude plan or an API key. On the most-cited benchmark Claude Code scores higher, but the two were tested with different models. They also connect: OpenCode can run your Claude Code as its model, Claude Code can use OpenCode's model plans, and both read the same AGENTS.md and skills.

Side by side

OpenCode vs Claude Code, capability by capability

Checked against OpenCode 2.3.2 and Claude Code 2.1.327, released on November 18 and 17, 2026, using each project's own docs.

CapabilityOpenCodeAnomaly · MITClaude CodeAnthropic · proprietary
What it isAn open-source coding agent that works with almost any modelAnthropic's coding agent
Where you use itTerminal, the desktop app (macOS, Windows, Linux), the web, and iPhone and Android apps that control OpenCode on your computerTerminal, VS Code and JetBrains, the desktop app (macOS, Windows), the web, and the Claude mobile app
Artificial Analysis Coding Agent Index40, tested with GLM-5.3 on OpenCode 1.1858, tested with Claude Fable 5.2
Models200+ providers through models.dev, and local models through OllamaClaude models only, through Anthropic, Amazon Bedrock, Google Cloud or Microsoft Foundry
Plans you can sign in withChatGPT Plus or Pro, GitHub Copilot, and your Claude login through your installed Claude Code (see the FAQ)Claude Pro ($20 a month), Max ($100), Ultra ($200), Team or Enterprise, or an API key
Coding toolsA Build agent, a Plan agent that does not edit project files, background subagents, and /undo snapshotsPlan mode, checkpoints you can roll back with /rewind, git worktrees and subagents
Rules and memoryAGENTS.md, or CLAUDE.md where there is no AGENTS.md (since 2.3.1); no memory storeCLAUDE.md or AGENTS.md rules, plus auto memory notes it writes itself, on by default
SkillsReads skills from .opencode, .claude and .agents foldersSkills, plugins, subagents, hooks and MCP servers
ApprovalsAllow, ask and deny rules; by default everything is allowed except reading .env files, which asks first; no sandboxPermission modes from Manual to auto; deny rules hold in every mode; a shell sandbox on macOS, Linux and WSL2
Working while you are awayAutomations that run on a schedule or an MCP event, still experimental (2.3.1)Cloud scheduled tasks that run with your laptop closed (research preview), plus desktop scheduled tasks and cloud sessions
WindowsNative Windows builds of the CLI and the desktop appRuns natively on Windows; its shell sandbox needs WSL2

The two index scores come from different models and an older OpenCode, so they do not measure the agents alone. Neither approval system is a complete sandbox: OpenCode says it has none, and Claude Code's sandbox covers shell commands only. Many comparisons online still describe OpenCode 1, which had language servers and share links; OpenCode 2 dropped both.

This comparison was last updated on November 19, 2026; check each vendor's site for current terms.

Using them together

How OpenCode and Claude Code work together

The connections go both ways: OpenCode can run Claude Code as its model, Claude Code can use OpenCode's model plans, and both read the same instructions and skills.

OpenCode runs your Claude Code as its model

OpenCode's Claude Agent provider runs Claude Code 2.1.248 or later on your computer with your Claude login. Claude then works with OpenCode's tools and permissions, and your Claude Code settings, CLAUDE.md, hooks, MCP servers, skills and memory are not loaded. Anthropic says third-party tool use may be billed to usage credits instead of plan limits, so check its current terms.

claude auth login
opencode auth login claude-agent

Claude Code uses an OpenCode Go plan

OpenCode lists Claude Code as a validated client for OpenCode Go ($10 a month, Go Plus $40) and for its pay-per-request models. One command sets it up; add --keep-provider to keep your Claude plan and take only OpenCode's shared settings. Anthropic does not support pointing Claude Code at non-Claude models, so treat this as OpenCode's route, not Anthropic's.

npx @opencode/console setup claude-code
# keep your Claude plan, take only shared settings:
npx @opencode/console setup claude-code --keep-provider

One set of instructions and skills

Put shared rules in AGENTS.md: both tools read it, and a CLAUDE.md that contains @AGENTS.md keeps Claude Code in step. For skills, use .claude/skills or ~/.claude/skills, which both tools read. OpenCode also reads ~/.agents/skills, which Claude Code ignores.

# CLAUDE.md
@AGENTS.md

# a skill both tools read
~/.claude/skills/my-skill/SKILL.md

Both in one desktop window

Orkas runs OpenCode and Claude Code as two local agents in the same chat, next to Codex, OpenClaw and Hermes. The next table lists what Orkas can and cannot hand each of them.

What a host gets

Driving both from Orkas: what each one accepts

These rows come from Orkas's adapter code for each CLI, which is the same in Orkas 2.5.0 and the next release. They describe what a host can do with each agent, not how well either one codes.

In OrkasOpenCodeClaude Code
How Orkas starts itopencode run, one process per turnclaude -p, with streaming JSON in and out
Project folderBound to the project folder you chooseBound to the project folder you choose
The next turnContinues the same sessionContinues the same session
Permission levelFull access only; Orkas asks you to confirm it when you connect OpenCodeUse CLI default, Ask for permission (you approve in Orkas) or Full access
Orkas skills and the services you connectedAvailable in every runAvailable in every run, plus the agent's Orkas memory
While it runsShows progress as it works; new messages wait until the turn endsShows progress as it works, and you can send a message mid-run

OpenCode's one-shot run has no way to answer an approval prompt, which is why Orkas runs it with full access. Orkas works with OpenCode 1.18.0 or later, including OpenCode 2 since Orkas 2.5.0, and with Claude Code 2.0.0 or later. It finds both on your PATH, can update either one, and installs neither.

When to choose which

Pick by the model you want to pay for

Pick OpenCode if…

  • You want to choose the model: GPT, Gemini, open models or a local one
  • You already pay for ChatGPT or GitHub Copilot and want to code with that plan
  • You want an MIT codebase you can read, fork and run yourself

Pick Claude Code if…

  • You code with Claude models and want the tool Anthropic builds for them
  • You want plan mode, checkpoints you can roll back and a shell sandbox
  • You already pay for a Claude plan and want to use it in Anthropic's own tool
Running both from one place

OpenCode and Claude Code side by side in Orkas

Orkas is a free, MIT-licensed desktop app for macOS and Windows. It runs the OpenCode and Claude Code you already have, plus Codex, OpenClaw and Hermes, as agents in one chat.

1

Install OpenCode and Claude Code first and sign each one in to a model. Orkas finds them on your PATH.

2

Open Connect agents and add both. When you add OpenCode, Orkas asks you to confirm full access.

3

Set Claude Code's approvals in AI Team > Claude Code > Runtime settings > Permission level, then give each agent its part of the task in the same chat.

What Orkas does not do here: it does not install either CLI, and it cannot pause OpenCode to ask for your approval, so OpenCode always runs with full access.

FAQ

OpenCode and Claude Code — your questions

Is OpenCode better than Claude Code?

It depends on the model you want. On the Artificial Analysis Coding Agent Index (v2.1, checked November 18, 2026), Claude Code scores 58 with Claude Fable 5.2 and OpenCode 40 with GLM-5.3. The OpenCode run used OpenCode 1.18 and a different model, so the gap mixes the model with the agent. Pick OpenCode for model choice and an MIT codebase, and Claude Code for Claude models and Anthropic's own tooling.

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

OpenCode documents a Claude Agent provider that runs your installed Claude Code (2.1.248 or later) with your Claude login. You set it up by running claude auth login and then opencode auth login claude-agent in a terminal. Anthropic's support page says it may allow third-party tools at its discretion and may draw that use from usage credits rather than plan limits. Check Anthropic's current terms, or use an API key.

Can OpenCode read my CLAUDE.md and skills?

Yes. Since 2.3.1, OpenCode reads CLAUDE.md in any folder without an AGENTS.md, and ~/.claude/CLAUDE.md when there is no global AGENTS.md. It also reads skills from .claude/skills and ~/.claude/skills. Claude Code reads AGENTS.md only when there is no CLAUDE.md, so a CLAUDE.md that contains @AGENTS.md keeps the two in step.

Is OpenCode free?

The agent is free and MIT licensed, so you pay for the model. You can sign in with ChatGPT Plus or Pro or GitHub Copilot, use your own API keys or local models, or buy OpenCode Go at $10 a month ($40 for Go Plus). OpenCode's free models work only inside OpenCode. Claude Code is free to install but needs a Claude plan, from Pro at $20 a month, or an API key.

Can I run OpenCode and Claude Code side by side?

Yes. Orkas runs both as local agents in one desktop window, next to Codex, OpenClaw and Hermes. Both work in the project folder you choose, continue their own sessions and show progress as they work. Claude Code can take a new message mid-run; OpenCode finishes the turn first.

More comparisons

More comparisons of coding agents

Run both, and stop guessing which one wins

Orkas is free and MIT licensed. It drives Claude Code, Codex, OpenCode, OpenClaw and Hermes as local sessions on your own machine.