praisonai serve command launches various PraisonAI server types with unified discovery support.
Server Types
Bot Servers (Messaging Platforms)
Quick Start
Usage
Basic Server
Custom Port and Host
Alternative Flag Style
UI-Gateway Server (Pattern C)
API Endpoints
When the server starts, it automatically creates these endpoints:Run All Agents
Run Specific Agent
List Available Agents
Example agents.yaml
Integration with n8n
The serve command works seamlessly with n8n workflows:- Visualize agent execution flow
- Add conditional logic between agents
- Integrate with other n8n nodes
POST /api/v1/agents/{id}/invoke endpoint isolates conversations by session_id and provides an ephemeral mode when the field is omitted — see n8n API → Session semantics.
Use Cases
Microservices
Expose agents as REST APIs for microservice architectures
n8n Integration
Connect agents to n8n workflows for automation
Web Applications
Backend API for web or mobile applications
Testing
Test agents via HTTP requests during development
Python SDK Equivalent
The serve command is equivalent to:Command Options
Global Options
Agents Server Options
Environment Variables:
See Serve Agents Authentication for the full localhost allowlist and error reference.
Gateway Server Options
UI-Gateway Server Options
MCP Server Options
ACP Server Options
LSP Server Options
UI Server Options
RAG Server Options
Registry Server Options
Docs Server Options
Scheduler Options
Recipe Server Options
A2A Server Options
A2U Server Options
Unified Server Options
Bot Server Options (Telegram, Discord, Slack)
Environment Variables:
TELEGRAM_BOT_TOKEN- Telegram bot tokenDISCORD_BOT_TOKEN- Discord bot tokenSLACK_BOT_TOKEN- Slack bot token
Discovery Endpoint
All servers expose a unified discovery endpoint at/__praisonai__/discovery:
Server-Specific Commands
A2A Server
A2U Server
MCP Server
Tools MCP Server
Related
- Host Integration - UI-Gateway configuration options
- Integration Patterns - Pattern C and deployment patterns
- Endpoints CLI - Client for all server types
- n8n Integration
- Workflows
- A2A Server
- Tools MCP Server

