OpenCode: $0 Agent, About $42 a Month With Claude

In brief

OpenCode is a free, MIT licensed open source coding agent from Anomaly that runs in your terminal, a desktop app and a phone app. The software costs $0, as of November 2026. You pay your model provider: Zen bills per token, Go starts at $10 a month, and Anthropic's terms bar using a Claude Pro or Max login.

Whizi doesn’t connect to OpenCode.

What is OpenCode, and is it free?

OpenCode is a free open source coding agent that edits your repo from a terminal, a desktop app or a phone app, and it costs nothing until you attach a paid model. Whizi, which publishes this page, is not a coding agent and has no editor or terminal link, so it is the wrong tool for that job. For code questions, reviews and planning in a chat window, Whizi Pro puts Claude Sonnet and Opus, GPT and Gemini in one app. Pro is $29.99 a month.

A glass terminal window on a black plinth with a small terracotta cube beside it and three frosted blocks of different heights behind, in a charcoal studio.

The agent itself is built by Anomaly and licensed under the MIT License, and the project's GitHub page showed about 229,800 stars when we read it in November 2026. It runs on your machine and talks to whichever model you choose. OpenCode's home page says it supports "200+ LLM providers through Models.dev, including local models". It also ships a set of free hosted models you can use without an account. The list changes, so check it before you rely on one.

The word free covers the software and nothing else. A coding agent sends your files to a model on every request, and that model charges by the token. Zen, Go and your own API key are three ways to pay for those tokens. The next sections price each one.

How do you install OpenCode?

Install OpenCode with one terminal line: curl -fsSL https://opencode.ai/v2/install | bash. The README also lists npm (npm i -g @opencode/cli@latest), Homebrew (brew install anomalyco/tap/opencode-v2), Arch Linux, mise and Nix. A desktop app for macOS, Windows and Linux is in beta, and the home page links an iPhone and an Android app.

The terminal has two built in agents you switch with the Tab key. Build is the default and has full access for development work. Plan is read only: it denies file edits and asks before it runs shell commands. A general subagent handles broad searches. Use Plan first on a repo you do not know, then switch to Build.

One caution from the project's own security policy, as a third party summary puts it: OpenCode does not sandbox the agent. Treat Build mode like handing a developer your shell. Run it in a throwaway branch.

What can OpenCode do besides edit files?

OpenCode's docs cover MCP servers for extra tools, custom commands, plugins, Docker images, and a web interface you open with the opencode pair command. Pair links work once and expire in five minutes. The docs add that Windows package managers are not supported, so Windows users install by the script or the desktop app.

Those extras don't change the bill. Every one of them still sends text to a model that charges by the token, so the cost sections below apply to all of them.

How much does OpenCode cost with Zen, Go or an API key?

OpenCode costs $0 for the app, $10 a month for Go, $40 a month for Go Plus, or the per token price of the model on Zen. We read the Go page and the Zen price list in November 2026. Go and Go Plus both include 32 models and count limits over five hour, weekly and monthly windows. Third party reviews report a $5 first month for Go, but the Go page did not state it, so we don't list it.

Route, read November 2026PriceWhat you getWatch for
OpenCode app$0Terminal, desktop and phone app, MIT licenseNo model included except the free hosted ones
Free hosted models$0A rotating set, no account neededListed as limited time; may retain data
Go$10 a month32 models, limits per modelClaude Haiku 5.5 is the only Claude model in the list we read
Go Plus$40 a monthSame 32 models, up to four times the 5 hour requestsSame model list as Go
ZenPer token, credits you top upClaude, GPT, Gemini, Grok and open models at list price4.6% + $0.31 fee on every top up
Your own API keyThe provider's priceAny provider that sells API accessYou manage billing and limits

Go is the cheap lane. On Go, Claude Haiku 5.5 gets an estimated 3,850 requests per five hours and a $15 monthly limit, while GPT-5.6 Luna gets 2,050 and $15. Go Plus quadruples those request estimates and the limit to $60. The page notes that once you hit a Go limit you can keep using the free models, or top up credit so requests draw on your balance.

