Last verified

Anomaly · opencode

opencode: a coding agent that sells you nothing

Free software with more than seventy-five ways to attach a model — and a vendor whose own price claim we could check.

opencode is an open-source coding agent for the terminal, made by Anomaly and licensed MIT. The client is free and always will be; what costs money is the model you attach, through any of more than seventy-five providers, your own hardware, or the vendor's own gateway. We have not run it ourselves — everything here is read from its documentation and repository, dated and linked.

Cheapest way in Free — you pay the model
Free tier Yes
Ways to buy it 8
Oldest check 2026-10-29
§ 01 / WHAT IT IS

What it is.

Start with the identity, because three different things answer to this name.

opencode is an AI coding agent that runs in your terminal, with a desktop application and editor extensions alongside it. It reads a codebase, answers questions about it, and edits files and runs commands when you let it. The client is MIT-licensed, the repository is anomalyco/opencode, and the company behind it is Anomaly. When we last checked, on 29 October 2026, the project reported about 223,000 stars and more than a thousand contributors, and the current release was v1.19.5, published the day before.

The name is the first thing to get straight, and the vendor knows it: its own README asks other projects using "opencode" in their name to state in their README that they are not built by this team. A separate repository under a similar name ranks alongside it in search, and the word turns up in unrelated tooling. If you are comparing notes with someone, compare repository URLs rather than names.

What makes it structurally different from the other agents in this section is that there is no product to buy. Claude Code is sold inside a Claude subscription; Codex is sold inside a ChatGPT plan and metered in credits. opencode is given away, and the vendor instead sells model access two ways alongside it — a pay-as-you-go gateway and two subscriptions to a curated model list — while supporting more than seventy-five other providers you could use instead, including running the model on your own machine. Its stated position is no lock-in, in both directions: use its gateway with a different agent, or use a different provider with its agent.

That claim is the sort we can actually test rather than repeat, so we did. The vendor says its gateway sells models at cost and adds only card processing. We took its published rate card and joined it to the models we price independently from the labs' own pages. In August, twenty-three of twenty-five matched to the cent and both misses were cheaper. On 29 October, sixty-five of seventy-one matched, two were cheaper, and four were dearer: Gemini 3.6, 3.7 and 3.8 Flash are billed at the rate Google has scheduled for January 2027, twice what Google itself charges until the end of 2026, and DeepSeek V4 Pro sits on a different card, dearer on input and cheaper on output than DeepSeek's own. We have not run the tool itself — there are no test runs of ours behind this page, and where a claim needs evidence we do not have, it says so.

§ 02 / WHAT IT COSTS

What it costs.

Full pricing →

Nothing, and then whatever the model costs. There is no paid edition of the client and no tier to upgrade to, so every route on the pricing page buys a model rather than the program. Point it at a model on your own hardware and the bill is genuinely zero. Point it at a key and you pay the lab directly, unmarked-up. Or take one of the vendor's own routes — a per-token gateway, or one of two subscriptions whose ceiling is unusual enough to be worth reading about: each model carries its own monthly allowance in dollars of usage at a published rate, rather than messages, credits or an unexplained window.

Route Bought as Price
Local model Own hardware Your hardware
Your own API key API key At model rates
OpenCode Zen API key At model rates
OpenCode Go Subscription $10/mo
OpenCode Go Plus Subscription $40/mo
ChatGPT Plus Subscription $20/mo
GitHub Copilot Pro Per seat $10/seat/mo
Enterprise Per seat Contact sales
§ 03 / WHEN NOT TO

Who it is wrong for.

Structural reasons rather than complaints about quality — cases where no amount of configuration makes this the right tool.

