Claude Multi Agent API Server — Development agent for Claude Code
Production-ready FastAPI service for concurrent Claude Agent session management with real-time monitoring, cost tracking, and session resumption via HTTP API.
How to install Claude Multi Agent API Server
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open is0383kk/claude-multi-agent-api-server and copy the folder into
~/.claude/agents/.
What Claude Multi Agent API Server does
Production-ready FastAPI service for concurrent Claude Agent session management with real-time monitoring, cost tracking, and session resumption via HTTP API.
Alternatives in Development
- Codecrusher — Senior Developer & Implementation Expert who transforms architectural plans into high-quality, production-read 38.1k ★
- Observability Engineer — You are an observability engineer specializing in production-grade monitoring, logging, tracing, and 31.9k ★
- Civitai Reuse Review — Reviews a feature segment in the main Civitai Next.js app (src/) for code that was rebuilt when it already exi 7.2k ★
README
Claude Multi-Agent API Server
A production-ready FastAPI web service that enables concurrent execution and management of multiple Claude Agent sessions via HTTP API. Features advanced multi-agent session management with independent lifecycle control, real-time monitoring of each agent's progress, cost tracking per session, session resumption capabilities, and comprehensive background task orchestration for scalable AI agent deployment.
■ Available API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | Basic API information and available endpoints list |
/execute/ |
POST | Start a new Claude agent session |
/status/{session_id} |
GET | Get session status, message history, and results |
/cancel/{session_id} |
POST | Cancel a running session |
/sessions/ |
GET | Get detailed information of all active sessions |
/sessions/{session_id} |
DELETE | Delete a specific session by ID |
/sessions/cleanup |
DELETE | Clean up old sessions |
■ File Structure
Claude-Multi-Agent-API-Server/
├── main.py # Main FastAPI application file
├── models.py # Pydantic model definitions and validation
├── session_manager.py # Session lifecycle management
├── examples/ # Usage examples and test files
│ ├── client_example.py # Production-ready Python client implementation example
│ └── index.html # Interactive web test interface
└── requirements.txt # Python dependency definitions
1. API Endpoints
■ Agent Execution (`POST /execute/`)
Execute agents using Claude Agent SDK.
**Request Body Example:**
{
"prompt": "Please explain Claude Agent SDK in detail",
"system_prompt": "You are an excellent system engineer",
"permission_mode": "acceptEdits",
"model": "sonnet",
"cwd": "/path/to/working/directory",
"allowed_tools": ["Read", "Write", "Bash"]
}
**Response Example:**
{
"session_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "pending",
"message": "Session 123e4567-e89b-12d3-a456-426614174000 started successfully"
}
■ Status Check (`GET /status/{session_id}`)
Get the status of a running agent.
**Response Example:**
{
"session_id": "123e4567-e89b-12d3-a456-426614174000",
"status": "running",
"messages": [
{
"type": "UserMessage",
"content": "...",
"timestamp": "2024-01-01T12:00:00.000Z"
},
{
"type": "AssistantMessage",
"content": "...",
"timestamp": "2024-01-01T12:00:01.000Z"
}
],
"result": null,
"error": null,
"duration_ms": 1000,
"total_cost_usd": 0.01
}
**Status Values:**
pending: Just af
Related Agents
Be Go Backend Expert
Expert Go backend developer for production-ready services following Uber style guide and standard layout. Use
Statusline Builder
Interactive configuration wizard for the claude-statusline-builder plugin. Walks the user through choosing tim
Paid Media Tracking Specialist
Expert in conversion tracking architecture, tag management, and attribution modeling across Google Tag Manager
Kg Engineer
Senior Python Engineer for Knowledge Graph integration with CognivAgent. Specializes in Claude Agent SDK MCP t
Inventory Master
Repository cataloging specialist for commit-relay. Handles repository discovery, metadata cataloging, document
Dipeo Backend
Use this agent PROACTIVELY when working with DiPeO's backend ecosystem (server/ and cli/), including:\n- FastA
Related Skills
Openclaw Dashboard
🔐 Secure, real-time monitoring dashboard for OpenClaw AI agents. Auth, TOTP MFA, cost tracking, live feed, me
FastAPI New
Scaffold a new production-ready FastAPI service (or add domains to an existing one)
Realtime Agent Backend
Production-style backend for real-time AI chat agents: FastAPI, WebSocket token streaming, Redis + PostgreSQL