opencode
Open-source coding agent — bring your own provider.
What is opencode?
opencode is an open-source CLI coding agent. You configure it against the model provider you want, sign in once, and it stores config and data under `~/.config/opencode/`.
Vendor: opencode.ai
opencode + Watchfire
Watchfire gives each opencode session its own `OPENCODE_CONFIG_DIR` and `OPENCODE_DATA_DIR` under `~/.watchfire/opencode-home/<session>/`. Your existing auth and provider setup are linked in from `~/.config/opencode/`, so the login you already have keeps working — but per-session prompts, transcripts, and permission config stay isolated.
Install with opencode as default
Install Watchfire, then initialise a project that defaults to opencode. Make sure the agent CLI is installed and authenticated outside Watchfire first.
watchfire init --agent opencodeSee the installation guide for platform installers and Homebrew taps.
Interop notes
- Each session gets its own config and data directories
- Reuses auth and provider setup from `~/.config/opencode/`
- Watchfire writes its own per-session `AGENTS.md` and permission config
- Sign in to opencode normally before using it with Watchfire