Introduction

Welcome to PraisonAI — build, deploy, and manage multi-agent AI systems with self-reflection, 100+ LLM integrations, and production-ready tooling.

Next

PraisonAI builds and deploys autonomous AI agents that understand, reason, and execute complex tasks — starting from a single line of code.

python
from praisonaiagents import Agent

agent = Agent(instructions="You are a helpful assistant")
agent.start("Write a haiku about AI")

What is PraisonAI?

PraisonAI is a powerful Multi-Agent Framework for building and deploying autonomous, self-improving AI agents that can understand, reason, and execute complex tasks.


Core Components

Diagram

🚀 Production

🛠️ Development

🤖 Agent
Single AI worker

👥 AgentTeam
Multi-agent orchestration

🔄 AgentFlow
Step-based pipelines

⚡ AgentOS
Production deployment


When to Use What

Diagram

One agent, one task

Multiple agents collaborate

Complex pipelines

Production API

What do you need?

🤖 Agent

👥 AgentTeam

🔄 AgentFlow

⚡ AgentOS

ScenarioUse This
Chat with one AIAgent
Research → Analyze → WriteAgentTeam or AgentFlow
Route to specialistsAgentFlow + route()
Parallel processingAgentFlow + parallel()
Production APIAgentOS

Use Cases


Getting Started

Python

  1. Install
    bash
    pip install praisonaiagents
  2. Set API Key
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"
  3. Create Agent
    Single Agent
    from praisonaiagents import Agent
    
    agent = Agent(instructions="You are a helpful assistant")
    agent.start("Write a haiku about AI")
    Multi-Agent Team
    from praisonaiagents import Agent, AgentTeam
    
    researcher = Agent(instructions="Research topics")
    writer = Agent(instructions="Write content")
    
    team = AgentTeam(agents=[researcher, writer])
    team.start()
    AgentFlow Pipeline
    from praisonaiagents import Agent, AgentFlow
    
    researcher = Agent(instructions="Research topics")
    writer = Agent(instructions="Write content")
    
    flow = AgentFlow(steps=[researcher, writer])
    flow.start("Research AI trends")

TypeScript

  1. Install
    bash
    npm install praisonai
  2. Set API Key
    bash
    export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}"
  3. Create Agent
    Single Agent
    import { Agent } from 'praisonai';
    
    const agent = new Agent({ instructions: 'You are a helpful assistant' });
    agent.start('Write a haiku about AI');
    Multi-Agent Team
    import { Agent, AgentTeam } from 'praisonai';
    
    const researcher = new Agent({ instructions: 'Research topics' });
    const writer = new Agent({ instructions: 'Write content' });
    
    const team = new AgentTeam({ agents: [researcher, writer] });
    team.start();

No Code (YAML)

  1. Install
    bash
    pip install praisonai
  2. Create agents.yaml
    yaml
    agents:
      researcher:
        instructions: Research AI trends
      writer:
        instructions: Write content based on research
  3. Run
    bash
    praisonai agents.yaml

Key Features


Why PraisonAI?


How It Works

An Agent receives your instructions, calls the LLM, and returns a result — teams and flows chain multiple agents on top of that.

Diagram
LLMAgentUserLLMAgentUserAgent(instructions=”…”).start(“…”)Send prompt to the selected modelModel responseFinal answer

Best Practices

Pick the right building block

Use Agent for one task, AgentTeam when agents collaborate, and AgentFlow for step-based pipelines with routing, parallel, or loop patterns.

Keep the first example tiny

Start with Agent(instructions="…").start("…"). Add name, role, tools, and Task only as your needs grow.

Set provider keys in the environment

Export OPENAI_API_KEY (or another provider’s key) in your shell. PraisonAI auto-selects a matching default model.

Move to AgentOS for production

Wrap agents in AgentOS when you need an API, webhooks, or a scheduler for production deployment.

Related