Guides · September 2026

Is OpenCode free?

Yes — the program. The model behind it is where the money goes, and here is every way to pay for one through OpenCode, including the ways that cost nothing.

The short answer.

OpenCode is free. The program is open source under the MIT licence (anomalyco/opencode), installs with npm, Homebrew, Scoop, pacman, Nix, or a curl script, and runs without an account: opencode in a repository, /connect to point it at a model, and you are working. No trial, no seat, no paid tier of the tool itself. The desktop app and the IDE extension are free too.

What is not free is the model. Every message you send goes to a large language model, and whoever serves that model charges for it — per token, or through a subscription with limits. OpenCode is unusual in how many ways it lets you pay that bill, from keys you already hold, to a subscription it sells itself, to a model on your own GPU. The table is the whole answer; the rest of the page is the fine print.

Every way to pay for a model through OpenCode.

RouteWhat it costsHow it works
Your own API keysPer token, at the provider’s rates/connect, pick a provider, paste the key; 75+ providers through Models.dev — Anthropic, OpenAI, Google, DeepSeek, OpenRouter, Bedrock, Azure, Vertex, and more
ChatGPT Plus or ProThe subscription you already pay OpenAI/connect, choose OpenAI, then ChatGPT Plus/Pro; it opens a browser to sign in
GitHub CopilotYour Copilot plan — Free at $0, Pro $10, Pro+ $39, Max $100 a monthDevice-code login at github.com/login/device; some models need Pro+
Claude Pro or MaxNot a supported routeOpenCode’s docs say Anthropic explicitly prohibits it and that the plugins were removed in 1.3.0; use an Anthropic API key instead
OpenCode ZenPay as you go: credits, priced per million tokens by model; a handful of free modelsSign up at opencode.ai/auth; the balance auto-reloads $20 when it drops below $5 by default — Zen docs
OpenCode Go$10 a month for open-weight modelsUsage caps of $12 per five hours, $30 a week, $60 a month; top up if needed — Go docs
A local modelHardware and electricityOllama, LM Studio, or llama.cpp’s llama-server, configured as a provider in opencode.json

What ‘free’ actually costs.

Three of those routes can cost nothing, and each has a catch worth knowing before you plan around it. Copilot Free is real but small — GitHub’s plan page caps it at 2,000 completions and 50 chat requests a month, and an agent that reads, edits, and retries spends requests quickly. Zen’s free models are genuinely free, but the list is whichever models the OpenCode team is offering at no charge at the time, not the frontier ones. A local model through Ollama costs nothing per token and everything up front: a GPU with enough memory for a coding-capable model, and the honest gap between that model and the ones the paid routes serve.

The paid routes differ in how the meter runs. API keys bill exactly what the agent used, which is transparent and occasionally alarming — an agent loop reads far more than it writes. Subscriptions (ChatGPT, Copilot, Go) trade that for a ceiling: a flat amount, and limits instead of a surprise. Which is cheaper depends on how much you run; if you are weighing a subscription against tokens, the plan calculator does that arithmetic for Anthropic’s plans, and the reasoning transfers. Whatever the route, the levers are the same: start in the plan agent to read the approach before it edits, keep AGENTS.md short and true, and /compact a session before it grows a long tail.

The cost the table leaves out.

The last thing OpenCode needs is a computer to run on, and that is the one cost no licence can remove. It runs on your laptop, which closes; or on a desktop or a server, which you then have to reach. If the agent is going to work for an hour on a machine you own, the question becomes how you check on it from somewhere else, and how it asks you something at the moment it needs to. That is what spawnd does: one daemon on each host you own, dialing out so nothing listens and no port opens; sessions that live on the host and survive the closed tab and the laptop lid; and any browser as the console, a phone included. OpenCode is a built-in shortcut, and it signs into ChatGPT, Copilot, or your keys on the host exactly as it does today — spawnd holds no provider credentials and adds no API-key markup. The tool stays free and the machine stays yours; if the open question is the tool itself, OpenCode vs Aider takes it up.

Start

One line on any host you own.

$curl -fsSL https://spawnd.dev/install.sh | sh
Sign up free
Install the daemon

Questions

Do I need an OpenCode account?
Not to use the program. An account at opencode.ai/auth exists for Zen and Go, OpenCode’s own model routes, and for share links. With your own API keys, a ChatGPT or Copilot login, or a local model, you never create one.
Is OpenCode Zen free?
Zen is pay as you go — you load credits and each model is priced per million tokens — with a small, changing set of models offered free. Go is the subscription: $10 a month for open-weight models, with usage caps.
Is OpenCode cheaper than Aider?
Both tools are free; the models cost the same wherever you call them from. What differs is how much each tool reads per task — an agent loop explores, a pair programmer sees only what you add. The OpenCode vs Aider page covers that axis.