---
title: "OpenCode vs Claude Code: an honest comparison | Bombos"
description: "OpenCode is an MIT-licensed coding agent for many model providers; Claude Code is Anthropic's agent for Claude models, usable with a Claude subscription."
image: "https://bombos.ai/assets/og-en-v2.png"
---

# OpenCode vs Claude Code: which coding agent should I use?

Short answer

Pick Claude Code if you work with Claude models and want to use your Claude subscription: Anthropic's terms reserve subscription sign-in for its own apps. Pick OpenCode if you want an open source (MIT) agent that switches between many providers, including local models, ChatGPT Plus or Pro, and GitHub Copilot. Claude models in OpenCode run on API billing.

*Piet Baudoin · published November 17, 2026 · November 17, 2026*

## The two side by side

Both are agents that read your code, edit files and run commands. The real difference is who supplies the model and how you pay for it. From both projects’ own sites and docs, as of November 2026:

|  | OpenCode | Claude Code |
| --- | --- | --- |
| Maker | OpenCode project, on GitHub as anomalyco/opencode | Anthropic |
| License | MIT, open source | Anthropic’s Commercial or Consumer Terms |
| Models | Many providers through the Models.dev catalog; its homepage says 200+, including local models | Claude models, through Anthropic or Amazon Bedrock, Google Cloud’s Agent Platform and Microsoft Foundry |
| Sign in with a subscription | ChatGPT Plus or Pro, GitHub Copilot | Claude Pro, Max, Ultra, Team, Enterprise |
| Own paid options | OpenCode Go, from $10 a month; OpenCode Console, pay as you go per million tokens | Claude plans, or API per token |
| Interfaces | Terminal (TUI), desktop app, web via `opencode pair`, extension for VS Code and forks | Terminal, VS Code, JetBrains, desktop app, web, mobile, Slack, GitHub Actions |
| Built-in agents | `build` and `plan`, switched with Tab; subagents `general` and `explore` | Plan mode and other permission modes; subagents, agent teams |
| Instruction file | AGENTS.md only (V2) | CLAUDE.md, can read AGENTS.md instead |

## Where OpenCode is stronger

1.  **Model choice.** You connect providers with `/connect` and switch per session. That includes models running on your own hardware through Ollama, LM Studio or vLLM, which matters if code may not leave the building.
2.  **Using subscriptions you already pay for.** OpenCode’s provider docs offer “Sign in with ChatGPT” for Plus and Pro plans and a device login for GitHub Copilot, so those models show no per-token cost in OpenCode.
3.  **Openness.** The code is MIT licensed. You can read what the agent does, fork it, and configure custom agents as markdown files in `.opencode/agents/`, with allow, ask or deny rules per action.
4.  **One instruction file for both.** OpenCode V2 reads `AGENTS.md` and does not use `CLAUDE.md` as a fallback, but Claude Code can read an `AGENTS.md` in place of a `CLAUDE.md`, so one file can serve both agents.

Install with `curl -fsSL https://opencode.ai/v2/install | bash`, `npm i -g @opencode/cli` or Homebrew. Its docs say Windows package managers are not supported.

## Where Claude Code is stronger

