Skip to main content
VibeFactory logoVibeFactory
Claude Code logo
opencode logo

Claude Code vs opencode

What the data says

Claude Code — 149,849 stars, committed 8 Oct 2026. opencode — 212,333 stars, committed 8 Oct 2026, MIT.

Claude Code is a CLI tool that runs in the terminal: Command-line AI coding agent that understands your codebase and automates tasks via natural language.

opencode is a CLI tool: AI coding agent built for the terminal.

Claude Code and opencode, fact by fact

FactClaude Codeopencode
Starsopencode has 62,484 more stars (1.4×).149,849Verified 8 Oct 2026212,333Verified 8 Oct 2026
Newest commitBoth committed on the same day.8 Oct 20260 days old when we read itVerified 8 Oct 20268 Oct 20260 days old when we read itVerified 8 Oct 2026
Contributorsopencode has 397 more contributors (8×).57Verified 8 Oct 2026454Verified 8 Oct 2026
Licensenot tracked for Claude CodeMITVerified 8 Oct 2026
Latest stable releaseBoth released on the same day.v2.1.294published 8 Oct 2026Verified 8 Oct 2026v1.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 20263,318,599 a weekopencode-aiVerified 8 Oct 2026
Homebrew installsnot tracked for Claude Code21,432 in 30 daysopencodeVerified 8 Oct 2026
Repositoryanthropics/claude-codeTypeScriptVerified 8 Oct 2026anomalyco/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.”

code.claude.com/docs/en

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”

code.claude.com/docs/en

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”

code.claude.com/docs/en

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”

code.claude.com/docs/en

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).”

github.com/anthropics/claude-code

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”

github.com/anthropics/claude-code

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.”

code.claude.com/docs/en

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.”

goose-docs.ai/docs/getting-started

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.”

claude.com/pricing

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.”

code.claude.com/docs/en

Full Claude Code profile · Visit github.com

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.”

opencode.ai/docs/providers

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”

github.com/anomalyco/opencode

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.”

opencode.ai/docs/providers

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.”

opencode.ai/docs/github

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".”

opencode.ai/docs/permissions

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.”

github.com/anomalyco/opencode

`/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.”

opencode.ai/docs/share

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.”

developers.openai.com/codex/sandbox

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.”

opencode.ai/docs/go

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.”

opencode.ai/docs/go

Full opencode profile · Visit opencode.ai

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.

Profiles for the tools named here