发布时间
2025-04
国家/地区
United States
API
可用
自托管
是
GitHub Stars
176,000
融资
Series B
最近审查
2026-06
关于 OpenCode
编辑总评
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.
功能特性
详细评分
优缺点
优点
- 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
缺点
- 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
应用场景
适合谁使用?
Developers who want maximum model flexibility across 75+ providers with build/plan agent modes and a choice of CLI, desktop, or IDE
定价方案
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
常见问题
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.
相关智能体
热门替代方案
与这些相似工具进行比较