Open Source Alternative to:

OpenCode is an open source AI coding agent built for developers who want full control over their tools and data. It runs in the terminal, as a desktop app (available in beta on macOS, Windows, and Linux), and as an IDE extension, so it fits into existing workflows without forcing a specific environment.
Model flexibility is a core part of the design. It connects to 75+ LLM providers through Models.dev, including local models, and supports Claude, GPT, Gemini, and others. Developers with existing GitHub Copilot or ChatGPT Plus/Pro subscriptions can log in directly and use those accounts without paying for another service.
LSP (Language Server Protocol) support is built in, meaning OpenCode automatically loads the appropriate language servers for the LLM context. This gives the agent a more accurate understanding of your codebase rather than treating it as plain text. You can also run multiple agents in parallel on the same project, which is useful when working across separate features or debugging threads simultaneously.
Session sharing lets you generate a link to any coding session. That makes it easier to hand off context to a colleague or revisit a debugging thread later.
Privacy is handled by design: OpenCode does not store your code or context data. That makes it usable in environments where sending source code to third-party servers is a concern. Tools like Cline and Continue take similar approaches to local-first AI coding, but OpenCode's combination of desktop, terminal, and IDE support in one package is relatively uncommon.
The project has over 160,000 GitHub stars, 900 contributors, and is used by roughly 7.5 million developers monthly.
Stars
Forks
Last commit
Stars
Forks
Last commit
Stars
Forks
Last commit
Stars
Forks
Last commit
Repository age
License
Auto-fetched .
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with
Stars
Forks
Last commit
Compare with