praisonai deploy run --type api.
Quick Start - CLI
Quick Start - SDK
Deploy from YAML
agents.yaml with Deploy Config
API Config Options
| Field | Type | Default | Description |
|---|---|---|---|
host | string | 127.0.0.1 | Server host |
port | int | 8005 | Server port |
workers | int | 1 | Number of worker processes |
cors_enabled | bool | true | Enable CORS |
auth_enabled | bool | false | Enable authentication |
auth_token | string | null | Authentication token |
reload | bool | false | Enable auto-reload (dev) |
CLI Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--file, -f | string | agents.yaml | Path to agents.yaml |
--type | choice | - | Must be api |
--background | flag | false | Run in background |
--json | flag | false | Output as JSON |
Background Mode
Run the API server in background:Deploy Methods (SDK)
| Method | Description |
|---|---|
deploy(background=False) | Execute deployment |
plan() | Generate deployment plan without executing |
status() | Get current deployment status |
doctor() | Run health checks |
destroy(force=False) | Destroy/delete deployment |
Status & Management
Check Status (CLI)
Stop Server
Agent.launch() Method
For simple single-agent deployments:Agents.launch() Method
For multi-agent deployments: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" |
Verify Deployment
Troubleshooting
| Issue | Fix |
|---|---|
| Port in use | Change port in agents.yaml or lsof -i :8005 |
| No agents.yaml | Run praisonai deploy init --type api |
| Missing API key | export OPENAI_API_KEY="your-key" |
| Server not starting | Run praisonai deploy doctor |
| Missing deps | pip install "praisonaiagents[os]" |
| Import error | pip install praisonai |
Related
- Deploy CLI Overview - All deploy commands
- Docker Deploy - Deploy to Docker
- AWS Deploy - Deploy to AWS ECS/Fargate
- GCP Deploy - Deploy to Google Cloud Run