Zen is the lane for frontier models. Billing is per request from prepaid credit, and each purchase carries a 4.6% + $0.31 processing fee. Auto recharge refills when your balance runs low, and budgets cap monthly spend for the workspace and each member. The page doesn't list a minimum top up.

What does a month of OpenCode with Claude or GPT cost?

A month of OpenCode costs about $2 on Claude Haiku 5.5, $42 on Claude Sonnet 5.5 and $84 on Claude Opus 5.5 if you send 20 agent requests a workday. That is the same worked month we use on our Cursor pricing page: 21 workdays, so 420 requests. Each one reads 40,000 tokens of code and writes 2,000 tokens back. We counted every input token at the full rate with no cache discount, so each figure is a ceiling.

The same 420 requests cost $2 to $88 in OpenCode credits
token costwith one top up fee$0$10$20$30$40$50$60$70$80US dollars a month, Zen rates read November 2026Claude Haiku 5.5$2.10$2.51$0.005 a requestGPT-5.6 Luna$4.37$4.88$0.0104 a requestClaude Sonnet 5.5$42$44.24$0.10 a requestClaude Opus 5.5$84$88.17$0.20 a request

The Sonnet row works like this. Zen lists Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output. So 40,000 input tokens cost $0.08 and 2,000 output tokens cost $0.02, which is $0.10 a request and $42 for 420. One $42 top up adds a fee of $1.93 + $0.31, so the bill is $44.24. Opus 5.5 lists at $4 and $20, which doubles it. GPT-5.6 Sol lists at $4 and $20 too.

Caching pulls the real number down. Zen charges $0.10 per million for cached Sonnet 5.5 reads, a twentieth of the full rate, and a session that rereads the same files pays far less than the ceiling. Heavy agent loops can also read far more than 40,000 tokens a request, so your own month can land above these lines. Treat them as a starting point, and watch what you've spent after the first week.

Can you use a Claude Pro or Max subscription in OpenCode?

No: Anthropic's terms do not let a third party app run on a Claude Pro or Max login, and OpenCode's provider page doesn't offer one. Anthropic's Claude Code legal page says it "does not permit third-party developers to offer Claude.ai login into their own applications, or to route requests through Free, Pro, Max, or Ultra plan credentials on behalf of their users."

The same page says developers building on Claude "should use API key authentication through Claude Console or a supported cloud provider." So the legitimate Claude routes in OpenCode are an Anthropic API key billed per token, Zen's Claude models, or Claude through a cloud provider you already pay. OpenCode's provider docs describe a different subscription route that does exist: signing in with ChatGPT Plus or Pro, or with a GitHub Copilot account.

Search results show plugins that claim to restore the old Claude login, and reports of banned accounts. We read no official statement on those, so we can only say what the terms say. If you want a flat monthly Claude price for coding, Claude Code pricing covers Anthropic's own agent, which is the route the Pro and Max plans are built for.

Is OpenCode better than Claude Code?

OpenCode is better if you want to pick the model and pay per token, and Claude Code is better if you want Claude on a flat plan. OpenCode works with 200+ providers and local models. Claude Code runs only Claude, but Anthropic's Pro plan covers it at $20 a month, or $17 a month billed yearly, as read on our Claude Code page from Anthropic's pricing page.

AgentModelsEntry priceBest for
OpenCode200+ providers, local models$0 app; Go $10; Zen per tokenPeople who want any model and open source
Claude CodeClaudeIncluded in Claude Pro at $20 a monthPeople who want Claude on a flat plan
Codex CLIOpenAI modelsIncluded in ChatGPT Plus at $20 a monthPeople already on ChatGPT; see Codex CLI
CursorGrok, Claude, GPT, GeminiPlus $8, Premium $30; see Cursor pricingPeople who want an editor, not a terminal
Whizi chatClaude, GPT, GeminiFree plan, then Pro $29.99Questions and reviews, no repo access

