Start local FastAPI server with automatic agent deployment and database management
serve
command starts a local FastAPI server that automatically deploys your agent with database persistence, port allocation, and capacity management. It’s the primary command for local development and testing.
Option | Description | Default |
---|---|---|
--port , -p | Preferred port (auto-allocated if unavailable) | Auto-allocated |
--host , -h | Host to bind server to | 127.0.0.1 |
--debug | Run server in debug mode | false |
--replace | Replace existing agent with this agent ID | None |
--no-animation | Skip startup animation | false |
--animation-style | Animation style (field, ascii, minimal, quick) | field |
serve
command automatically:
Startup Animation
--animation-style
)Capacity Check
Agent Registration
Server Start
Endpoint | Method | Description |
---|---|---|
/ | GET | Agent information and status |
/health | GET | Health check |
/api/v1/agents/{agent_id}/run/{tag} | POST | Execute agent entrypoint |
/docs | GET | Interactive API documentation |
/redoc | GET | Alternative API documentation |
Endpoint | Protocol | Description |
---|---|---|
/api/v1/agents/{agent_id}/stream/{tag} | WebSocket | Stream agent responses |
runagent.config.json
:
Database Capacity Issues
Port Allocation Problems
Agent Configuration Errors
Import/Module Errors
runagent db-status --capacity
serve
before remote deploymentrunagent.config.json
in version controlrunagent run
- Execute deployed agentsrunagent db-status
- Check database statusrunagent delete
- Remove agentsrunagent deploy
- Remote deployment (coming soon)runagent logs
- View logs (coming soon)