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.
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.
| Capability | OpenCodeAnomaly · MIT | Claude CodeAnthropic · proprietary |
|---|---|---|
| What it is | An open-source coding agent that works with almost any model | Anthropic's coding agent |
| Where you use it | Terminal, the desktop app (macOS, Windows, Linux), the web, and iPhone and Android apps that control OpenCode on your computer | Terminal, VS Code and JetBrains, the desktop app (macOS, Windows), the web, and the Claude mobile app |
| Artificial Analysis Coding Agent Index | 40, tested with GLM-5.3 on OpenCode 1.18 | 58, tested with Claude Fable 5.2 |
| Models | 200+ providers through models.dev, and local models through Ollama | Claude models only, through Anthropic, Amazon Bedrock, Google Cloud or Microsoft Foundry |
| Plans you can sign in with | ChatGPT 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 tools | A Build agent, a Plan agent that does not edit project files, background subagents, and /undo snapshots | Plan mode, checkpoints you can roll back with /rewind, git worktrees and subagents |
| Rules and memory | AGENTS.md, or CLAUDE.md where there is no AGENTS.md (since 2.3.1); no memory store | CLAUDE.md or AGENTS.md rules, plus auto memory notes it writes itself, on by default |
| Skills | Reads skills from .opencode, .claude and .agents folders | Skills, plugins, subagents, hooks and MCP servers |
| Approvals | Allow, ask and deny rules; by default everything is allowed except reading .env files, which asks first; no sandbox | Permission modes from Manual to auto; deny rules hold in every mode; a shell sandbox on macOS, Linux and WSL2 |
| Working while you are away | Automations 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 |
| Windows | Native Windows builds of the CLI and the desktop app | Runs 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.
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'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-agentOpenCode 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-providerPut 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.mdOrkas 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.
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 Orkas | OpenCode | Claude Code |
|---|---|---|
| How Orkas starts it | opencode run, one process per turn | claude -p, with streaming JSON in and out |
| Project folder | Bound to the project folder you choose | Bound to the project folder you choose |
| The next turn | Continues the same session | Continues the same session |
| Permission level | Full access only; Orkas asks you to confirm it when you connect OpenCode | Use CLI default, Ask for permission (you approve in Orkas) or Full access |
| Orkas skills and the services you connected | Available in every run | Available in every run, plus the agent's Orkas memory |
| While it runs | Shows progress as it works; new messages wait until the turn ends | Shows 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.
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.
Install OpenCode and Claude Code first and sign each one in to a model. Orkas finds them on your PATH.
Open Connect agents and add both. When you add OpenCode, Orkas asks you to confirm full access.
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.
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.
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.
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.
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.
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.
Orkas is free and MIT licensed. It drives Claude Code, Codex, OpenCode, OpenClaw and Hermes as local sessions on your own machine.