OpenCode
Model-agnostic open-source coding agent. An open-source coding agent for the terminal, IDE or desktop. It connects to 75+ model providers, including local models.
✓ Last verified October 15, 2026 from official sourcesFree and open source. You pay only for the models you connect.
Developers who want a model-agnostic terminal agent.
Runs locally. Code goes to the provider you choose. Skill level: Intermediate.
What it's great at
- Switching between many providers
- Using existing subscriptions
What it can do
- Use any model from any provider through Models.dev
- Includes some free models
- Several labs (xAI, Zhipu) let you use their subscriptions inside it
Example tasks to try
- "Explain this codebase, then fix the failing test."
Start in 5 minutes
- Download it from opencode.ai
- Connect a provider or pick a free model
- Start with a read-only question about your code
Go to OpenCode (open source)'s official page →
Watch out for
Check each provider's terms before using a subscription inside it.
Compare it
- Local vs cloud coding agents: Aider, Cline, OpenCode vs Claude Code, Codex, GitHub Copilot
- Open and low-cost coding agents: Mistral Vibe vs Qwen Code vs Kimi Code vs GLM Coding Plan vs DeepSeek vs Kilo Code
- Pick an agent for coding
Similar agents
Claude, Claude Code & Claude Agent SDK
A strong all-round choice for coding and for building your own agents.
ChatGPT agent, Codex & Agents SDK
The easiest on-ramp if you already pay for ChatGPT.
Gemini, Jules & Gemini Enterprise
Best if you work in Google Workspace or GitHub.
Grok & Grok Bot
Always-on agent teammates with their own cloud computer.
Official sources
Prices change often. Confirm on the vendor's page before you buy. We're independent, and no vendor pays for placement.