OpenCode is an open-source AI coding agent that runs in your terminal. It connects to any AI model provider and helps you write, review, and refactor code directly in your development environment.
Install OpenCode using any of the methods above, then run opencode in your terminal. You can start a conversation with the AI agent, ask it to write code, review diffs, run tests, and more.
No. OpenCode includes free models out of the box. You can optionally connect your own API keys for Claude, GPT, Gemini, and other providers if you prefer.
No. OpenCode is available as a terminal CLI, a desktop application (beta), and as extensions for VS Code, Cursor, Zed, Windsurf, and VSCodium. You can also integrate it with GitHub and GitLab.
OpenCode is free and open source. The core terminal experience and free models are available at no cost. OpenCode Go is an optional paid plan that provides additional features and higher usage limits.
OpenCode does not store your code or conversations on our servers. All data processing happens through the AI provider you choose. You can run OpenCode with local models for complete privacy.
Yes. OpenCode is fully open source and available on GitHub. You can inspect the code, contribute, and build on top of it.