opencode. Open Settings → CLI configuration → OpenCode CLI to detect the version, install, and configure credentials.
How to connect
- Use local config: read
~/.config/opencode/opencode.json(.jsoncis also supported).$OPENCODE_CONFIGwins - Add provider: name, base URL, API key, model list
- You can override the
opencodeexecutable path - You can move this engine to Disabled so it no longer appears in the input
- If it is not installed, click Install on that page, or install with the terminal commands below
opencode.json. Login and sessions still follow OpenCode’s own config.
Config stays on this computer. The app does not upload keys to a CC GUI server.
Add a provider
Click Add and fill in:- Name, base URL, API key
- Model list (comma-separated; leave empty for no limit)
- Optional: notes
Install
npm install -g opencode-ai. The app does not uninstall OpenCode, so you do not delete login and session data by accident.
Docs: https://opencode.ai/docs/
Capability differences
Compared with Claude Code:- No plan mode
- Does not use desktop MCP
- Supports session continue and image input
- Stop ends the
opencodechild process - History is isolated per runtime