You want to run it on a Claude Pro or Max subscription This is the single most common thing readers try, and the documentation answers it plainly. The Anthropic provider is set up with an API key and nothing else, and an information box in the same section says plugins that run a Claude Pro or Max subscription exist, that Anthropic explicitly prohibits it, and that opencode stopped shipping them at version 1.3.0. In August the steps above that box still described a Claude Pro/Max login, so the page contradicted itself; by 29 October the steps had been brought into line. The same box names what does work with no setup: ChatGPT Plus, GitHub Copilot and GitLab Duo. If a Claude subscription is what you hold, Claude Code is the tool it was sold to run.
You want a predictable bill that covers heavy frontier work The vendor's subscriptions now include frontier models — Kimi K3, Grok 4.7, Gemini 4 Argon, Qwen3.8 Max — but those carry the smallest monthly allowances on either plan, which the vendor's own estimate puts at roughly a hundred to a few hundred requests per five hours. Past that, frontier work moves to the per-token route, where the bill is proportional to use and has no ceiling. If a fixed monthly number covering heavy use of the best available model is the requirement, that is what a subscription-first tool sells and this one does not.
"Free" has to mean your prompts stay yours The client is free in the way that costs nothing at all. The vendor's free hosted models are free in different ways: two run on providers that retain nothing and train on nothing, while most of the rest are offered at no charge for a limited period so the lab behind them can collect feedback and improve the model. Three go further and say in the docs not to submit personal or confidential data; on the subscription, two more trade heavily discounted pricing for permission to train on your prompts and completions. Free as in beer, free as in a research programme, and free as in you own the hardware are three different offers here — the pricing page separates them. If none is acceptable, the answer is a local model or a paid key.
You want the tool to decide which model to use Provider-agnostic is the whole design, and the cost of it is that the choice is yours. More than fifty providers are documented by name and seventy-five supported, each with its own auth, quality and availability — and the vendor built its curated gateway precisely because it decided that choosing well is hard, saying that a model reached through a gateway such as OpenRouter may perform differently from the same model served well. That gateway is an opinion you can buy, but it is optional by design. A tool that ships one blessed model and hides the question is less flexible and, for some teams, correct.
You are on Windows and will not use WSL The installation documentation recommends WSL for Windows users for best compatibility. That is a small sentence with real consequences on a locked-down corporate laptop, where enabling a Linux subsystem is a request to somebody else rather than a decision you make. Worth resolving before you plan around the tool rather than after.
§ 04 / HOW IT COMPARES

Nothing to set it beside, yet.

All comparisons →
!
No head-to-head covers this tool yet. Head-to-head comparisons live at /compare/, where each pair is researched and dated on its own terms, and nobody has yet written one that includes this tool. We will not assemble a pair here to fill the slot — a second page on the same match-up competes with the real one for the same search, which is a problem we would be creating for ourselves. The pairs worth writing are against the other terminal agents rather than the editor-shaped tools.
§ 05 / ALTERNATIVES

If not this.

See the list →

Seven tools, grouped by the reason you would actually leave — wanting a subscription instead of a meter, wanting an editor instead of a terminal, wanting a different open-source licence, or wanting somebody accountable. Each carries its own published entry price, read on the day of writing.

Frequently asked.

What people search next.

Q · 01 What is opencode? +
An open-source AI coding agent that runs in your terminal, with a desktop app and editor extensions as well. It reads and edits a codebase, runs commands, and works against whichever model you connect — more than seventy-five providers are supported, from the frontier labs to a model running on your own machine. It is made by a company called Anomaly and licensed MIT.
Q · 02 Is opencode free? +
The client is, permanently: MIT-licensed, with no paid edition above it. What costs money is the model you attach, and that can also be free — either a model running on your own hardware, or one of the ten the vendor's gateway currently does not charge for. Those hosted free models come with conditions worth reading, and they differ: on several, your prompts may be used to improve the model.
Q · 03 Which opencode is this? +
The one at github.com/anomalyco/opencode, from the company Anomaly. Other projects use the same word — the vendor's own README asks them to say in their READMEs that they are not from this team — and at least one similarly named repository appears alongside it in search results. Comparing repository URLs is the only reliable way to be sure you and someone else mean the same tool.
Q · 04 Does the vendor take a cut of what you spend on models? +
Not on your own key — it is not in the billing path, so whatever the lab charges is what you pay. On its own gateway it says it sells at cost and adds only card processing, which we checked on 29 October against seventy-one models we price from the labs' own pages: sixty-five matched exactly, two were cheaper, and four were dearer — Gemini 3.6, 3.7 and 3.8 Flash at the price Google has set for 2027, and DeepSeek V4 Pro on a different card.
Q · 05 Can I use it at work? +
The licence permits it, and there is an enterprise arrangement with a central configuration that can integrate SSO and restrict the tool to your own internal model gateway, disabling every other provider. Two things to check first: the vendor documents that it stores no code or context data but that the optional share feature sends conversations to its CDN, and it recommends disabling that for a trial. Enterprise pricing is per seat and unpublished, with the notable term that tokens are not charged if the gateway is yours.
Q · 06 Have you tested it yourselves? +
No. This page is built from the vendor's documentation, its repository, its terms of use and our own price snapshot — first read on 28 August 2026 and re-read on 29 October 2026. Where we say something is verified, that means we read the primary source, not that we ran the tool. The one claim we did test independently is the pricing one, because it could be checked against data we already hold.