New Desktop v1.18.31 for Windows, macOS, and Linux. Download now →
The open source AI coding agent
Free models included or connect any model from any provider, including Claude, GPT, Gemini and more.
choco install opencode
What is OpenCode?
OpenCode is an open source agent that helps you write code in your terminal, IDE, or desktop.
- LSP enabled Automatically loads the right language servers 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
The open source AI coding agent
With over 195,000 GitHub stars, 950 contributors, and over 13,000 commits, OpenCode is used and trusted by over 16M developers every month.
Built for privacy first
OpenCode does not store any of your code or context data, so that it can operate in privacy sensitive environments. The FAQ adds the exception: data is stored when you use the included free models or create a shareable link. Learn more about privacy →
FAQ
An open source agent that helps you write and run code with any AI model. Terminal, desktop, or IDE extension.
Install from the download page, run opencode in a project, then /init. Connect a provider, attach files with @, and use Plan/Build.
Not necessarily. Free models work without an account. You can also connect OpenAI, Anthropic, xAI, local models, or Zen.
Yes. The official FAQ names Claude Pro/Max, ChatGPT Plus/Pro, and GitHub Copilot.
No. Desktop covers macOS, Windows, and Linux, plus an IDE extension.
The agent is free and ships free models. A connected provider can add that provider's charges.
Code and context are not stored by default. Data is stored for included free models or a shareable link. Local sessions live on disk.
Yes. Public source under the MIT License.
Access reliable optimized models for coding agents
Connect a tested set of models for coding agents. Use the included free models, your own keys, Copilot, ChatGPT, or a local runtime without locking the agent to one vendor.
Learn about models →