O
OpenCode
Free code
Open-source AI coding agent for the terminal. Works with Claude, GPT, Gemini, or local models. 100K+ GitHub stars.
coding assistantopen sourceterminalmulti-providerLSP
Visit Website
Overview
OpenCode is a powerful open-source AI coding agent built for the terminal. It’s provider-agnostic, meaning you can use Claude, GPT, Gemini, or even local models without being locked into any single vendor.
Key Features
- 100% Open Source: MIT licensed, full transparency
- Provider Agnostic: Works with Claude, OpenAI, Google, or local models
- Built-in LSP Support: Automatically loads the right Language Server Protocol for your project
- Multi-Session: Run multiple agents in parallel on the same project
- Share Links: Share links to any session for reference or debugging
- GitHub Copilot Integration: Log in with GitHub to use your Copilot account
- ChatGPT Plus/Pro: Log in with OpenAI to use your ChatGPT subscription
- 75+ LLM Providers: Access through Models.dev, including local models
- Desktop App: Available on macOS, Windows, and Linux
Why OpenCode?
No Vendor Lock-In: Unlike Claude Code or GitHub Copilot, OpenCode doesn’t tie you to a single provider. Switch models freely as new ones release or pricing changes.
Privacy First: OpenCode does not store your code or context data. Perfect for privacy-sensitive environments.
Community Driven: 100,000+ GitHub stars, 700+ contributors, 9,000+ commits, and 2.5M+ monthly users.
Installation
curl -fsSL https://opencode.ai/install | bash
Also available via npm, bun, brew, and paru.
Perfect For
- Developers wanting control over their AI tools
- Teams with data residency requirements
- Anyone wanting to avoid vendor lock-in
- Privacy-conscious organizations
- Open-source enthusiasts