Skip to main content

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

The --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 from packages/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
Never commit this file to git.

Environment variables

CI usage

For non-interactive contexts (CI, automation) pair via the install token path:
All commands that would normally prompt accept --yes to auto-confirm.

Troubleshooting

  • Cannot prompt for input — you’re in a non-TTY shell. Pass --yes flags or set env vars instead.
  • DEVICE_REVOKED — workspace admin revoked this device. Run init --wizard again to re-pair.
  • daemon already runningbossmode stop then bossmode start.