
The open source AI coding agent
OpenCode is an open source AI coding agent that helps you write code from your terminal, IDE, or a desktop app. It automatically loads the right language servers (LSPs) for the LLM, supports running multiple agents in parallel on the same project, and lets you share a link to any session for reference or debugging. You can use models included for free or connect models from any provider — including Claude, GPT, and Gemini — plus log in with your GitHub Copilot or ChatGPT Plus/Pro accounts. It works with 75+ LLM providers through Models.dev, including local models.
Available as a terminal interface, a desktop app, and an IDE extension, so you can use the same agent in whichever environment you code in.
Automatically loads the right Language Server Protocols (LSPs) for the LLM you are using.
Start multiple agents in parallel on the same project.
Share a link to any session for reference or to debug with others.
Works with 75+ LLM providers via Models.dev (including local models), and supports logging in with GitHub Copilot or ChatGPT Plus/Pro accounts. Free models are also included.
Does not store any of your code or context data, allowing it to operate in privacy-sensitive environments.
Zen gives access to a handpicked set of AI models tested and benchmarked specifically for coding agents, for consistent performance across providers.
Install via a curl one-liner (curl -fsSL https://opencode.ai/v2/install | bash) or through npm, bun, brew, paru, or yay.
Use the free included models, log in with GitHub Copilot or ChatGPT Plus/Pro, or connect any of 75+ providers from Models.dev, including local models.
Work from the terminal interface, desktop app, or IDE extension; launch multiple parallel agents on the same project and share session links when you need review or debugging help.
OpenCode is an open source AI coding agent that helps you write code in your terminal, IDE, or desktop.
Install it with a one-line curl command (curl -fsSL https://opencode.ai/v2/install | bash) or via npm, bun, brew, paru, or yay, then run it as a terminal interface, desktop app, or IDE extension.
No. OpenCode includes free models you can use out of the box, though you can also connect any model from any provider if you want.
Yes. You can log in with GitHub to use your GitHub Copilot account, or log in with OpenAI to use your ChatGPT Plus or Pro account.
No. OpenCode is available as a terminal interface, a desktop app, and an IDE extension.
OpenCode is open source and includes free models. You can also connect your own model providers or subscriptions, and OpenCode offers Zen, a separate offering with handpicked, benchmarked models for coding agents.
OpenCode is privacy-first: it does not store any of your code or context data, so it can operate in privacy-sensitive environments.
Yes. OpenCode is open source, with over 208,000 GitHub stars, 950 contributors, and more than 13,000 commits.