OpenCode is the leading open-source terminal coding agent with over 161,000 GitHub stars. Its defining feature is provider freedom — it supports 75+ model providers including Anthropic, OpenAI, Gemini, DeepSeek, Groq, and local models via Ollama. The dual-agent system separates planning (read-only analysis) from building (full tool access), and LSP integration brings IDE-level intelligence to the terminal. For developers who value open-source flexibility and provider independence, OpenCode is a compelling alternative to proprietary tools.
Key Features
75+ provider support — never locked into a single model vendor
Dual-agent architecture: Plan agent (read-only) + Build agent (full access)
LSP integration for go-to-definition, diagnostics, and type-aware context
Client/server architecture with session persistence across terminals
Desktop app for macOS, Windows, and Linux (Tauri-based)
Usage Guide
Setting Up OpenCode
- 1Install: `npm install -g @opencode-ai/cli` or download the desktop app.
- 2Configure your preferred providers: `opencode config set provider anthropic`.
- 3Set API keys for each provider you want to use.
- 4Run `opencode` in any project directory to start a session.
- 5Use `@filename` to reference specific files and ask for targeted edits.
