OpenCode
VerifiedMulti-provider CLI with build/plan agent modes and 75+ LLM support
Released
2025-04
Country
United States
API
Available
Self-Host
Yes
GitHub Stars
176,000
Funding
Series B
Last Reviewed
2026-06
About OpenCode
Our Verdict
The most provider-flexible coding agent in the ecosystem — 75+ LLMs, MIT-licensed, and available as CLI, desktop, and IDE extension. The build/plan agent architecture is a thoughtful design that lets developers control access levels per task. If you want maximum model choice, local model support, and a growing open-source community, OpenCode is the best pick.
Features
Detailed Ratings
Pros & Cons
Pros
- Unmatched provider flexibility — 75+ LLMs including local and regional models
- Build/plan agent modes let you control access level per task — safe exploration or hands-off implementation
- Open-source MIT license — no vendor lock-in, fully auditable
- Runs everywhere: CLI, desktop, and IDE via Agent Client Protocol
- 176K+ stars and massive contributor base — one of the fastest-growing dev tools
Cons
- Managing accounts and API keys across 75+ providers can be complex
- Rapid growth means documentation and stability can lag behind features
- Younger project than Claude Code or Copilot — patterns and best practices still evolving
Use Cases
Who Is It For?
Developers who want maximum model flexibility across 75+ providers with build/plan agent modes and a choice of CLI, desktop, or IDE
Pricing Plans
Open Source
- Full CLI, desktop, and IDE extension
- 75+ LLM providers supported
- Build and plan agent modes
- MIT license
LLM API Costs
- Pay your chosen LLM provider (75+ supported)
- Free models available via Models.dev
- Local models via Ollama are free
Frequently Asked Questions
Is OpenCode really free?
Yes — OpenCode is MIT-licensed and fully free. You pay only for the LLM API keys you bring, and you can choose from 75+ providers including free or local models to minimize cost.
What are build and plan modes?
Build mode gives the agent full filesystem and terminal access to implement changes autonomously. Plan mode operates read-only — the agent can explore, analyze, and reason about your codebase but cannot modify anything. This makes plan mode safe for exploration and build mode for execution.
How is OpenCode different from Claude Code?
OpenCode is model-agnostic with 75+ provider support and offers both CLI and desktop interfaces. Claude Code is Anthropic-first with a 1M-token context window. OpenCode's strength is provider flexibility and the build/plan agent architecture; Claude Code's strength is frontier Claude model access and deep codebase context.
What is the Agent Client Protocol?
ACP is an open protocol that lets OpenCode integrate into IDEs as an agent. Currently it powers the Zed integration, and other IDEs can adopt it. It is conceptually similar to MCP but for agent-to-IDE communication rather than agent-to-tool.
Related Agents
Goose
Coding Agents
Block's MCP-native coding agent with extensible plugin architecture
Aider
Coding Agents
Open-source terminal pair-programming agent with git-native workflow
OpenAI Codex CLI
Coding Agents
OpenAI's open-source terminal coding agent
Gemini CLI
Coding Agents
Google's open-source terminal agent with ReAct reasoning and Google Cloud integration
Top Alternatives
Compare with these similar tools