Skip to main content

praisonai SDK

The praisonai package provides a high-level wrapper with CLI, auto-generation, and deployment utilities.
New in v4.6.104. praisonai now depends on the new praisonai-code package (pinned >=0.0.2), which ships the standalone code-execution runtime and full CLI backend. pip install praisonai still pulls everything you need — this note exists so you can install praisonai-code alone if you don’t need the wrapper’s gateway, bots, or integrations. See the installation guide for a full three-package comparison and the praisonai-code SDK page for what the middle layer provides.

Installation

pip install praisonai

# With all features
pip install "praisonai[all]"

Quick Start

from praisonai import PraisonAI

# Create and run agents from YAML
praison = PraisonAI(agent_file="agents.yaml")
result = praison.run()

Main Class

PraisonAI

Main wrapper class for running agents.
from praisonai import PraisonAI

praison = PraisonAI(
    agent_file="agents.yaml",
    framework="praisonaiagents"  # or "crewai", "autogen"
)

result = praison.run()

Constructor

ParameterTypeDescription
agent_filestrPath to YAML agent definition
frameworkstrFramework to use
autoboolEnable auto mode

Modules

CLI Module

Command-line interface and PraisonAI class

Auto Module

Automated agent generation from prompts

Deploy Module

Deployment utilities for APIs and services

Persistence Module

Database adapters and session management

Framework Support

PraisonAI Agents (Default)

pip install praisonai

CrewAI Integration

pip install "praisonai-frameworks[crewai]"

AutoGen Integration

pip install "praisonai-frameworks[autogen]"