Bottom line: OpenCode is a free, MIT-licensed agent that runs whatever model you connect, Claude included, and sells model access on the side: a flat Go plan from $10 a month, or pay-as-you-go tokens through Zen. Claude Code is Anthropic's own agent, runs Claude only and comes with a Claude plan from $20 a month billed monthly. Choose OpenCode for model freedom and open source; choose Claude Code if Claude is your model and you want Anthropic's agent around it. Prices read 11 November 2026.
Updated 11 November 2026. Both pricing pages were re-read that day. OpenCode's feature facts come from our listing as last read on 21 October 2026, and each section says so where it uses them. This compares published facts; we did not benchmark the agents.
The comparison
Table 1. OpenCode and Claude Code on price, models, bring-your-own-key, where they run and training, from our listings (prices read 11 November 2026; OpenCode features read 21 October 2026)
| OpenCode | Claude Code | |
|---|---|---|
| The agent itself | OpenCodeFree, open source (MIT) | Claude CodeComes with a paid Claude plan; CLI source not published |
| Flat-rate plans | OpenCodeGo $10 a month, Go Plus $40 a month | Claude CodePro $20 a month billed monthly or $17 a month billed annually; Max from $100 a month |
| Pay per use | OpenCodeZen: pay as you go per token, with some models free for a limited time | Claude CodeAn Anthropic Console key or a cloud provider, billed per token |
| Free way in | OpenCodeFree models, no account needed to start | Claude CodeNone: Claude's free plan leaves Claude Code out |
| Models | OpenCodeAny provider: Claude, GPT and open-weight families such as Qwen, DeepSeek, GLM and Kimi; local models as a custom provider | Claude CodeClaude only |
| Bring your own key | OpenCodeThe default; also a GitHub Copilot or ChatGPT Plus/Pro login | Claude CodeAnthropic API key, or Claude via Bedrock, Google Cloud or Microsoft Foundry |
| Where it runs | OpenCodeTerminal UI, desktop app, VS Code extension, local web interface, GitHub Action | Claude CodeTerminal, VS Code and JetBrains, web, iOS and Android, GitHub Actions and GitLab CI/CD |
| Training | OpenCodePaid gateway models: zero retention, no training; some free models may use your data | Claude CodeCommercial accounts: no training by default; Free, Pro and Max: a privacy setting |
| Read | OpenCodePrices 11 Nov 2026; features 21 Oct 2026 | Claude Code11 November 2026 |
Paying for each
OpenCode with your own key or login. The agent is free. Connect a provider key, or log in with a GitHub Copilot or ChatGPT Plus/Pro account to use the models that subscription already includes (our data, 21 October 2026). Then your provider's bill is the only cost.
OpenCode Go. A fixed monthly fee: $10 for Go and $40 for Go Plus (read 11 November 2026).
OpenCode Zen. Pay as you go per token on OpenCode's own gateway, with several models offered free for a limited time (read 11 November 2026). In a workspace, one prepaid balance covers everyone, with an optional limit per member layered on top. Unused credits can be refunded within 14 days, and usage exports to CSV, but a balance left when a workspace is deleted is lost (our data, 21 October 2026).
Claude Code on a plan. Pro costs $20 a month billed monthly, or $17 a month billed annually, with rolling five-hour and weekly usage limits. Max starts at $100 a month (both read 11 November 2026), and our listing notes that heavy users get pushed there for more headroom.
Claude Code per token. Use a Console key or a Bedrock, Google Cloud or Foundry account instead of a plan. Our listing notes this billing can add up on large, long-running tasks.
For a team. OpenCode's gateway charges no seat fee at any team size; seats only appear in a quoted enterprise agreement (our data, 21 October 2026). Claude's Team plan is self-serve for 2 to 150 seats with Standard and Premium seat types, and Enterprise is $20 per seat with a 20-seat minimum, plus usage at API rates (read 11 November 2026).
Running Claude in both
If Claude is the model you want, both agents can run it. OpenCode reaches Claude through an Anthropic API key or its own gateway, and a Claude subscription can be connected directly (our data, 21 October 2026). Claude Code reaches it through a Claude plan, a Console key or a cloud provider, and lets you set model and effort per session or per subagent. The difference is what surrounds the model. Claude Code adds a background agent view, experimental agent teams and a GitHub pull-request reviewer in research preview on Team and Enterprise. OpenCode adds the freedom to switch provider per session and to read or fork the agent's code.
Setting up and day-to-day use
OpenCode's terminal UI is the main surface, with a non-interactive run command for scripts. Two built-in agents switch with Tab: build for full-access work and plan for read-only analysis, with a general subagent for longer searches. It loads the right language server for the project's languages by itself, runs several sessions in parallel and can share a session as a link. Each tool resolves to allow, ask or deny, with glob rules per command or path; our listing notes that the defaults are permissive apart from outside directories. (All OpenCode facts here: our data, 21 October 2026.)
Claude Code installs by shell script, Homebrew, WinGet or a Linux package manager. It starts read-only and asks before each action in Manual mode, with allow, ask and deny rules, six permission modes and a bash sandbox (read 11 November 2026).
Data and security
OpenCode runs on your own machine or server with no vendor backend in the path, and enterprises can point it at an internal AI gateway only. Its gateway names US and EU hosting. A SOC 2 Type 2 report is available through its trust centre under NDA; no ISO 27001 is claimed. Our listing records two GitHub security advisories published on 12 January 2026, one of them a critical cross-site scripting flaw in the web UI, and advises extra hardening before running OpenCode's local server on a shared or untrusted network. An open issue also tracks reports of the terminal UI's memory growing past 1 to 2 GB. (Our data, 19 and 21 October 2026.)
Every documented Claude Code model path serves Claude. Commercial accounts are not used for training by default. Anthropic publishes SOC 2 Type 2 and ISO 27001 documents, and zero data retention is an Enterprise option (read 11 November 2026).
Quick answers
Is OpenCode really free? The agent is, and it ships with free models. You pay only when you connect a paid provider or buy Go or Zen usage.
Does Claude Code work with GPT or Gemini? No. It runs Claude models only.
Does OpenCode have single sign-on? Yes. OpenCode's docs say SSO is "included with every workspace" (our data, 21 October 2026).
Can either run unattended? Yes. OpenCode has an auto-approve mode and runs in scheduled GitHub workflows; Claude Code's auto mode lets a classifier approve tool calls, and routines run in the background.
Sources
What each agent does comes from our agent research. Make an AI agent? Bring it into the research.
- OpenCodeRead 11 November 2026
- OpenCode GoRead 11 November 2026
- OpenCode models and pricingRead 11 November 2026
- OpenCode permissionsRead 21 October 2026
- Claude pricingRead 11 November 2026
- Claude Code overviewRead 11 November 2026
- Claude Code data usageRead 11 November 2026