Open Source AI Coding Agent
Built-in free models, or connect to any model from any provider,
including Claude, GPT, Gemini, and more.
curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai
bun add -g opencode-ai
brew install anomalyco/tap/opencode
What is OpenCode?
OpenCode is an open source agent that helps you write code in the terminal, IDE, or desktop.
-
[*]
LSP Support Automatically loads the right LSP for LLM
-
[*]
Multi-session Launch multiple agents in parallel in the same project
-
[*]
Share Links Share any session link for reference or debugging
-
[*]
GitHub Copilot Sign in with GitHub to use your Copilot account
-
[*]
ChatGPT Plus/Pro Sign in with OpenAI to use your ChatGPT Plus or Pro account
-
[*]
Any Model Supports 75+ LLM providers via Models.dev, including local models
-
[*]
Any Editor Terminal interface, desktop app, and IDE extensions
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 Developers
Privacy-First Design
OpenCode does not store any of your code or context data, ensuring it can run in privacy-sensitive environments. Learn more about privacy.
Frequently Asked Questions
OpenCode is an open source AI coding agent that provides terminal interface, desktop app, and IDE extensions to help developers write code more efficiently.
You can install OpenCode via curl, npm, bun, or brew, then run the opencode command in your terminal to get started.
No, OpenCode has built-in free models. You can also use existing AI subscriptions like GitHub Copilot, ChatGPT Plus/Pro, etc.
No, OpenCode provides multiple ways to use it: terminal interface (TUI), desktop app (Beta), and IDE extensions for VS Code, Cursor, etc.
OpenCode is completely free and open source. You only need to pay for the AI models you use (if using paid models).
OpenCode uses a privacy-first design, not storing any of your code or context data, ensuring it can run in privacy-sensitive environments.
Yes, OpenCode is completely open source. You can view the source code and contribute on GitHub.