CLI
@bossmode/cli is the terminal-native surface for BossMode. Runs on macOS, Linux, and Windows (via WSL). Spawns your existing vendor CLI (Claude, Codex, Hermes, OpenClaw) under its own OAuth — we never hold your vendor tokens.
Reach for the CLI when you want to drive BossMode from a shell, a CI runner, or a remote SSH session. Reach for MCP when an AI agent host is the caller. Reach for the REST API when you’re building your own pipeline in code.
Install
--wizard flag runs the minimal terminal onboarding: creates or connects your workspace, mints a device signing key, and starts the local daemon. Add --install-token <token> when automating from a CI seed step.
Commands
The following commands are sourced frompackages/bossmode-cli/src/cli.ts.
Core lifecycle
Workspace
Work & chat
Directives & approvals
Guardian
Provider management
Key flags
bossmode init
bossmode reset
Second device
Install the CLI on a second machine the same way. Both devices pair to the same workspace. Directives flow both ways via the cross-device sync substrate.Guardian kill switch
bossmode kill requires triple-confirm (KKK on the TUI). Pauses every agent in the family immediately. bossmode guardian restore re-enables after operator approval.
Config
~/.bossmode/config.json holds:
- Device ID and signing key
- Workspace binding
- Daemon port + log path
Environment variables
CI usage
For non-interactive contexts (CI, automation) pair via the install token path:--yes to auto-confirm.
Troubleshooting
Cannot prompt for input— you’re in a non-TTY shell. Pass--yesflags or set env vars instead.DEVICE_REVOKED— workspace admin revoked this device. Runinit --wizardagain to re-pair.daemon already running—bossmode stopthenbossmode start.