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/`.
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.
- 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
Setup
Install Watchfire and initialise a project that defaults to opencode. Make sure the agent CLI itself is installed and signed in first.
watchfire init --agent opencodeGet started with Watchfire
Install in seconds. Define tasks. Let agents ship code for you.
Download for macOSAvailable for macOS, Linux, and Windows
# Install via Homebrew (macOS)brew tap watchfire-io/tapbrew install --cask watchfire-io/tap/watchfire# Set up your project and gowatchfire initwatchfire task add "Build the login page"watchfire start --allIncludes GUI, CLI, and daemon. Also available via Homebrew.