1.  **Your Claude subscription works.** A Pro, Max or Team seat covers Claude Code within its usage limits; see [Claude Code pricing](https://bombos.ai/en/questions/claude-code/claude-code-pricing/).
2.  **More surfaces from one vendor.** Besides the terminal there are a JetBrains plugin, a desktop app with visual diff review, cloud sessions at claude.ai/code that keep running with your laptop closed, and [Remote Control](https://bombos.ai/en/questions/claude-code/claude-code-remote-control/) from your phone. See [desktop vs CLI vs web](https://bombos.ai/en/questions/claude-code/claude-code-desktop-vs-cli-vs-web/).
3.  **Central control for IT.** Managed settings through the admin console, MDM or a file let an organization enforce permissions and versions on every machine; see [how to install Claude Code](https://bombos.ai/en/questions/claude-code/how-to-install-claude-code/).

## The misunderstanding: “OpenCode is Claude Code without the bill”

The agent costs nothing to install, but the model never was part of the tool. Running Claude models in OpenCode means an Anthropic API key, paid per token, or OpenCode Console, also pay as you go. Anthropic’s legal page for Claude Code is explicit: subscription sign-in is for Claude Code and its other native apps, and third-party developers may not offer Claude.ai login or route requests through Free, Pro, Max or Ultra credentials. OpenCode’s current provider docs list sign-in for ChatGPT and Copilot, not for Claude. So the honest comparison is Claude Code on a subscription versus OpenCode on an API key, or OpenCode with a different model.

## Which to pick

1.  **The team standardizes on Claude and pays for Claude seats:** Claude Code.
2.  **You want to switch between OpenAI, Claude, open models and local models, or already pay for ChatGPT or Copilot:** OpenCode.
3.  **Code may not leave your network:** OpenCode with local models. Claude Code always calls a hosted Claude model, through Anthropic or your own cloud account.
4.  **Mixed team:** both, with shared instructions in [AGENTS.md](https://bombos.ai/en/questions/codex/what-is-agents-md-and-how-does-codex-read-it/).

## What this means for a team

Teams rarely pick one agent for everyone. The instruction file can be shared, but each tool keeps its own sessions, its own learned memory and its own history. A decision one developer settled with Claude Code is not known to a colleague’s OpenCode session. More in [shared memory across coding agents](https://bombos.ai/en/knowledge-base/shared-memory-across-coding-agents/) and [Codex vs Claude Code for teams](https://bombos.ai/en/questions/codex/codex-vs-claude-code-for-teams/).

## Where Bombos fits

If a team runs OpenCode and Claude Code side by side, the gap is not the agent but what the agents know. Bombos is a plugin that gives every AI tool a team uses one shared memory: team knowledge, rules learned along the way, and what already sits in mail, documents and repos, traceable to the source, in the cloud or on your own server. One developer can try it on their own agents first.

## Related questions

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

No. Anthropic's Claude Code legal page says subscription sign-in is for Claude Code and other native Anthropic apps, and third-party developers may not route requests through Free, Pro, Max or Ultra credentials. Use an Anthropic API key or another provider in OpenCode.

Does OpenCode read my CLAUDE.md?

Not in OpenCode V2, the version the current docs and install command cover. It recognizes AGENTS.md only and does not use CLAUDE.md as a fallback. The older V1 did read CLAUDE.md when no AGENTS.md existed.

Is OpenCode open source?

Yes. It is MIT licensed, and the code is on GitHub under anomalyco/opencode.

Can OpenCode run local models?

Yes. Its provider docs describe built-in discovery for Ollama, LM Studio and vLLM.

Can I use both on the same repo?

Yes. Put shared instructions in AGENTS.md: OpenCode reads it, and Claude Code can read an AGENTS.md in place of a CLAUDE.md.

## Sources

1.  [OpenCode: homepage](https://opencode.ai/)
2.  [OpenCode docs: Providers](https://opencode.ai/docs/providers/)
3.  [OpenCode docs: Instructions](https://opencode.ai/docs/instructions/)
4.  [OpenCode on GitHub](https://github.com/anomalyco/opencode)
5.  [Claude Code docs: Legal and compliance](https://code.claude.com/docs/en/legal-and-compliance)
6.  [Claude Code docs: Overview](https://code.claude.com/docs/en/overview)

## What does your AI forget?

1.  01You tell us which AI you use and where it keeps starting over.
2.  02We show what a shared memory changes there, on your own examples.
3.  03You keep the plan, with or without Bombos.

![Piet Baudoin](https://bombos.ai/assets/team/piet-klein.jpg)

**Piet Baudoin**You talk to Piet, from the Bombos teamDutch team from Utrecht and Nijmegen · data in Europe

## More questions about Claude Code

-   [What is Claude Code Router and should a team use it?](https://bombos.ai/en/questions/claude-code/claude-code-router/)
-   [What are subagents in Claude Code and when should you use them?](https://bombos.ai/en/questions/claude-code/claude-code-subagents/)
-   [Claude Code vs Cursor: which should my dev team choose?](https://bombos.ai/en/questions/claude-code/claude-code-vs-cursor/)
-   [How do I use Claude Code in VS Code and JetBrains?](https://bombos.ai/en/questions/claude-code/claude-code-in-vs-code-and-jetbrains/)
-   [What is Claude Code Remote Control and how do I use it?](https://bombos.ai/en/questions/claude-code/claude-code-remote-control/)
-   [What are agent teams in Claude Code and how do you turn them on?](https://bombos.ai/en/questions/claude-code/claude-code-agent-teams/)
-   [What is auto mode in Claude Code, and is it safe to use?](https://bombos.ai/en/questions/claude-code/claude-code-auto-mode/)
-   [Claude Code desktop, CLI, web or mobile: what is the difference?](https://bombos.ai/en/questions/claude-code/claude-code-desktop-vs-cli-vs-web/)

[All questions about Claude Code →](https://bombos.ai/en/questions/claude-code/)


---

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","url":"https://bombos.ai/","logo":"https://bombos.ai/assets/bombos-bee.png","description":"Bombos is the memory layer under every AI your team uses. One shared memory for Claude, ChatGPT, Copilot, Cursor and your own agents, that learns how you work.","sameAs":["https://www.linkedin.com/company/bombos-ai","https://www.youtube.com/@truebombos","https://www.instagram.com/truebombos/","https://bsky.app/profile/bombostrue.bsky.social","https://www.threads.com/@truebombos","https://mastodon.social/@Bombos","https://www.tiktok.com/@truebombos","https://t.me/truebombos","https://www.pinterest.com/truebombos/","https://github.com/bombos-ai","https://linktr.ee/bombos.ai","https://bombosai.substack.com","https://hashnode.com/@bombosai","https://hackernoon.com/u/bombos","https://dev.to/bombos"],"email":"info@bombos.ai","areaServed":["NL","Europe"],"knowsLanguage":["nl","en"],"contactPoint":{"@type":"ContactPoint","email":"info@bombos.ai","contactType":"sales","url":"https://bombos.ai/en/contact/","availableLanguage":["nl","en"]}},{"@type":"WebSite","@id":"https://bombos.ai/#website","name":"Bombos","url":"https://bombos.ai/","inLanguage":["nl-NL","en"],"publisher":{"@id":"https://bombos.ai/#organization"}}]}

{"@context":"https://schema.org","@type":"Article","headline":"OpenCode vs Claude Code: which coding agent should I use?","description":"OpenCode is an MIT-licensed coding agent for many model providers; Claude Code is Anthropic's agent for Claude models, usable with a Claude subscription.","abstract":"Pick Claude Code if you work with Claude models and want to use your Claude subscription: Anthropic's terms reserve subscription sign-in for its own apps. Pick OpenCode if you want an open source (MIT) agent that switches between many providers, including local models, ChatGPT Plus or Pro, and GitHub Copilot. Claude models in OpenCode run on API billing.","datePublished":"2026-11-17T00:00:00.000Z","dateModified":"2026-11-17T00:00:00.000Z","author":{"@type":"Person","name":"Piet Baudoin"},"publisher":{"@type":"Organization","@id":"https://bombos.ai/#organization","name":"Bombos","logo":{"@type":"ImageObject","url":"https://bombos.ai/assets/bombos-bee.png"}},"image":"https://bombos.ai/assets/og-en-v2.png","mainEntityOfPage":"https://bombos.ai/en/questions/claude-code/opencode-vs-claude-code/","inLanguage":"en-US","isPartOf":{"@type":"CollectionPage","name":"Claude Code","url":"https://bombos.ai/en/questions/claude-code/"},"citation":[{"@type":"CreativeWork","name":"OpenCode: homepage","url":"https://opencode.ai/"},{"@type":"CreativeWork","name":"OpenCode docs: Providers","url":"https://opencode.ai/docs/providers/"},{"@type":"CreativeWork","name":"OpenCode docs: Instructions","url":"https://opencode.ai/docs/instructions/"},{"@type":"CreativeWork","name":"OpenCode on GitHub","url":"https://github.com/anomalyco/opencode"},{"@type":"CreativeWork","name":"Claude Code docs: Legal and compliance","url":"https://code.claude.com/docs/en/legal-and-compliance"},{"@type":"CreativeWork","name":"Claude Code docs: Overview","url":"https://code.claude.com/docs/en/overview"}]}

{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Bombos","item":"https://bombos.ai/en/"},{"@type":"ListItem","position":2,"name":"Questions","item":"https://bombos.ai/en/questions/"},{"@type":"ListItem","position":3,"name":"Claude Code","item":"https://bombos.ai/en/questions/claude-code/"},{"@type":"ListItem","position":4,"name":"OpenCode vs Claude Code: which coding agent should I use?","item":"https://bombos.ai/en/questions/claude-code/opencode-vs-claude-code/"}]}

{"@context":"https://schema.org","@type":"FAQPage","mainEntity":[{"@type":"Question","name":"Can I use my Claude Pro or Max subscription in OpenCode?","acceptedAnswer":{"@type":"Answer","text":"No. Anthropic's Claude Code legal page says subscription sign-in is for Claude Code and other native Anthropic apps, and third-party developers may not route requests through Free, Pro, Max or Ultra credentials. Use an Anthropic API key or another provider in OpenCode."}},{"@type":"Question","name":"Does OpenCode read my CLAUDE.md?","acceptedAnswer":{"@type":"Answer","text":"Not in OpenCode V2, the version the current docs and install command cover. It recognizes AGENTS.md only and does not use CLAUDE.md as a fallback. The older V1 did read CLAUDE.md when no AGENTS.md existed."}},{"@type":"Question","name":"Is OpenCode open source?","acceptedAnswer":{"@type":"Answer","text":"Yes. It is MIT licensed, and the code is on GitHub under anomalyco/opencode."}},{"@type":"Question","name":"Can OpenCode run local models?","acceptedAnswer":{"@type":"Answer","text":"Yes. Its provider docs describe built-in discovery for Ollama, LM Studio and vLLM."}},{"@type":"Question","name":"Can I use both on the same repo?","acceptedAnswer":{"@type":"Answer","text":"Yes. Put shared instructions in AGENTS.md: OpenCode reads it, and Claude Code can read an AGENTS.md in place of a CLAUDE.md."}}]}
```
