Review · AI tools
OpenCode review: the open source AI coding agent that runs almost any model
- Last checked
- 6 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- OpenCode if you want one agent that is not tied to one AI company.
- Claude Code or Codex if you are happy with one vendor and want its most polished tool.
Short answer
OpenCode is a free, open source AI coding agent (MIT licence, about 230,000 GitHub stars) that reads your project, edits files and runs commands from your terminal, a desktop app for macOS, Windows and Linux, or a phone app. Its big selling point is choice: its site says it works with 200+ LLM providers through Models.dev, including local models, and you can log in with ChatGPT Plus or Pro or GitHub Copilot to use plans you already pay for. Some free models need no account at all.
The app costs nothing. You pay for the model: your own API keys, a plan you already have, or OpenCode Go at $10 a month (Go Plus $40) for a set of open-weight models with five-hour and monthly limits. Pick OpenCode if you want one agent that is not tied to one AI company. Pick Claude Code or Codex if you are happy with one vendor and want its most polished tool.
Sponsored links. We may earn a commission; it never changes the pick.
At a glance
| What OpenCode offers | What it means for you | |
|---|---|---|
| Licence | MIT, open source | Free to use, read and change |
| GitHub | anomalyco/opencode, about 230,800 stars, latest release v1.19.6 on 17 November 2026 | Very active, big community |
| Where it runs | Terminal, desktop app (macOS, Windows, Linux), mobile app, SDK | Pick your screen |
| Models | 200+ providers via Models.dev, local models, some free models | Not locked to one AI company |
| Use existing plans | Log in with ChatGPT Plus or Pro, or GitHub Copilot | No new bill if you already pay |
| Paid option | OpenCode Go $10 a month, Go Plus $40 | Open-weight models with set limits |
| Built-in agents | Build, Plan, plus General and Explore subagents | Plan first, then let it edit |
| Project rules | AGENTS.md, falls back to CLAUDE.md | Reuse rules you wrote for Claude Code |
| Windows install | Desktop app; docs say Windows package managers are not supported | Use the installer or WSL |
Money first, quickly. OpenCode is free and open source. We may earn a commission if you buy OpenCode Go or a paid model plan through our links; OpenCode itself is on this page because it is good, not because it pays. Most readers can use it without paying anyone a cent extra.
Every fact here is from OpenCode's site, its Go page, its docs on agents and rules, and its GitHub repository, all read on 4 December 2026. We did not run benchmarks, so there are no invented "solved 87% of tasks" numbers here. Where OpenCode's pages do not say something, we say that.
What OpenCode is
OpenCode is an AI coding agent. You open it in a project, describe what you want ("add a dark mode toggle", "why does this test fail"), and it reads your code, edits files and runs commands to get there. Same job as Claude Code, Codex CLI or Gemini CLI.
What makes it different is the line on its home page: "The open source coding agent for any model." It is not owned by an AI model company. It does not care whose model you use.
The numbers, from GitHub and its site:
- Licence: MIT. Free to use, read, change and ship.
- Stars: about 230,800 on
anomalyco/opencodewhen we checked via GitHub's API. - Latest release: v1.19.6, published 17 November 2026; the repo was last pushed 3 December 2026.
- Community: the site cites 1,000+ contributors and about 22 million monthly developers. That last figure is OpenCode's own claim, and we cannot check it.
Whatever the exact rank, that is a lot of people watching one tool. Our open source AI coding agents page puts it next to the others.
Where it runs and how to install it
OpenCode runs in more places than most agents:
- Terminal (TUI): the classic way.
- Desktop app: macOS, Windows and Linux.
- Mobile app: iPhone and Android.
- SDK: for your own scripts and tools.
- Web: the docs describe
opencode pair, which makes a one-time sign-in link that expires in 5 minutes.
Install options listed on the home page:
curl -fsSL https://opencode.ai/v2/install | bashnpm install -g @opencode/clibun install -g --trust @opencode/clibrew install anomalyco/tap/opencode-v2paru -S opencode-betaon Arch
The docs add standalone binaries and Docker images with versioned tags. One catch for Windows people: the docs say "Windows package managers are not supported," so use the desktop app, a binary or WSL rather than winget or Scoop.
Models: bring your own, or borrow a plan you already pay for
This is the main reason people choose OpenCode.
- 200+ providers. The site says it uses "200+ LLM providers through Models.dev, including local models." Anthropic, OpenAI, Google, open-weight models from many hosts, or something running on your own GPU.
- Free models. The home page mentions a set of free models that need no account. The Go page says free models have a daily request limit.
- Your existing subscriptions. You can "Log in with ChatGPT Plus or Pro or GitHub Copilot." If you already pay OpenAI or GitHub, OpenCode can use that plan's allowance.
- Connect from inside the app with the
/connectcommand in the terminal interface.
Bar-stool translation: if the best model changes next month, you change one setting, not your whole workflow.
OpenCode Go: the optional paid plan
OpenCode makes money through OpenCode Go, per its Go page:
- Go: $10 a month.
- Go Plus: $40 a month, "higher limits and fewer interruptions."
- Models: a curated list of open-weight models (the page listed 31 across both tiers, some limited by region or time).
- Limits: counted over five-hour, weekly and monthly windows and different per model. One example on the page: Kimi K3 at about 98 requests per 5 hours on Go and 392 on Go Plus.
- Extra usage: top up credit and keep going after you hit the limit.
- Privacy default: "By default, Go blocks paid endpoints that train on your requests." An owner or admin can change it.
- Cancel any time; the plan runs to the end of the paid period. Refunds may apply within 14 days if you used almost none of the allowance.
- The page says Go also works with other agents, including Claude Code and Codex.
Who should buy Go: people who want cheap access to strong open-weight models without managing five API keys. If you already pay for ChatGPT or Copilot, try signing in with those first.
Agents: Build, Plan and helpers
OpenCode ships with built-in agents, per its agents docs:
- Build: the default coding agent. Tools are allowed by default, but reading sensitive environment files asks for approval.
- Plan: "Explores and plans without editing normal project files." Shell commands still need permission. Use this first on anything risky.
- General (subagent): research and multi-step work, cannot launch more subagents.
- Explore (subagent): "Searches and reads code or web sources without editing files."
Subagents run in their own child sessions with fresh context, in the background, and report back to the main session.
You can write custom agents as Markdown files in .opencode/agents/ (per project) or ~/.config/opencode/agents/ (global), with options for model, permissions, steps and colour. Permission rules run in order and "The last matching rule wins."
Project rules: AGENTS.md, with a CLAUDE.md fallback
Per the rules docs, you add an AGENTS.md file to give OpenCode lasting guidance: build commands, architecture notes, code style, how to verify changes.
The nice part for switchers: in any folder without an AGENTS.md, OpenCode reads CLAUDE.md instead, and without a global AGENTS.md it reads ~/.claude/CLAUDE.md. If both exist in a folder, AGENTS.md wins. So if you are coming from Claude Code, your rules mostly come with you on day one. Set OPENCODE_DISABLE_CLAUDE_CODE_PROMPT=1 if you do not want that.
The docs overview also lists MCP servers, plugins, custom commands, themes and keybindings as ways to customise it.
What OpenCode does not tell you
Honest gaps from the pages we read:
- Privacy of your code: the home page and docs overview do not say what, if anything, OpenCode stores. When you use a model provider, that provider's terms apply to what you send. Read them for client work.
- IDE plugins: the home page does not mention VS Code or JetBrains extensions. If you live in an IDE, check before you switch.
- Benchmarks: none on the official pages, and how well it codes depends mostly on the model you pick.
OpenCode vs the big-name agents
- OpenCode vs Claude Code: Claude Code is Anthropic's own, with deep features like hooks, scheduled tasks and CI integrations, and it runs Claude models. OpenCode is free and runs nearly any model. Full breakdown in Claude Code vs OpenCode. Claude plans are here.
- OpenCode vs Cursor: Cursor is an editor first, now tied to Grok Build plans. See Cursor vs OpenCode and our note on what Cursor CLI turned into.
- OpenCode vs Codex CLI and Gemini CLI: both are free to install but tied to their company's models. Our terminal AI coding assistant page lines up seven agents side by side.
Who should use OpenCode
Pick OpenCode if:
- You want one agent that works with Claude, GPT, Gemini, open-weight and local models.
- You already pay for ChatGPT Plus or Pro, or GitHub Copilot, and want a terminal agent on top without a new bill.
- You care about open source and want to read or change the tool itself.
- You want a desktop and phone app, not just a terminal.
Skip OpenCode if:
- You only use Claude and want Anthropic's most complete tool: use Claude Code.
- You need a polished IDE plugin today.
- You want one vendor to answer for privacy and support end to end.
Our take: OpenCode is the best free starting point for an AI coding agent in December 2026 if you do not want to marry one AI company. Install it, sign in with a plan you already have or a free model, run the Plan agent on a small task, and see if you like how it thinks. It costs you ten minutes. For more coding tools, see our AI tools hub.
Questions people ask
Is OpenCode free?
The app is free and open source under the MIT licence. What can cost money is the model behind it. You can use some free models with no account, plug in your own API keys, sign in with ChatGPT Plus or Pro or GitHub Copilot, or pay for OpenCode Go at $10 a month or Go Plus at $40.
What is OpenCode AI?
OpenCode is an open source coding agent: you describe a task, it reads your code, edits files and runs commands. Its site calls it the open source coding agent for any model. It runs in the terminal, as a desktop app on macOS, Windows and Linux, on iPhone and Android, and through an SDK.
Is OpenCode better than Claude Code?
Different trade. Claude Code is Anthropic's own agent, built around Claude models, with a deep set of features like hooks, scheduled tasks and GitHub Actions. OpenCode is free, open source and runs almost any model, including Claude through providers. If you want model freedom, OpenCode. If you only use Claude, Claude Code.
Can I use my ChatGPT subscription with OpenCode?
Yes. OpenCode's home page says you can log in with ChatGPT Plus or Pro, or with GitHub Copilot, so the agent uses the plan you already pay for. Your usage then counts against that plan's limits, which are set by OpenAI or GitHub, not by OpenCode.
What is OpenCode Go?
OpenCode Go is an optional subscription with curated open-weight models: $10 a month, or $40 for Go Plus with higher limits. Limits are counted over five-hour, weekly and monthly windows and vary by model. By default Go blocks paid endpoints that train on your requests. Refunds apply within 14 days if you barely used it.
Does OpenCode read CLAUDE.md?
Yes. OpenCode's rules docs say it uses AGENTS.md for project guidance, and in any folder without an AGENTS.md it reads CLAUDE.md instead. If both exist, AGENTS.md wins. You can turn the CLAUDE.md fallback off with an environment variable, which the docs name.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- OpenCode home page, checked 4 Dec 2026
- OpenCode Go, checked 4 Dec 2026
- OpenCode docs: overview, checked 4 Dec 2026
- OpenCode docs: agents, checked 4 Dec 2026
- OpenCode docs: rules (AGENTS.md), checked 4 Dec 2026
- GitHub: anomalyco/opencode, checked 4 Dec 2026