OpenCode
An open-source terminal coding agent supporting multiple model providers, with desktop and IDE extensions.
AnomalyDesktop · CLI · IDE
Setup & Installation
Install
Download the OpenCode 2 Windows x64 / ARM64 CLI binary from the guide, extract it, and add it to PATH. V2 does not support Windows package managers. For WSL, use the Linux instructions.
Launch
Authentication
After launching, enter /connect in the terminal UI, select your provider, and paste your API key.
Config Path(Optional)
%USERPROFILE%\.config\opencode\opencode.jsonInstall
zsh
Note: Installs OpenCode 2. V1 and V2 share the opencode command; existing users should read the migration guide first.
Launch
Authentication
After launching, enter /connect in the terminal UI, select your provider, and paste your API key.
Config Path(Optional)
~/.config/opencode/opencode.jsonInstall
bash
Note: Installs OpenCode 2. V1 and V2 share the opencode command; existing users should read the migration guide first.
Launch
Authentication
After launching, enter /connect in the terminal UI, select your provider, and paste your API key.
Config Path(Optional)
~/.config/opencode/opencode.json