Open source AI coding agent for terminal, desktop, and IDE
Free
Use your own API keys
$20
Pre-paid balance for optimized models
$20
Use existing Claude subscription
$20
Use existing ChatGPT subscription
No reviews yet. Be the first to review OpenCode!
Write a ReviewOpenCode is an open source AI coding agent that helps you write code through your terminal, desktop app, or IDE. It supports multiple LLM providers including Claude, ChatGPT, Google, and local models. With 60,000+ GitHub stars and 650,000+ monthly developers, it is one of the most popular open source coding assistants.
Yes, OpenCode is completely free and open source. You can use it with your own API keys from any provider (Claude, OpenAI, etc.) at no additional cost. Alternatively, OpenCode Zen offers pay-as-you-go access to optimized models starting at 20 dollars pre-paid balance with zero markup on requests.
Both are terminal-based AI coding assistants. Claude Code is Anthropics official CLI requiring a Claude subscription (20 dollars per month Pro). OpenCode is open source and provider-agnostic - it works with Claude, ChatGPT, or any LLM. OpenCode offers more flexibility but requires configuration, while Claude Code is more plug-and-play for Claude users.
OpenCode supports virtually any LLM provider: Anthropic Claude (including Pro/Max subscriptions), OpenAI ChatGPT (Plus/Pro), Google models, and 75+ providers through Models.dev. You can also run local models. OpenCode Zen offers curated models benchmarked specifically for coding tasks.
OpenCode includes five specialized agents: Build agent (full development with all tools), Plan agent (analysis without changes), Review agent (code review with read-only access), Debug agent (investigation focused), and Docs agent (documentation with file operations). You can switch between agents based on your task.
Yes, OpenCode has IDE extensions for VS Code and popular forks like Cursor, Windsurf, and VSCodium. You can also use the terminal interface within any IDEs integrated terminal, or the standalone desktop app available for macOS, Windows, and Linux.
OpenCode is designed for privacy-sensitive environments. It does not store any of your code or context data. When using OpenCode Zen, there is zero data retention for model training (with limited exceptions). Your code stays between you and your chosen LLM provider.