The plan price is not the whole bill, so compare on your own month. OpenCode on Go at $10 and the Pro plan of a lab agent at $20 are not the same product. The first gives you a list of cheaper models with request limits. The second gives you one lab's best model. Claude Code alternatives goes deeper on the tradeoffs.

What is OpenCode bad at?

OpenCode is weak where a managed product is strong: it does not bundle a frontier model into one price, and it makes you do the billing. The free hosted models are listed as limited time, so a model you like can disappear, and you can't count on it. Zen's privacy page says free models may retain data, and two named free models retain data for 30 days. For paid models, it says OpenAI and Anthropic retain requests for 30 days and Google up to 55 days.

Other limits come from the design. Local models produce more invalid tool calls, according to one third party review. The desktop app is labelled beta on the project's README. The agent runs your shell, so a bad instruction can delete files. Keep work in Git, use Plan mode before Build, and cap spend with a Zen budget.

Which OpenCode setup should you pick?

Pick Go at $10 a month if you code every day and cheap models are enough, and Zen if you need Claude Sonnet or GPT quality. Pick your own API key if your company already pays a provider. If you only want to try it, install the app and use the free hosted models for an afternoon, which costs $0.

Start with the free models, move to Go if you keep using it, and add a small Zen balance only for the tasks that need a frontier model. Set a monthly budget before you turn on auto recharge.

One subscription instead of several: where does Whizi fit?

Whizi covers the chat half of your AI spend, not the repo half. OpenCode edits files in your project. Whizi can't, so keep OpenCode, Claude Code or Cursor for that. For asking Claude Sonnet and Opus, GPT and Gemini how to design a function, review a diff you paste in, or explain an error, Pro is $29.99 a month, and its first week is $1.99.

The free plan gives you 10 messages a day on Whizi AI, Auto and Claude Haiku with no card. Whizi runs in the browser on Mac and Windows and in a phone app, so there is nothing to install. Side by side Compare, which runs two models on one prompt, is a Pro feature. It won't pay for Claude inside OpenCode, since that bills per token. The cheapest way to use Claude and GPT runs the numbers for the chat side.

Workflow checklist
  • Install OpenCode and try the free hosted models before you add any paid plan
  • Pick Go at $10 a month only if cheap models do your work, since Claude Sonnet is not in the Go list we read
  • Set a monthly Zen budget before you turn on auto recharge, and remember the 4.6% + $0.31 fee per top up
  • Use Plan mode first on a new repo, then switch to Build on a Git branch
  • Do not connect a Claude Pro or Max login: use an API key or Zen for Claude instead
  • Price your own month at your request count, since Sonnet 5.5 is about $0.10 per 40,000 token request
Common questions

Frequently asked questions

Is OpenCode free?

Yes, the OpenCode app is free and MIT licensed, as of November 2026. You still pay a model provider unless you stay on the free hosted models. Go starts at $10 a month and Zen bills per token. Claude Code pricing shows the flat plan alternative.

Who owns OpenCode?

OpenCode is built by Anomaly and released under the MIT License, according to its own home page. The code lives at github.com/anomalyco/opencode. It is not owned by Anthropic, OpenAI or Google, and it works with models from many providers.

What is OpenCode Zen?

Zen is OpenCode's pay per token model service: you top up credit and each request bills at the model's list price, such as $2 in and $10 out per million tokens for Claude Sonnet 5.5. Each purchase has a 4.6% + $0.31 fee. Cursor pricing shows how a per token bill compares.

Can OpenCode use my ChatGPT or Copilot subscription?

Yes, OpenCode's provider docs describe signing in with ChatGPT Plus or Pro, and connecting a GitHub Copilot account, with usage counted against that plan. Claude Pro and Max are different: Anthropic's terms do not permit routing third party requests through them. See Codex CLI.