python -m praisonai_platform for local development and production deployment.
Start the PraisonAI platform server with python -m praisonai_platform for local development and production deployment.
python -m praisonai_platform; the CLI boots the API server for development or production.
Quick Start
1
Basic Usage
Start the platform server with default settings:This starts the server on
http://127.0.0.1:8000 (localhost only) with automatic reload disabled.
Set PLATFORM_HOST=0.0.0.0 or pass --host 0.0.0.0 to listen on all interfaces.2
Development Mode
Start with auto-reload for development:This enables automatic restart when code changes are detected.
How It Works
Environment Variables
Configuration Options
CLI Arguments
Command line flags and options
CLI Arguments
Common Patterns
Production Deployment
Development Server
Docker Container
Best Practices
Use auto-reload for development only
Use auto-reload for development only
The
--reload flag monitors file changes and restarts the server automatically. Only use this during development as it adds overhead and can cause issues in production.Use localhost binding by default
Use localhost binding by default
The new default
--host 127.0.0.1 only accepts connections from localhost, preventing accidental exposure on public networks. Use --host 0.0.0.0 only when you specifically need remote access, preferably behind a reverse proxy like nginx.Choose appropriate ports
Choose appropriate ports
Use standard ports like
8000 or 8080 for HTTP services. Ensure the port is available and not blocked by firewalls.Related
Platform Authentication
Set up authentication for your platform server
Platform SDK Client
Connect to platform programmatically

