Skip to content

OpenCode vs Claude Code: price, models and where each one runs

Better Design

Direct answer

OpenCode vs Claude Code: OpenCode is a free, MIT-licensed coding agent that works with many model providers, including a ChatGPT plan or GitHub Copilot. Claude Code is Anthropic's closed source agent for Claude models, included in Claude Pro at $20 a month.

A hand-drawn pair of browser windows labelled OpenCode and Claude Code, with a balance between them.

OpenCode and Claude Code side by side

Each cell comes from the vendor's own pricing page, help center or docs, read on November 13, 2026. Prices are in US dollars before tax.

Price
OpenCode

Free; you pay your model provider, or the optional OpenCode Go plan at $10 a month

Claude Code

Included in Claude Pro at $20 a month, or $17 a month billed yearly; Max $100 and Ultra $200 a month; not in the Free plan

Models
OpenCode

Providers from the models.dev catalog, including a ChatGPT Plus or Pro plan, GitHub Copilot, Azure and OpenCode Go

Claude Code

Anthropic models: Sonnet, Haiku and Opus on Pro; Fable on usage credits, or up to half the weekly limit on Max and Ultra

Where it runs
OpenCode

Terminal, desktop app and a web interface started with opencode pair

Claude Code

Terminal, VS Code and Cursor extensions, a desktop app and the web

Source code
OpenCode

Open source under the MIT license

Claude Code

Closed source: all rights reserved, use under Anthropic's Commercial Terms

Install
OpenCode

curl -fsSL https://opencode.ai/v2/install | bash, or npm install -g @opencode/cli

Claude Code

curl -fsSL https://claude.ai/install.sh | bash

Project rules
OpenCode

AGENTS.md only; OpenCode V2 does not fall back to CLAUDE.md

Claude Code

CLAUDE.md in the project

MCP servers
OpenCode

Local and remote servers, added with opencode mcp add

Claude Code

Yes; a team can check a shared .mcp.json into the repo

Built-in agents
OpenCode

build, with full access, and plan, which denies file edits by default

Claude Code

One agent that also runs in the IDE, desktop app and web

Pick OpenCode when

  • You want to choose the model provider, or use a ChatGPT plan or GitHub Copilot you already pay for.
  • You want open source code under the MIT license.
  • You want to start without a subscription and pay only for the models you use.

OpenCode or Claude Code?

Four questions to answer before you choose. The lists above and below show which answer points to which tool.

A hand-drawn decision path between OpenCode and Claude Code: Do you want to pick the model provider?, Do you need open source code?, Do you want IDE extensions?, Do you already pay for Claude?.
  • Question 1: Do you want to pick the model provider?
  • Question 2: Do you need open source code?
  • Question 3: Do you want IDE extensions?
  • Question 4: Do you already pay for Claude?

Pick Claude Code when

  • You want Claude models inside a plan's limits, with no provider setup.
  • You want IDE extensions for VS Code and Cursor next to the terminal.
  • Your company buys models through Amazon Bedrock, Google Cloud or Microsoft Foundry: Claude Code runs on each.

Permissions and planning in OpenCode and Claude Code

Both agents separate planning from editing. OpenCode does it with two built-in agents; Claude Code does it with permission modes:

Default agent
OpenCode

build: the base policy allows every action, except reading .env files, which asks first

Claude Code

Auto mode in v2.1.283 or later, unless your settings choose another; start with claude --permission-mode default for Manual mode, where edits and commands ask first

Plan without editing
OpenCode

plan: denies edits except its plan files; shell commands still run unless you add a shell rule with effect ask

Claude Code

Plan mode: press Shift+Tab or prefix a prompt with /plan

Switching
OpenCode

Switch between the build and plan agents

Claude Code

Shift+Tab cycles the modes

Models
OpenCode

Providers from the models.dev catalog, a ChatGPT Plus or Pro plan, or GitHub Copilot

Claude Code

Anthropic's Claude models

Move between OpenCode and Claude Code without losing your setup

Three things carry over if you plan for them:

  • Rules: OpenCode V2 reads AGENTS.md and Claude Code reads CLAUDE.md. Keep the same rules in both, or list CLAUDE.md under instructions in opencode.jsonc.
  • MCP servers: add each server to opencode.jsonc under mcp.servers, or with opencode mcp add, and to Claude Code's .mcp.json.
  • Models: OpenCode can run Claude models through a provider, so you can try OpenCode without changing models.

What switching between OpenCode and Claude Code takes

  • From Claude Code to OpenCode: OpenCode V2 reads AGENTS.md only, so copy CLAUDE.md into AGENTS.md, or list CLAUDE.md under instructions in opencode.jsonc.
  • MCP servers: add each one under mcp.servers in opencode.jsonc, or run opencode mcp add.
  • From OpenCode to Claude Code: copy AGENTS.md into CLAUDE.md, because Claude Code reads CLAUDE.md.

Steal this workflow

Run this guide in your own assistant. The prompt carries the guide link and the workflow summary, so the assistant can adapt it to your project.

Read the guide "OpenCode vs Claude Code: price, models and where each one runs" at https://better-design.com/blog/opencode-vs-claude-code and help me apply it to my project.

OpenCode vs Claude Code: OpenCode is a free, MIT-licensed coding agent that works with many model providers, including a ChatGPT plan or GitHub Copilot. Claude Code is Anthropic's closed source agent for Claude models, included in Claude Pro at $20 a month.

Start by asking what I am building and which tools I use. Then walk me through the workflow step by step, adapted to my answers.

Claude and ChatGPT open with the prompt filled in. Gemini copies the prompt to your clipboard first, so paste it when the app opens.

Questions

Is OpenCode free?

Yes. OpenCode is free and MIT-licensed. You pay your model provider, or the optional OpenCode Go plan at $10 a month.

Can OpenCode use my ChatGPT plan?

Yes. Connect OpenAI and choose Sign in with ChatGPT. Usage counts against your Plus or Pro plan.

Does OpenCode read CLAUDE.md?

Not by default. OpenCode V2 reads AGENTS.md only. List CLAUDE.md under instructions in opencode.jsonc to load it.

Where these OpenCode and Claude Code facts come from

Each fact comes from OpenCode's or Claude Code's own pages, read on November 13, 2026. Prices and usage limits change, so check both pricing pages before you decide.

Give OpenCode and Claude Code the same design rules

Both agents connect to MCP servers, so one design setup works in either. You can switch agents without losing it.

Better Design gives the agent a design system, interface principles and review rules, so the screens it builds look designed from the first version.