Our verdict: OpenCode is an open-source coding agent that you can drive from a terminal, a desktop app or an editor extension. The app is free under the MIT license and includes a rotating set of free models, or you can connect your own API keys, a ChatGPT or GitHub Copilot subscription, or local models. It suits developers who want agent workflows without being tied to one AI vendor.
About OpenCode
OpenCode is developed by Anomaly and the open-source community on GitHub. The agent reads your project, plans changes, edits files and runs commands, and it automatically loads language servers so the model gets accurate code information. You can run several agent sessions in parallel on the same project and share a link to any session.
OpenCode itself costs nothing. It connects to more than 75 providers through Models.dev, including Anthropic, OpenAI, Google and local models, and you can sign in with GitHub to use a Copilot plan or with OpenAI to use ChatGPT Plus or Pro. The developer also sells OpenCode Zen, a pay-as-you-go model gateway, and OpenCode Go, a $10 per month plan for open-source models. OpenCode states that it does not store your code or context data.
What it does well
- Any model. Works with 75+ providers, local models and a set of free models.
- Existing subscriptions. Signs in with GitHub Copilot or ChatGPT Plus and Pro accounts.
- LSP support. Loads the right language servers automatically for better code edits.
- Parallel sessions. Runs several agents on the same project at the same time.
- Several interfaces. Available as a desktop app, terminal UI and VS Code, Cursor or Zed extension.
Who it is for
Good fit
Developers who want an open-source agent and freedom to choose or switch AI providers.
Look elsewhere
Users who want a full code editor with AI built in rather than a separate agent app.
Pros and cons
Pros
- Free and open source under the MIT license
- Not tied to one AI vendor; local models supported
- Can reuse ChatGPT or GitHub Copilot subscriptions
Cons
- The free model lineup changes and some models are limited-time
- Strong models still require a paid provider or subscription
- Fast release pace; OpenCode 1 and 2 cannot be installed side by side
How to install OpenCode
The download button gets the latest stable 64-bit Windows desktop installer. The terminal version installs separately with npm, Bun or the install script. On first start connect a provider with /connect or pick one of the free models; usage with your own API keys is billed by that provider.
Questions about OpenCode
Is OpenCode free?
Yes. OpenCode is free and open source under the MIT license and includes some free models. You pay only for the AI provider you connect, or optionally for OpenCode Zen or the OpenCode Go plan at $10 per month.
Does OpenCode store my code?
OpenCode states that it does not store any of your code or context data. Prompts are sent to the model provider you choose.
Can I use OpenCode with local models?
Yes. OpenCode supports local models as well as cloud providers.








