An open source agent for your terminal, IDE or desktop.
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.
Free models included
Use OpenCode with free models, no account needed, or bring your own provider.
Any editor
Available as a terminal interface, desktop app and IDE extension.
Models tested for coding agents.
Zen is a handpicked set of AI models that OpenCode has tested and benchmarked specifically for coding agents, so you don't have to worry about inconsistent quality across providers.
Learn about Zen →Questions
What is OpenCode?
An open source agent that helps you write and run code with any AI model. It's available as a terminal interface, desktop app or IDE extension.
Do I need extra AI subscriptions?
Not necessarily. OpenCode comes with a set of free models you can use without an account, and works with all the popular providers, including local models.
Can I use my existing AI subscriptions?
Yes: Claude Pro/Max, ChatGPT Plus/Pro or GitHub Copilot.
Can I only use it in the terminal?
No. OpenCode is also an app for your desktop and the web.
How much does it cost?
OpenCode is free to use and comes with free models. Other providers may cost extra.
What about data and privacy?
Your data is only stored when you use the free models or create sharable links.
Is it open source?
Yes, fully: the source is on GitHub under the MIT License.
One line, then ask it anything.
curl -fsSL https://opencode.ai/v2/install | bash Also on npm, bun, brew, paru and yay.