OpenCode
The open source AI coding agent·opencode.ai
OpenCode is an open source AI coding agent that helps developers write code from the terminal, an IDE extension, or a desktop app. It supports connecting to any of 75+ LLM providers via Models.dev, including Claude, GPT, Gemini, GitHub Copilot, and ChatGPT Plus/Pro accounts, and includes features like automatic LSP loading, multi-session parallel agents, and shareable session links. OpenCode Zen is a separate curated, benchmarked set of AI models optimized for coding agents, usable with OpenCode or any other agent.
What it's for
Features 14
- Auto-top-up balance (Zen)
- Automatic LSP loading matched to the LLM in use
- Available as a terminal interface, desktop app, and IDE extension
- Configurable monthly spend limits (Zen)
- Curated, benchmarked model set (OpenCode Zen) tuned for coding agents
- Desktop app tabs feature
- Does not store user code or context data
- Log in with GitHub to use a Copilot account
- Log in with OpenAI to use a ChatGPT Plus/Pro account
- Multi-session: run multiple agents in parallel on the same project
- Multiple install methods: curl script, npm, bun, brew, pacman/paru, choco, scoop, mise, Docker
- Shareable session links for reference or debugging
- Support for 75+ LLM providers via Models.dev, including local models
- Transparent pay-per-request pricing with zero markups (Zen)
Pricing
OpenCode (the core coding agent) is free and open source. OpenCode Zen is a separately priced, optional pay-per-request model service: add a $20 balance (+$1.23 card processing fee) to start, with auto-top-up of $20 when the balance reaches $5, and configurable spend limits.
This is an optional paid model marketplace (Zen); OpenCode itself is free and open source to download and use.
Set monthly spend limits; cancel any time