Claude Code and opencode, fact by fact
| Fact | Claude Code | opencode |
|---|---|---|
| Starsopencode has 62,484 more stars (1.4×). | 149,849Verified 8 Oct 2026 | 212,333Verified 8 Oct 2026 |
| Newest commitBoth committed on the same day. | 8 Oct 20260 days old when we read itVerified 8 Oct 2026 | 8 Oct 20260 days old when we read itVerified 8 Oct 2026 |
| Contributorsopencode has 397 more contributors (8×). | 57Verified 8 Oct 2026 | 454Verified 8 Oct 2026 |
| License | not tracked for Claude Code | MITVerified 8 Oct 2026 |
| Latest stable releaseBoth released on the same day. | v2.1.294published 8 Oct 2026Verified 8 Oct 2026 | v1.18.35published 6 Oct 2026Verified 8 Oct 2026 |
| npm downloadsClaude Code has 11,467,684 more npm downloads a week (4.5×). | 14,786,283 a week@anthropic-ai/claude-codeVerified 8 Oct 2026 | 3,318,599 a weekopencode-aiVerified 8 Oct 2026 |
| Homebrew installs | not tracked for Claude Code | 21,432 in 30 daysopencodeVerified 8 Oct 2026 |
| Repository | anthropics/claude-codeTypeScriptVerified 8 Oct 2026 | anomalyco/opencodeTypeScriptVerified 8 Oct 2026 |
What we know about Claude Code
Claude Code runs only Anthropic models: every alias — default, best, fable, sonnet, opus, haiku and opusplan — resolves to a Claude model, and changing the base URL moves where the request goes without changing which model answers it.
“ANTHROPIC_BASE_URL changes where requests are sent, not which model answers them.”
Plan a change with Opus and execute it with Sonnet inside one session, by setting the model to `opusplan`.
“Special mode that uses opus during plan mode, then switches to sonnet for execution”
Run the agent on infrastructure your employer already approved: the model setting accepts an Amazon Bedrock inference profile ARN, a Microsoft Foundry deployment name, or a Google Cloud Agent Platform version name.
“Amazon Bedrock: an inference profile ARN”
Work one long task without losing history: `sonnet[1m]` gives a 1 million token context window, and auto-compaction runs below it.
“Uses Sonnet with a 1 million token context window for long sessions”
You cannot audit, fork or patch the agent: the repository publishes the changelog, plugins and examples, not the CLI source, under an all-rights-reserved licence. GitHub Copilot CLI is the only other tool in this set that does the same.
“© Anthropic PBC. All rights reserved. Use is subject to Anthropic's [Commercial Terms of Service](https://www.anthropic.com/legal/commercial-terms).”
Subscribers report the plan limit arriving far earlier than the plan implies: the repository's most-commented open issue carries 1,487 comments and 724 reactions and has stayed open since 2026-01-03.
“[BUG] Instantly hitting usage limits with Max subscription”
On API-key billing the cost is per token, and Anthropic's own enterprise figure is $150-250 per developer per month.
“Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users.”
A developer who must run a local or self-hosted model should choose goose or Crush; both accept an Ollama endpoint.
“Local model runner supporting Qwen, Llama, DeepSeek, and other open-source models.”
What Claude Code costs
Claude Pro costs $17 per month on the annual plan, $200 billed up front, or $20 per month billed monthly; Max starts at $100 per month.
“Per month with annual subscription discount ($200 billed up front). $20 if billed monthly.”
Pro and Max subscribers do not pay per token for Claude Code; the usage sits inside the subscription.
“Claude Max and Pro subscribers have usage included in their subscription, so the session cost figure isn’t relevant for billing purposes.”
What we know about opencode
OpenCode reaches 75+ LLM providers and local models from a single config file, because it resolves every model through the AI SDK and the Models.dev catalogue instead of a hand-written provider list.
“OpenCode uses the AI SDK and Models.dev to support 75+ LLM providers and it supports running local models.”
Explore an unfamiliar codebase before you change it: the built-in plan agent refuses file edits and asks before each bash command.
“**plan** - Read-only agent for analysis and code exploration · - Denies file edits by default · - Asks permission before running bash commands · - Ideal for exploring unfamiliar codebases or planning changes”
Run one task against two vendors' models in the same session: `/connect` adds a provider key and the model picker switches without a restart.
“Add the API keys for the provider using the /connect command.”
Run the agent inside CI on your own runner: mentioning /opencode or /oc on a GitHub issue or pull request executes the task in GitHub Actions.
“OpenCode integrates with your GitHub workflow. Mention /opencode or /oc in your comment, and OpenCode will execute tasks within your GitHub Actions runner.”
A fresh install edits files and runs shell commands with no approval prompt, because every permission except `doom_loop` and `external_directory` starts at allow.
“Most permissions default to "allow".”
Memory grows through a long terminal session: the maintainers opened a central memory thread on 2026-04-02, asked users for heap snapshots taken once the process reaches 1-2 GB, and the thread is still open 139 days later.
“We have scattered reports of memory issues so we are going to tackle them all in a central place.”
`/share` copies the transcript to OpenCode's servers, and the resulting link needs no password.
“Shared conversations are publicly accessible to anyone with the link.”
A team that must lock the agent down before its first run should choose Codex CLI, which starts inside an OS-enforced sandbox with the network switched off.
“By default, the agent runs with network access turned off.”
What opencode costs
OpenCode Go, the optional subscription, costs $5 for the first month and $10 a month after that, and one workspace can hold only one subscriber.
“OpenCode Go is a low cost subscription — $5 for your first month, then $10/month — that gives you reliable access to popular open coding models.”
A workspace can hold only one Go subscriber, so a second developer needs a second workspace.
“Only one member per workspace can subscribe to OpenCode Go.”
Questions people ask
- Are Claude Code and opencode still maintained?
- Claude Code committed to anthropics/claude-code (main) on 8 Oct 2026. opencode committed to anomalyco/opencode (dev) on 8 Oct 2026. Both readings come from the default branch of each repository, on the date shown beside them.
- What do Claude Code and opencode cost?
- Claude Code: Claude Pro costs $17 per month on the annual plan, $200 billed up front, or $20 per month billed monthly; Max starts at $100 per month. Pro and Max subscribers do not pay per token for Claude Code; the usage sits inside the subscription. opencode: OpenCode Go, the optional subscription, costs $5 for the first month and $10 a month after that, and one workspace can hold only one subscriber. A workspace can hold only one Go subscriber, so a second developer needs a second workspace. Every figure here is quoted from the vendor's own page and linked beside the claim.
- Is Claude Code or opencode open source?
- We have not read a licence for Claude Code. opencode's repository anomalyco/opencode reports the MIT licence. We read the licence GitHub reports for the repository, which is not the same question as whether the hosted product is free.
How we check this page
- Machine facts. Stars, contributors, the newest commit on the default branch, the licence GitHub reports and the latest stable release come from the GitHub API, and download counts from npm, PyPI, Homebrew and the VS Code Marketplace. Each value carries the day it was last confirmed, never the day this page was built. The line under each label is arithmetic on those two values.
- Judgments. Every claim about what a tool suits, what it is bad at and what it costs is quoted from a page we read, and that page is linked beside the claim. Where there is no link, we wrote no claim.
- Index status. Both Claude Code and opencode carry claims we read, quoted and linked. So this page is offered to search engines.
Related comparisons
Pairs we can answer for come first.