OpenCode vs Claude Code
OpenCode is an open source coding agent that connects to models from more than 200 providers, local models included. Claude Code is Anthropic's coding agent for Anthropic's Claude models. Two differences matter most: OpenCode is MIT licensed and starts with free models and no account, while Claude Code comes with Claude's paid plans or a Console account.
Published by HIPS. Not affiliated with OpenCode, Anomaly or Anthropic. Every fact below is from each project's own pages, read December 1, 2026.
curl -fsSL https://hips.com/hi.sh | shhi loginhi opencodehi claudeOpenCode
Claude Code
curl -fsSL https://hips.com/hi.sh | shhi loginhi opencodehi claudeOpenCode vs Claude Code, side by side
| OpenCode | Claude Code | |
|---|---|---|
| Made by | "Built in the open by Anomaly" and its contributors | Anthropic |
| In its maker's words | "OpenCode is an open source coding agent." | "Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools." |
| Where it runs | "Use it in the desktop app, in the terminal, on your phone or from your own code with the SDK." | "the terminal, IDE extensions, a desktop app, and the web" |
| Source code | "MIT licensed" | Not stated on the Anthropic pages read |
| Models | "200+ LLM providers through Models.dev, including local models" | Anthropic's Claude models: Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 |
| Free | "OpenCode comes with a set of free models. No account needed." | Not included in Claude's Free plan ($0) |
| Paid | "Bring your own subscription, or use OpenCode Go's curated models from $10/month." "Log in with ChatGPT Plus or Pro or GitHub Copilot." | Pro $20 ($17 billed annually); Max $100; Ultra $200; Team $20 or $100 a seat billed annually ($25 or $125 monthly); Enterprise "US$20/seat/month + tax, billed annually, 20 seat minimum" plus usage at API rates |
| Pay per token | Through the provider you connect, at that provider's price | A Console account: "Claude Code consumes API tokens at standard API pricing" |
| Limits | Not stated on OpenCode's home page; a provider's or subscription's own limits apply | "a session limit that resets every five hours, and weekly limits that reset once every week" |
| Your approval | "Choose which actions run automatically and which need your approval" | "Permission modes, allow and deny rules, and hooks decide what runs with or without your approval." |
Sources, all read December 1, 2026: OpenCode's home page; Anthropic's pricing page, Claude Code overview, product page and help article on limits. Prices are in US dollars and change; each maker's page is the authority.
Claude Code vs OpenCode: the differences that matter
- Models.
- OpenCode is built to connect to many providers, local models included; its page names "Claude, GPT and Gemini" among them. Claude Code runs Claude, and Anthropic "doesn’t support routing Claude Code to non-Claude models through any gateway."
- Source.
- OpenCode's code is MIT licensed. The Anthropic pages read do not say what license Claude Code is under.
- Starting cost.
- OpenCode starts with free models and no account. Claude Code starts with Claude Pro, or a Console account billed per token.
- Who stands behind it.
- Claude Code is Anthropic's own product on Anthropic's own models. OpenCode is an open source project; each provider you connect stands behind its own models.
Run both on open models
hi, HIPS's command line, starts either one on open models such as DeepSeek, Kimi, Qwen and GLM, signed in to HIPS for one session, with no API key. HIPS bills the tokens.
| Command | Agent | Its program |
|---|---|---|
hi opencode | OpenCode | opencode |
hi claude | Claude Code | claude |
curl -fsSL https://hips.com/hi.sh | shhi loginhi opencodehi claudeOpenCode can be pointed at many providers on its own. The route HIPS tests is hi opencode; HIPS has not validated a hand-made OpenCode setup for HIPS.
The releases HIPS has tested. From HIPS's signed list of tested versions, issued December 1, 2026: OpenCode 2.2.5 to 2.4.3 on macOS, 2.2.6 to 2.4.3 on Linux and 2.2.7 to 2.4.3 on Windows; Claude Code 2.1.314 to 2.1.333 on macOS, 2.1.319 to 2.1.333 on Linux and 2.1.322 to 2.1.333 on Windows. hi starts a release outside those with a one-line notice.
The models each one passed. "Tested" means: "A test of the agent passed on this model's current version: it called a tool, sent the tool's result back and answered with it." It is not a score of the code.
| Model | Claude Code | OpenCode |
|---|---|---|
| DeepSeek V4 Pro | Tested | Tested |
| DeepSeek V4.1 Flash | Tested | Tested |
| Kimi K3.1 Pro | Tested | Tested |
| Kimi K3 | Tested | Tested |
| GLM 5.3 | Tested | Tested |
| GLM 5.3 Flash | Tested | Failed its test |
| Qwen3.6 35B A3B | Tested | Tested |
| Qwen3 30B A3B Instruct 2507 FP8 | Tested | Tested |
| gpt oss 120b | Tested | Tested |
| gemma 4 31B it | Tested | Failed its test |
| North Mini Code 1.0 | Meets the requirements, not tested yet | Tested |
| Qwen3.5 9B | Meets the requirements, not tested yet | Tested |
From HIPS's catalog, revision 611, and its signed test record, sequence 76 (Claude Code 2.1.333, OpenCode 2.4.3), both December 1, 2026. Prices and today's results are on the model catalog.
Together. With --team, agents you start on one computer work as one team, "for example a Claude Code session leading Codex, OpenCode and DeepSeek Harness builders". Claude Code and OpenCode 2 join a team from hi 0.1.17. "Nothing of a team is sent to HIPS."
What you give up. These are not Anthropic's models, and results differ by model. For Claude Code, Anthropic does not support the setup; see Run Claude Code with any model.
Where each fits
OpenCode fits when you want an agent whose code you can read; when you switch between providers, or run local models; when you want to start free with no account; and when you already pay for ChatGPT or GitHub Copilot, which OpenCode can log in with.
Claude Code fits when you want Anthropic's Claude models with Anthropic's own support; when your company already runs Claude Team or Enterprise; and when you want one usage pool across Claude chat and coding.
Both, through hi, fit when you want either agent on the same open models with one per-token bill, or both in one team on your computer.
Questions
Which should I choose, OpenCode or Claude Code?
This page names no winner. One is an open source agent for any model, the other Anthropic's agent for Claude. Try both on your own work.
Is OpenCode free?
You can start free: "OpenCode comes with a set of free models. No account needed." Beyond those, you bring a subscription or provider, or use OpenCode Go "from $10/month". Claude Code is not on Claude's Free plan; see Is Claude Code free?.
Can OpenCode use Claude models?
Yes, its page says so: "Connect AI models from 200+ providers, including Claude, GPT and Gemini, or start free." You pay the provider you connect.
Can Claude Code use other models, as OpenCode does?
Not with Anthropic's support: Anthropic "doesn’t support routing Claude Code to non-Claude models through any gateway." Through hi, Claude Code runs on the open models listed above, tested by HIPS.
Is OpenCode open source? Is Claude Code?
OpenCode is "MIT licensed". The Anthropic pages read do not state a license for Claude Code.
Can I use my ChatGPT or Copilot subscription?
With OpenCode, yes: "Log in with ChatGPT Plus or Pro or GitHub Copilot." Claude Code takes "a Claude Pro, Max, or Ultra plan, a Team or Enterprise plan, or a Claude Console account."
Can I run OpenCode and Claude Code on the same model?
Yes. Through hi, both ran HIPS's test with the models marked Tested for both in the table above.