crewboss v0.2.0

Documentation

Everything from initial setup and model tier routing to live agent communication, MCP, routines, local SQLite storage, mods, HTTP API, and plugins.

12 sections Node.js 22.13+
Getting started

Quick start npx crewboss init

Full guide & reference →

Install requirements, initialize a workspace in one command, dry-run your first agent, and understand every file crewboss writes.

npx crewboss init [--dir DIR] [--force] [--json]
quick-start.sh
bash
npx crewboss init
npx crewboss agent dev "Add a test for the login flow" --dry-run
npx crewboss agent dev "Add a test for the login flow"
npx crewboss events
Model routing

Agents & model selection crewboss agent

Full guide & reference →

Launch personas across Claude Code, Codex, opencode, and agy with cheapest-first tier walking, quota skipping, paid protection, and startup failover.

crewboss agent <persona> "<task>" [--size small|medium|large] [--mode read|write] [--model tool:model[@effort]] [--dir DIR] [--allow-paid] [--dry-run] [--attachment FILE] [--notify SESSION]
agents.sh
bash
crewboss agent dev "Add pagination to /orders" --dry-run
crewboss agent reviewer "Audit auth middleware" --size small
crewboss agent dev "Fix flaky test" --model claude:sonnet --allow-paid
Live events & presence

Talking to your agents notify · events · say

Full guide & reference →

Exchange live questions, blockers, and answers with running agents across every CLI runner, plus main-session presence hooks.

crewboss events [--follow] [--since ID] [--run ID] [--all] [--limit N] [--json] | crewboss say <run id> "<message>"
communication.sh
bash
# Inside a running agent
crewboss notify --kind question "Cursor or offset pagination?"
crewboss inbox

# From your terminal
crewboss events --follow
crewboss say 3 "Cursor-based, keep page numbers for mobile"
Model Context Protocol

MCP clients crewboss mcp

Full guide & reference →

Serve crewboss over stdio JSON-RPC so Claude Code, Cursor, or Codex can start detached agents, follow events, reply, and manage tasks and memory.

claude mcp add crewboss -- crewboss --config /path/crewboss.json mcp
mcp-servers.json
json
{
  "mcpServers": {
    "crewboss": {
      "command": "crewboss",
      "args": ["--config", "/path/crewboss.json", "mcp"]
    }
  }
}
Scheduled automation

Routines crewboss routines

Full guide & reference →

Schedule recurring audits with collectors, turn high and medium findings into deduplicated tasks, and publish one report per run on systemd or launchd.

crewboss routines list | run <name> [--dry-run] | install | uninstall
routines.sh
bash
crewboss routines list
crewboss routines run deps-audit --dry-run
crewboss routines run deps-audit
crewboss routines install
Built-in tracker

Tasks crewboss task

Full guide & reference →

Manage tasks in the local SQLite store or through a custom tracker plugin, complete with priorities, assignees, due dates, comments, and JSON output.

crewboss task list|show|add|update|done|comment [options] [--json]
tasks.sh
bash
crewboss task list --status open --json
crewboss task add api "Add login tests" --priority high --due 2026-12-05
crewboss task update 1 --status in_progress
crewboss task done 1
Persistent context

Memory crewboss memory

Full guide & reference →

Store short scoped notes that crewboss automatically injects into agent and routine prompts, searchable with SQLite FTS5.

crewboss memory add|list|search|rm [--scope S] [--limit N] [--json]
memory.sh
bash
crewboss memory add "Integration tests need the VPN" --scope persona:dev
crewboss memory list --scope global
crewboss memory search "vpn"
crewboss memory rm 4
Extensions & offices

Mods crewboss mod

Full guide & reference →

Discover, review, pin, and update Git-backed bundles of personas, scheduled routines, and static office UIs.

crewboss mod search|add|list|update|remove|install [args]
mods.sh
bash
crewboss mod search office
crewboss mod add github:PabloTheBlink/crewboss-office-3d
crewboss mod list
crewboss mod update office-3d
crewboss mod install
HTTP server

API & offices crewboss serve

Full guide & reference →

Serve a token-protected JSON API under /api alongside any static office UI folder or installed UI mod.

crewboss serve [--port 4317] [--host 127.0.0.1] [--public-url URL] [--ui DIR]
serve.sh
bash
crewboss serve --port 4317
CREWBOSS_TOKEN=secret crewboss serve --host 0.0.0.0 --public-url http://192.168.1.10:4317
curl -H "Authorization: Bearer $CREWBOSS_TOKEN" http://127.0.0.1:4317/api/status
crewboss.json

Configuration reference crewboss.json

Full guide & reference →

All top-level workspace settings and per-routine keys accepted in crewboss.json (strict JSON, no comments).

crewboss --config PATH | $CREWBOSS_CONFIG | ./crewboss.json
crewboss.json
json
{
  "root": ".",
  "personas_dir": "agents",
  "logs_dir": "logs/crewboss",
  "memory_max_bytes": 8192,
  "tracker": {"type": "local"},
  "quota": {"command": ["tools/check_quota.sh"]},
  "ui": "mod:office-3d",
  "tiers": {
    "small": [{"tool": "claude", "model": "haiku"}],
    "medium": [{"tool": "claude", "model": "sonnet"}],
    "large": [{"tool": "claude", "model": "opus", "paid": true}]
  }
}
JSON stdin/stdout

Plugins tracker & quota

Full guide & reference →

Connect any external task manager (Jira, Linear, Tack, custom) or quota checker using a plain executable speaking JSON over stdin and stdout.

stdin: {"op": "...", "options": {...}, "args": {...}} → stdout: {"result": ...} | {"error": "..."}
check_quota.sh
bash
#!/usr/bin/env bash
# Read {"candidate": {"tool", "model", ...}} from stdin
# Return {"skip": null} to allow or {"skip": "reason"} to skip
echo '{"skip": null}'
Diagnostics & files

Troubleshooting exit codes & paths

Full guide & reference →

Common fixes for PATH issues, API tokens, schema versions, exit codes, and workspace file locations.

Exit codes: 0 success · 1 runtime error · 2 wrong usage or unsupported tracker op
diagnostics.sh
bash
node --version
crewboss --help
crewboss routines install
npm install -g crewboss@latest