OpenCode OpenCode

The open source AI coding agent

Free models included or connect any model from any provider, including Claude, GPT, Gemini and more.

What is OpenCode?

OpenCode is an open source agent that helps you write code in your terminal, IDE, or desktop.

With over 160,000 GitHub stars, 900 contributors, and over 13,000 commits, OpenCode is used and trusted by over 7.5M developers every month.

  • [+]LSP enabled Automatically loads the right LSPs for the LLM
  • [+]Multi-session Start multiple agents in parallel on the same project
  • [+]Share links Share a link to any session for reference or to debug
  • [+]GitHub Copilot Log in with GitHub to use your Copilot account
  • [+]ChatGPT Plus/Pro Log in with OpenAI to use your ChatGPT Plus or Pro account
  • [+]Any model 75+ LLM providers through Models.dev, including local models
  • [+]Any editor Available as a terminal interface, desktop app, and IDE extension
Read docs

The open source AI coding agent

[+]

With over 160,000 GitHub stars, 900 contributors, and over 13,000 commits, OpenCode is used and trusted by over 7.5M developers every month.

160K
GitHub Stars
900
Contributors
7.5M
Monthly Devs

Built for privacy first

[+] OpenCode does not store any of your code or context data, so that it can operate in privacy sensitive environments. Learn more about privacy.

Access reliable optimized models for coding agents

Zen gives you access to a handpicked set of AI models that OpenCode has tested and benchmarked specifically for coding agents. No need to worry about inconsistent performance and quality across providers, use validated models that work.

@ A + G V K Z
Learn about Zen

FAQ

  • OpenCode is an open source AI coding agent that lives in your terminal, IDE, or desktop. It helps you write, debug, and understand code using any LLM provider.
  • Install OpenCode with a single command, configure your preferred model provider, and start coding. OpenCode works in your terminal, as a desktop app, or through IDE extensions.
  • No. OpenCode includes free models out of the box. You can also connect your own API keys from any of 75+ supported providers, or use existing subscriptions like GitHub Copilot or ChatGPT Plus/Pro.
  • Yes. You can use your GitHub Copilot subscription or ChatGPT Plus/Pro account directly with OpenCode. Just log in with your existing credentials.
  • No. OpenCode is available as a terminal interface, a desktop application (currently in beta for macOS, Windows, and Linux), and as IDE extensions for VS Code, Cursor, Zed, Windsurf, and VSCodium.
  • OpenCode itself is free and open source. You can use free included models, bring your own API keys, subscribe to Go ($10/month) for open-source models, or use Zen ($20 pay-as-you-go) for curated premium models.
  • OpenCode does not store any of your code or context data. It operates locally and communicates directly with your chosen LLM provider. Enterprise customers get additional guarantees including SSO and internal AI gateway support.
  • Yes. OpenCode is fully open source with over 160,000 GitHub stars and 900 contributors. You can view, fork, and contribute to the code on GitHub.

Be the first to know when we release new products

Join the waitlist for early access.