Intro
OpenCode is an open source AI coding agent. It’s available as a terminal-based interface, desktop app, or web app.
CLI
curl -fsSL https://opencode.ai/v2/install | bashbrew install anomalyco/tap/opencode-v2npm install -g @opencode/clibun install -g --trust @opencode/clipnpm add -g --allow-build=@opencode/cli @opencode/cliyarn global add @opencode/cliparu -S opencode-betaThe npm package uses a trusted postinstall script to select the native opencode binary for your platform. The Bun and pnpm
commands above explicitly allow that script to run.
Windows package managers are not supported.
Download a standalone CLI binary for your platform.
- macOS: Apple silicon · Intel · Intel (baseline)
- Windows: ARM64 · x64 · x64 (baseline)
- Linux (glibc): ARM64 · x64 · x64 (baseline)
- Linux (musl): ARM64 · x64 · x64 (baseline)
Desktop
Download the latest OpenCode Desktop build for your platform.
- macOS: Apple silicon · Intel
- Windows: x64 · ARM64
- Linux (.deb): x64 · ARM64
- Linux (.rpm): x64 · ARM64
- Linux (AppImage): x64 · ARM64
Web
Access the OpenCode web interface with the opencode pair command.
$ opencode pair
URLs http://127.0.0.1:49374
Username opencode
Password ********
Docker
Docker images use versioned tags, for example ghcr.io/anomalyco/opencode:2.0.0.
Connect
OpenCode has built in support for many LLM providers - you can connect to them
directly in the TUI with /connect.
See Providers to configure custom providers.
If you’d like easy access to all the best coding models you can try out OpenCode Console.
You can also try OpenCode Go a $10/month subscription plan that grants you access to the best open source models.
Customize
Make OpenCode your own by editing the OpenCode config, loading plugins, connecting MCP servers, or creating commands. For terminal interface themes and keybindings, see CLI settings.