Introduction
PraisonAI runs AI agents on your own computers, even fully offline, so private data never has to leave the building. It is built for highly regulated teams, and free and open source for everyone.
PraisonAI runs AI agents on your own computers, even fully offline, so private data never has to leave the building. It is built for highly regulated teams, and free and open source for everyone.
Private AI that earns trust one task at a time.
from praisonaiagents import Agent
agent = Agent(instructions="You are a helpful assistant")
agent.start("Write a haiku about AI")What is PraisonAI?
PraisonAI is an open-source Python framework for building AI agents. It is still a general-purpose framework: build any kind of agent, with any model, in the cloud or on your own computers. Our company focus is private AI for regulated teams, and this framework is the foundation for that work.
Building something else?
Everything works as before. Nothing has been removed, and every feature page is where it was.
One agent with instructions and tools
Multi-agent teamsSeveral agents working together
AgentFlowStep-based pipelines: route, parallel, loop
MemoryAgents that remember across sessions
KnowledgeGive agents your documents
RAGRetrieve before you answer
ToolsLet agents call your functions
MCPConnect Model Context Protocol servers
Messaging botsTelegram, Discord, Slack, WhatsApp
CLIRun agents from the command line
TrainingTrain agents and fine-tune models
Browser automationAgents that use a web browser
SandboxRun agent code in isolation
DeployDocker, cloud and local servers
UIChat interfaces for your agents
YAMLDefine agents without Python
JavaScript SDKThe same agents in TypeScript and JavaScript
Run fully offline
Agents can run on a model on your own computer, with no internet connection and no cloud API key.
Run fully offlineInstall, pull a local model, and run an agent with the network turned off.
Early access: task handover
We are building a way to move each task to your own AI only after it passes a test, and move it back if quality slips. It is in early access, and we are taking on our first design partners.
Task handover (early access)The five steps, and the parts of the open-source framework it builds on.
Core Components
Single AI worker with tools and instructions
👥 AgentTeamMulti-agent orchestration with sequential/hierarchical process
🔄 AgentFlowStep-based pipelines with route, parallel, loop patterns
⚡ AgentOSProduction deployment with API, webhooks, scheduler
When to Use What
| Scenario | Use This |
|---|---|
| Chat with one AI | Agent |
| Research → Analyze → Write | AgentTeam or AgentFlow |
| Route to specialists | AgentFlow + route() |
| Parallel processing | AgentFlow + parallel() |
| Production API | AgentOS |
Use Cases
Build intelligent support agents that can handle customer inquiries and resolve issues autonomously.
Data AnalysisCreate agents that can process, analyze, and derive insights from complex datasets.
Content CreationDeploy agents that can generate, edit, and optimize content across various formats.
Process AutomationAutomate complex workflows with intelligent agents that can coordinate and execute tasks.
Getting Started
Python
- Install
bash pip install praisonaiagents - Set API Key
bash export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}" - 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
- Install
bash npm install praisonai - Set API Key
bash export OPENAI_API_KEY="${OPENAI_API_KEY:?Set OPENAI_API_KEY in your shell}" - 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)
- Install
bash pip install praisonai - Create agents.yaml
yaml agents: researcher: instructions: Research AI trends writer: instructions: Write content based on research - Run
bash praisonai agents.yaml
Key Features
- Understand natural language
- Make decisions
- Execute tasks
- Learn and persist new skills
- Modular components
- Extensible tools
- Custom workflows
- Multi-agent collaboration
- Memory management
- Tool integration
Why PraisonAI?
Modern SDK designed to be intuitive and powerful
Production ReadyEnterprise-grade with built-in security and scale
Open SourceAvailable on GitHub
Low Code FriendlyEasy for non-technical users
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.
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.