Skip to main content
Deploy agents to API servers, Docker containers, or cloud providers using praisonai deploy.

Quick Start

1

Install PraisonAI

2

Set API Key

3

Initialize Deploy Config

4

Deploy

Windows compatibility (added 2026-08-03):
  • praisonai deploy reconfigures stdout/stderr to UTF-8 automatically, so the emoji banner no longer crashes cp1252 consoles.
  • praisonai deploy destroy uses netstat -ano + taskkill on Windows (falling back to lsof + SIGTERM on POSIX), preventing orphaned Flask API servers.
  • The background API deploy path spawns children via sys.executable, so it inherits the parent venvโ€™s Flask install on Windows and multi-Python setups (no more ModuleNotFoundError: flask).

Deploy Types

CLI Commands

praisonai deploy run

Execute deployment.

praisonai deploy init

Generate sample agents.yaml with deploy configuration.

praisonai deploy validate

Validate agents.yaml deploy configuration.

praisonai deploy plan

Show deployment plan without executing.

praisonai deploy status

Show deployment status.
Expected Output:

praisonai deploy doctor

Check deployment readiness.

praisonai deploy destroy

Destroy/delete deployment.

CLI Flags

agents.yaml Deploy Section

Add a deploy section to your agents.yaml:

Deploy Configuration Options

API Config

Docker Config

Cloud Config

SDK Deploy Class

Deploy programmatically using Python:

Deploy Methods

Troubleshooting