AgentOS deploys agents, teams, and flows as production-ready HTTP APIs with built-in health checks, CORS, and Express integration.Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
AgentOS replaces AgentApp as the recommended class name. The old name still works as a silent alias.Quick Start
How It Works
| Step | Description |
|---|---|
| 1 | Client sends HTTP request to AgentOS endpoint |
| 2 | AgentOS routes to the appropriate agent |
| 3 | Agent processes the message and returns a response |
| 4 | AgentOS formats and returns the response as JSON |
Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
name | string | "PraisonAI App" | Application name |
agents | Agent[] | [] | Agents to serve |
teams | AgentTeam[] | [] | Teams to serve |
flows | AgentFlow[] | [] | Flows to serve |
config.host | string | "0.0.0.0" | Server host |
config.port | number | 8000 | Server port |
config.corsOrigins | string[] | ["*"] | Allowed CORS origins |
config.apiPrefix | string | "/api" | API route prefix |
config.debug | boolean | false | Enable debug mode |
config.timeout | number | 60 | Request timeout (seconds) |
API Endpoints
| Endpoint | Method | Description |
|---|---|---|
/ | GET | App info (name, status, agent count) |
/health | GET | Health check ({ status: 'healthy' }) |
/api/agents | GET | List available agents |
/api/chat | POST | Chat with an agent |
/api/teams | GET | List available teams |
/api/flows | GET | List available flows |
Chat Request
Chat Response
Common Patterns
- Single Agent
- Multi-Agent
- With Teams
- Custom API Prefix
Best Practices
Use environment variables for port
Use environment variables for port
Read port from environment for deployment flexibility.
Configure CORS for production
Configure CORS for production
Restrict CORS origins in production instead of using ’*’.
Stop server gracefully
Stop server gracefully
Use the stop() method for clean shutdown.
Backward Compatibility
AgentApp works as a silent alias with no deprecation warnings.managers→teams(deprecated)workflows→flows(deprecated)
Related
Agent
Single agent documentation
AgentTeam
Multi-agent orchestration
AgentFlow
Step-based workflows
Server Adapters
Express, Hono, Next.js adapters

