Skip to main content
Start the PraisonAI platform server with 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.
The user runs 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

The default bind address changed from 0.0.0.0 to 127.0.0.1 for security (advisory GHSA-h8q5-cp56-rr65). This prevents accidental exposure to the public internet on development machines. Use --host 0.0.0.0 explicitly for container deployments or when remote access is needed.

Best Practices

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.
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.
Use standard ports like 8000 or 8080 for HTTP services. Ensure the port is available and not blocked by firewalls.

Platform Authentication

Set up authentication for your platform server

Platform SDK Client

Connect to platform programmatically