Quick Start
What AgentOS Creates
| Endpoint | Method | Purpose |
|---|---|---|
/ | GET | App status |
/health | GET | Health check |
/api/agents | GET | List agents |
/api/chat | POST | Chat with agent |
/docs | GET | API documentation |
Configuration
- Defaults
- Inline Options
- Config Class
All Configuration Options
| Option | Type | Default | Description |
|---|---|---|---|
name | str | "PraisonAI App" | Application name |
host | str | "0.0.0.0" | Host address |
port | int | 8000 | Port number |
reload | bool | False | Auto-reload (dev mode) |
cors_origins | list[str] | ["*"] | Allowed CORS origins |
api_prefix | str | "/api" | API route prefix |
docs_url | str | "/docs" | API docs URL |
openapi_url | str | "/openapi.json" | OpenAPI schema URL |
debug | bool | False | Debug mode |
log_level | str | "info" | Logging level |
workers | int | 1 | Worker processes |
timeout | int | 60 | Request timeout (seconds) |
CLI Commands
| Command | Description |
|---|---|
praisonai app | Start with defaults |
praisonai app --port 9000 | Custom port |
praisonai app --host 127.0.0.1 | Custom host |
praisonai app --config agents.yaml | Load agents from file |
praisonai app --reload | Dev mode with auto-reload |
praisonai app --debug | Enable debug logging |
praisonai app --name "My API" | Custom app name |
YAML Config File
agents.yaml
Architecture
Deployment Patterns
- Single Agent
- Multiple Agents
- With Teams
- With Flows
Chat API Request
Best Practices
Use for all production deployments
Use for all production deployments
Even for single agents, AgentOS provides proper API structure, CORS, health checks, and auto-generated docs.
Enable reload only in development
Enable reload only in development
Use
--reload during development. Disable in production for better performance.Configure CORS for security
Configure CORS for security
Replace
["*"] with specific origins in production: cors_origins=["https://myapp.com"]Use workers for scaling
Use workers for scaling
Increase
workers for production: workers=4 (typically 2-4x CPU cores)
