Quick Start
Python - Single Agent
Python - Multi-Agent
agents.yaml
CLI Commands
| Option | Default | Description |
|---|---|---|
--port | 8000 | Server port |
--host | 127.0.0.1 | Server host (use 0.0.0.0 for remote) |
--file | agents.yaml | Agents YAML file |
--reload | false | Enable hot reload |
--api-key | - | API key for authentication |
launch() Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
path | str | / | API endpoint path |
port | int | 8000 | Server port |
host | str | 0.0.0.0 | Server host |
debug | bool | False | Debug mode |
protocol | str | http | http or mcp |
Endpoints
| Endpoint | Method | Description |
|---|---|---|
/{path} | POST | Send query to agent(s) |
/{path}/list | GET | List available agents |
/{path}/{agent_id} | POST | Call specific agent |
/health | GET | Health check |
/docs | GET | Swagger UI |
Example Request/Response
Request:Remote Access
Usehost="0.0.0.0" to allow remote connections:
Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | lsof -i :8000 then kill process |
| No agents.yaml | praisonai --init "topic" |
| Missing API key | export OPENAI_API_KEY="your-key" |
| Missing deps | pip install "praisonaiagents[os]" |
| Connection refused | Use host="0.0.0.0" for remote |
| Firewall blocking | Open port in firewall |
Related
- Agents API Reference - Full API documentation
- Agents MCP - Deploy agents as MCP server
- Tools MCP - Deploy tools as MCP server
- Deploy CLI - Deploy using praisonai deploy

