AI agents / Coding agents

OpenCode
by Anomaly
Open-source AI coding agent for the terminal, desktop and web.
Short answer: OpenCode is a free, open-source (MIT) coding agent you can use in a desktop app, the terminal or on your phone. It comes with free models and needs no account to start. For stronger models you bring your own provider (200+ supported, including local models), log in with ChatGPT Plus/Pro or GitHub Copilot, or pay for OpenCode Go from $10 a month. Pick it if you want one agent that works with any model; pick Claude Code if you just want the best results with the least setup.
Updated 2026-11-27. Facts checked on official sites.
Open sourceFree optionCoding agents
- Open source (MIT)
- 200+ model providers through Models.dev, including local models
- Sign in with a ChatGPT Plus/Pro or GitHub Copilot plan
- Optional low-cost Go model plans
- You manage provider setup
- Model quality varies by provider
- Go plans include Claude Haiku but not Sonnet or Opus (those are pay-as-you-go)
| Best for | Developers who want an open, provider-agnostic Claude Code alternative |
|---|---|
| Not for | Users wanting a single vendor-managed service |
| Pricing | Free and open source (MIT); optional pay-as-you-go Console credits; Go $10/mo, Go Plus $40/mo, Go Teams $20/member/mo |
| Open source | Yes (MIT) |
| Category | Coding agents |
| Verified | 2026-11-10 |
What OpenCode is used for
- Code with an AI agent in the desktop app (macOS, Windows and Linux, with sessions, tabs, diffs and a built-in browser), in the terminal, or from the mobile app.
- Drive OpenCode from your own scripts, CI jobs and tools with the SDK.
- Switch between the built-in Build agent (the default coding agent) and Plan, which explores and plans without editing normal project files; shell commands stay permission-controlled.
- Run multiple agents in parallel on the same project.
- Extend it with MCP servers, plugins, custom agents, skills (SKILL.md files) and custom commands, and choose which actions need your approval.
- Run /undo to roll back recent changes to your files and conversation.
OpenCode pricing and key facts
- Made by Anomaly (github.com/anomalyco/opencode), open source under the MIT license.
- Comes with a set of free models you can use with no account.
- Connects to 200+ LLM providers through Models.dev, including local models such as Ollama, LM Studio and vLLM.
- You can log in with a ChatGPT Plus or Pro plan or with GitHub Copilot instead of using API keys.
- OpenCode Go (optional): Go $10/month, Go Plus $40/month (higher limits), Go Teams $20 per member per month with a 2-member minimum ($40/month). Go and Go Plus cover the member who subscribes.
- Go limits: the 5-hour limit is 20% of your monthly allowance and the weekly limit is 50%, resetting Monday at 00:00 UTC. Go's curated list includes open models (such as GLM, Kimi, Qwen, MiniMax and DeepSeek) plus GPT 6 Luna, Grok 4.7, Gemini 4 Argon and Claude Haiku 5.5.
- Console has no seat fees: you pay for usage from prepaid credits, with a processing fee of 4.6% + $0.31 per purchase (a $50 purchase costs $52.61).
From the official site, checked 2026-11-27: opencode.ai, opencode.ai/docs/agents, opencode.ai/docs/providers, opencode.ai/docs/console/go, opencode.ai/docs/console/billing, github.com/anomalyco/opencode.
OpenCode FAQ
Is OpenCode free?
Yes. OpenCode is free and open source (MIT) and comes with free models you can use without an account. For other models you pay your own provider, use a ChatGPT or Copilot plan, buy Console credits or subscribe to Go.
How much is OpenCode Go?
Go is $10/month, Go Plus $40/month and Go Teams $20 per member per month (2-member minimum). The 5-hour limit is 20% of your monthly allowance and the weekly limit is 50%.
Can I use my ChatGPT or GitHub Copilot subscription with OpenCode?
Yes. OpenCode supports logging in with a ChatGPT Plus or Pro plan, or with GitHub Copilot.
Does OpenCode work with local models?
Yes. It supports local models, including Ollama, LM Studio and vLLM.
What is the difference between the Plan and Build agents?
Build is the default coding agent. Plan explores and plans without editing normal project files, and its shell commands remain permission-controlled.
How do I install OpenCode?
Run curl -fsSL https://opencode.ai/v2/install | bash, or npm install -g @opencode/cli. Bun and Homebrew installs are also listed, and the desktop app has downloads for macOS, Windows and Linux.
Who should pick OpenCode
- Good fit: developers who want to switch between models or providers, use local models, or reuse a ChatGPT or GitHub Copilot plan they already pay for.
- Good fit: people who want to try a coding agent for free: the free models work without an account.
- Good fit: teams that want an open-source agent they can script from CI with the SDK.
- Look elsewhere if: you want one vendor to handle models and billing for you (Claude Code or GitHub Copilot), or you only work inside VS Code (Cline).
OpenCode vs Claude Code vs Cline vs Aider
| Agent | Open source | What it costs | Where it runs |
|---|---|---|---|
| OpenCode | Yes (MIT) | Free, with free models; your own provider, or Go from $10/mo | Desktop app, terminal, mobile, SDK |
| Claude Code | No | Included in Claude Pro ($17/mo billed annually, $20 monthly) and higher plans | Terminal, IDEs, Claude desktop app |
| Cline | Yes | Free for individuals; pay for model use with your own keys or Cline credits | VS Code and other editors |
| Aider | Yes (Apache-2.0) | Free; you pay your model provider | Terminal |
| GitHub Copilot | No | Free plan; Pro $10/mo | Editors, terminal (Copilot CLI), GitHub |
Prices from each official site, checked 2026-11-27. Open-source agents still cost whatever your model provider charges.
Best AI coding agents compared · Best coding agent for the terminal · Claude Code vs Aider · All AI agents
Sources checked 2026-11-27: opencode.ai, opencode.ai/docs/console/go, claude.com/pricing, github.com/features/copilot/plans, cline.bot/pricing, github.com/Aider-AI/aider.
Alternatives
Open-source platform for autonomous coding agents (GUI, CLI, SDK, cloud).
+ Open source (MIT)
− Self-hosting takes setup
Open sourceFree optionCoding agents
Open-source, extensible local agent originally from Block, now under the Linux Foundation.
+ Open source (Apache-2.0)
− You bring models and keys
Open sourceFree optionCoding agents
Mistral's open-source command-line coding agent.
+ Open source (Apache-2.0)
− Centered on Mistral models
Open sourceFree optionCoding agents
Open-source terminal coding agent tuned for Qwen models.
+ Open source (Apache-2.0)
− Model weights have separate licenses
Open sourceFree optionCoding agents
Related task guides
Sources
- https://opencode.ai/
- https://opencode.ai/docs
- https://opencode.ai/docs/providers
- https://opencode.ai/docs/console/go/
- https://opencode.ai/docs/console/billing
- https://github.com/anomalyco/opencode
Logo used to identify the product; trademarks belong to their owners. Pricing changes often, so confirm on the official site.