Production-ready FastAPI service for concurrent Claude Agent session management with real-time monitoring, cost tracking, and session resumption via HTTP API.
README
[!WARNING] Development of this repository has ceased.
It is currently being redeveloped as a resident AI agent; OpenClaude.
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.
| 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 |
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