OpenCode review: is the free AI coding agent actually free?
OpenCode is a terminal-native AI coding agent. It runs inside your existing terminal, reads your codebase, and can write, edit, and run code across an entire project instead of one file at a time. The software itself carries no license fee and is open source under the MIT license. This review covers what it actually does, the real six-step setup, and the pricing model most people miss on the first read. You can try it directly at OpenCode’s official site.
What OpenCode actually is
Most AI coding tools live inside an editor. OpenCode lives inside your terminal instead, which matters if your workflow already runs through Vim, tmux, or a remote SSH session. It’s built by the team behind SST and is fully open source (MIT license) on GitHub. There’s no vendor lock-in on the model side either: OpenCode connects to more than 75 LLM providers, so you’re never stuck paying one company for both the tool and the tokens.
The 6-step setup, condensed
Setup takes about ten minutes if you already have a terminal open. Here’s the full path, straight from OpenCode’s own docs:
- Install. Every major platform is covered:
curl -fsSL https://opencode.ai/install | bashon macOS/Linux,npm install -g opencode-aion any OS with Node, or Homebrew/Scoop/Chocolatey/pacman if you prefer a package manager. - Launch inside a project. OpenCode is project-scoped, so
cdinto the repo first, then runopencode. - Connect a provider. Run
/connectinside the session. OpenCode’s docs point beginners toward “OpenCode Zen” as the default, but any of the 75+ supported providers work. You’ll sign in at opencode.ai/auth to generate an API key, then paste it back into the prompt. - Initialize the project. Run
/initonce per repo. It writes anAGENTS.mdfile to the project root, which OpenCode recommends committing to version control so the context travels with the codebase. - Choose your model. Switch anytime with
/models, or pin one permanently inopencode.jsonso every session starts on the same model. - Know what you’re paying for. This is the step most reviews skip. See below.
Download the full walkthrough (free PDF)
All six steps with the exact commands, laid out as a printable one-pager.
The pricing model everyone gets wrong
“Free” only covers the software. OpenCode itself has no license fee, but you still pay per token to whichever provider you connect. That’s a different cost model from a flat monthly subscription:
| Flat subscription | OpenCode (BYOK) | |
|---|---|---|
| License fee | Flat, recurring | None |
| You pay for | Access | Tokens used |
| Providers available | One | 75+ |
| License | Proprietary | MIT |
BYOK isn’t automatically cheaper. Cost depends entirely on which provider and model you route through. Heavy use on a premium frontier model can end up costing more than a flat subscription would have, and there’s no vendor support line if something breaks. Provider pricing is also set independently by each provider and can change without notice.
Who this is actually for
It’s a strong fit if you already live in a terminal, want to avoid being locked into one model provider, or need an agent that can work across a whole project rather than one open file. It’s a weaker fit if you want predictable flat-rate billing, or you’d rather not manage API keys and usage caps yourself. Light, occasional use is where BYOK pricing tends to actually win; heavy daily use is where it needs the most watching.
Bottom line
OpenCode earns its “free” label on the software itself, not on total cost. The MIT license and 75+ provider support make it one of the more flexible coding agents available right now, but budget-conscious users need to treat the token bill as a real, variable line item, not an afterthought. Try the free download above before your first session so you’re not improvising the setup steps live.
Disclaimer: This review is unsponsored and there is no affiliate relationship with OpenCode at the time of writing.
This review is part of our AI Tools & Automation hub. See more AI Tools & Automation reviews and guides there.
Related: n8n Reviews 2026: Pricing, Features & Is It Worth It?, Make.com Reviews (2026): Is It Worth the Hype? An Honest Breakdown, Perplexity AI Review: Is It Worth Paying For in 2026?