Skip to main content

Deployment Overview

Deploy your PraisonAI agents to production environments.

Deployment Options

OptionBest ForComplexity
DockerContainerized deploymentsLow
KubernetesScalable productionMedium
Cloud FunctionsServerlessLow
API ServerREST/WebSocket APIsMedium

Quick Deploy with CLI

# Deploy as API server
praisonai deploy --type api

# Deploy as Docker container
praisonai deploy --type docker

# Deploy to cloud
praisonai deploy --type cloud --provider aws

API Server

from praisonaiagents import Agent
from praisonaiagents.api import serve

agent = Agent(name="API Agent")

# Start API server
serve(agent, host="0.0.0.0", port=8000)

Environment Variables

# Required
export OPENAI_API_KEY="sk-..."

# Optional
export PRAISONAI_LOG_LEVEL="INFO"
export PRAISONAI_DB_URL="postgresql://..."