
Open-source, provider-agnostic AI coding agent for terminal, desktop, and IDE.
OpenCode is an open-source AI coding agent with 167k+ GitHub stars — a provider-agnostic alternative to Claude Code. Run it in the terminal, desktop app, or IDE extension as part of our Developer Tools collection, and bring your own model from 75+ providers or use included free models.
Looking for other proprietary options? Compare OpenCode with Cursor and GitHub Copilot before you choose.
AGENTS.md and opencode.json configuration| OpenCode | Claude Code | |
|---|---|---|
| License | MIT (open source) | Proprietary |
| Models | 75+ providers, bring your own keys | Anthropic Claude only |
| Interfaces | Terminal, desktop, IDE extension | Terminal, IDE |
| Privacy | Code not stored by OpenCode | Processed via Anthropic API |
| Cost | Free software + your API usage | Anthropic subscription |
Choose OpenCode if you want model flexibility, an auditable MIT codebase, and no vendor lock-in.
Choose Claude Code if you prefer a turnkey Anthropic-native agent with minimal setup.
Browse more open-source alternatives to Claude Code, or explore other Developer Tools in the directory.
| License | MIT |
| Interfaces | Terminal, desktop, IDE extension |
| Models | 75+ providers + local |
| Config | opencode.json, .opencode/, AGENTS.md |
| Install | curl, Homebrew, npm, nix, scoop |
Install via curl -fsSL https://opencode.ai/install | bash, Homebrew, or npm. Desktop builds available for macOS, Windows, and Linux.
Yes. OpenCode is MIT-licensed and free to use. You pay only for the LLM API keys or hosted models you connect — there is no OpenCode subscription.
Yes. OpenCode supports Anthropic Claude alongside GPT, Gemini, Grok, local models via Ollama, and GitHub Copilot credentials among 75+ providers.
Cursor is a proprietary AI-first IDE. OpenCode is an open-source agent that runs in your terminal, desktop, or existing editor — with any model provider, not just Cursor's bundled stack.
No. OpenCode does not store your code or context. Sessions stay local unless you opt into shareable session links on your own infrastructure.
The agent runs locally by default. Teams can self-host the optional share endpoint behind a VPN for collaborative sessions.

Zed
High-performance multiplayer code editor in Rust — GPU-accelerated, AI-native, built for speed.

Multica
Universal AI agent framework — 50+ service integrations.

Void
Open-source Cursor alternative — VS Code fork with direct LLM access and no proprietary backend.

Kilo
Open-source agentic engineering platform — 500+ models in VS Code, JetBrains, and CLI.

PearAI
Open-source AI code editor — VS Code fork with Continue-based chat and model router.