praisonai serve <type> - one command to start any server.
Quick Start
All Serve Commands
Run
praisonai serve to see all available options with descriptions.| Command | Protocol | Port | Description |
|---|---|---|---|
praisonai serve agents | HTTP | 8000 | Agents as HTTP REST API |
praisonai serve gateway | WebSocket | 8765 | Multi-agent real-time coordination |
praisonai serve mcp | STDIO/SSE | 8080 | MCP server for Claude/Cursor |
praisonai serve acp | STDIO | - | Agent Client Protocol for IDEs |
praisonai serve lsp | STDIO | - | Language Server Protocol |
praisonai serve ui | HTTP | 8082 | Chainlit web interface |
praisonai serve rag | HTTP | 9000 | RAG query server |
praisonai serve registry | HTTP | 7777 | Package registry server |
praisonai serve docs | HTTP | 3000 | Documentation preview |
praisonai serve scheduler | Background | - | Job scheduler daemon |
praisonai serve recipe | HTTP | 8765 | Recipe runner server |
praisonai serve a2a | JSON-RPC | 8001 | Agent-to-Agent protocol |
praisonai serve a2u | SSE | 8002 | Agent-to-User event stream |
praisonai serve unified | HTTP/SSE | 8765 | All providers combined |
Server Details
- Agents
- Gateway
- MCP
- Recipe
- Unified
HTTP REST API for agents.Options:
Test with curl:
| Option | Default | Description |
|---|---|---|
--host | 127.0.0.1 | Host to bind to |
--port | 8000 | Port to bind to |
--file | agents.yaml | Agents YAML file |
--reload | false | Enable hot reload |
--api-key | - | API key for auth |
How It Works
Common Patterns
Development with Hot Reload
Development with Hot Reload
Production with Auth
Production with Auth
Multiple Servers
Multiple Servers
All-in-One Development
All-in-One Development
Discovery Endpoint
All HTTP servers expose/__praisonai__/discovery for endpoint discovery.
Best Practices
Use Unified for Development
Use Unified for Development
Start with
praisonai serve unified during development to access all providers. Split into separate servers for production.Always Set Host in Production
Always Set Host in Production
Use
--host 0.0.0.0 to accept external connections. Default 127.0.0.1 only accepts local connections.Enable Auth for Public Servers
Enable Auth for Public Servers
Always use
--api-key when exposing servers publicly. Never run unauthenticated servers on public networks.
