crewboss serve [--port 4317] [--host 127.0.0.1] [--public-url URL] [--ui DIR]
| Endpoint | Params / Body | Description |
|---|---|---|
| GET /api/statusGET | {tracker, routines, fullTextSearch} default: — |
Workspace capabilities and tracker status. |
| GET|POST /api/taskstasks | project?, status?, assignee? | {project, title, ...} default: open tasks |
List, create, PATCH /api/tasks/:id, and POST /api/tasks/:id/comments. |
| GET|POST /api/routinesroutines | POST /api/routines/:name/run default: 202 / 409 |
List routines with next_run or trigger a background run (409 if locked). |
| GET /api/runs & /:idruns | kind?, name?, limit? (max 500) default: limit 50 |
Run list and full detail (prompt, answer, log_tail, events) plus POST /:id/messages. |
| GET /api/events & /presencelive | since?, run?, direction?, limit? default: limit 100 |
Live run events and active main sessions with their running agents. |
| GET /api/reports & /memorydata | GET /reports/:id · GET|POST|DELETE /memory default: limit 50 |
Routine reports with finding statuses, plus scoped memory CRUD and search. |
Authentication and security
crewboss serve prints a URL containing the access token (from $CREWBOSS_TOKEN or generated on startup). Opening the link sets a 30-day HttpOnly; SameSite=Strict cookie and redirects to /. Scripts and API clients can send Authorization: Bearer <token>.
- Every
/api/endpoint requires authentication. - Browser writes require
Content-Type: application/jsonwith an object body (up to 1 MB). - By default the server binds to
127.0.0.1and validatesHostandOriginagainst DNS rebinding. - For LAN or reverse-proxy access, pass
--host 0.0.0.0 --public-url https://office.example.com(wildcard hosts require--public-url).
Hosting an office UI
Set "ui": "path/to/office" or "ui": "mod:office-3d" in crewboss.json, or override with crewboss serve --ui DIR. The directory must exist and contain index.html. Static hosting serves GET/HEAD only and blocks traversal, dotfiles, directories, and escaping symlinks. Without a UI, GET / returns {"name":"crewboss","api":"/api/","ui":null}.