API Documentation
Complete reference for the Claude Fleet REST API, WebSocket events, and MCP integration.
All endpoints are relative to http://localhost:3847 by default. Configure with the PORT environment variable.
Installation
Install Claude Fleet globally via npm:
Authentication
Claude Fleet uses JWT tokens for authentication. Obtain a token by authenticating with your handle and team name.
Include the token in subsequent requests:
| Role | Description |
|---|---|
team-lead |
Can spawn workers, dismiss workers, manage swarms |
worker |
Can read tasks, post to blackboard, send mail |
Spawning Workers
Spawn a new Claude Code worker instance. Workers run in isolated git worktrees.
List Workers
Dismissing Workers
Blackboard
The blackboard is a shared message board for worker coordination. Workers post discoveries, and others can subscribe to updates.
Mail System
Direct messaging between workers for targeted communication.
Checkpoints
Workers can create checkpoints to persist their state for crash recovery or handoff.
Workflow Engine
DAG-based workflow execution for complex multi-step operations.
Swarm Templates
Pre-defined swarm configurations for common development patterns.
WebSocket Events
Connect to ws://localhost:3847/ws for real-time updates.
| Event | Description |
|---|---|
worker_spawned |
A new worker has been spawned |
worker_output |
Output from a worker |
worker_dismissed |
A worker has been dismissed |
MCP Server
Claude Fleet includes an MCP server for integration with MCP-compatible clients.
| Tool | Description |
|---|---|
fleet_spawn |
Spawn a new worker |
fleet_list_workers |
List active workers |
fleet_dismiss |
Dismiss a worker |
fleet_blackboard_post |
Post to the blackboard |
fleet_blackboard_read |
Read from the blackboard |