Skip to main content

Praison AI agents for completing complex tasks with Self Reflection Agents

Project description

PraisonAI Logo

Total Downloads Latest Stable Version License MCP Registry

PraisonAI ๐Ÿฆž

MervinPraison%2FPraisonAI | Trendshift

PraisonAI ๐Ÿฆž โ€” Automate and solve complex challenges with AI agent teams that plan, research, code, and deliver results to Telegram, Discord, and WhatsApp โ€” running 24/7. A low-code, production-ready multi-agent framework with handoffs, guardrails, memory, RAG, and 100+ LLM providers, built around simplicity, customisation, and effective human-agent collaboration.


Highlighted by Elon Musk

"Grok 3 customer support" โ€” Elon Musk quoting PraisonAI's tutorial


PraisonAI Dashboard

PraisonAI AgentFlow

 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•—
 โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ•—  โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘
 โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•— โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
 โ–ˆโ–ˆโ•”โ•โ•โ•โ• โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
 โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘ โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ•‘    โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘
 โ•šโ•โ•     โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•โ•šโ•โ•โ•โ•โ•โ•โ• โ•šโ•โ•โ•โ•โ•โ• โ•šโ•โ•  โ•šโ•โ•โ•โ•    โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•

 pip install praisonai

PraisonAI command execution

* export TAVILY_API_KEY=xxxxx


Quick Paths:


โšก Performance

PraisonAI is built for speed, with agent instantiation in under 4ฮผs. This reduces overhead, improves responsiveness, and helps multi-agent systems scale efficiently in real-world production workloads.

Performance Metric PraisonAI
Avg Instantiation Time 3.77 ฮผs

๐ŸŽฏ Use Cases

AI agents solving real-world problems across industries:

Use Case Description
๐Ÿ” Research & Analysis Conduct deep research, gather information, and generate insights from multiple sources automatically
๐Ÿ’ป Code Generation Write, debug, and refactor code with AI agents that understand your codebase and requirements
โœ๏ธ Content Creation Generate blog posts, documentation, marketing copy, and technical writing with multi-agent teams
๐Ÿ“Š Data Pipelines Extract, transform, and analyze data from APIs, databases, and web sources automatically
๐Ÿค– Customer Support Deploy 24/7 support bots on Telegram, Discord, Slack with memory and knowledge-backed responses
โš™๏ธ Workflow Automation Automate multi-step business processes with agents that hand off tasks, verify results, and self-correct

Supported Providers

PraisonAI supports 100+ LLM providers through seamless integration:

OpenAI Anthropic Google Gemini DeepSeek Azure Ollama Groq Mistral Cerebras Cohere OpenRouter Perplexity Fireworks AWS Bedrock xAI Grok Vertex AI HuggingFace Together AI Databricks Replicate Cloudflare

View all 24 providers with examples
Provider Example
OpenAI Example
Anthropic Example
Google Gemini Example
Ollama Example
Groq Example
DeepSeek Example
xAI Grok Example
Mistral Example
Cohere Example
Perplexity Example
Fireworks Example
Together AI Example
OpenRouter Example
HuggingFace Example
Azure OpenAI Example
AWS Bedrock Example
Google Vertex Example
Databricks Example
Cloudflare Example
AI21 Example
Replicate Example
SageMaker Example
Moonshot Example
vLLM Example

๐ŸŒŸ Why PraisonAI?

Feature How
๐Ÿ”Œ MCP Protocol โ€” stdio, HTTP, WebSocket, SSE tools=MCP("npx ...")
๐Ÿง  Planning Mode โ€” plan โ†’ execute โ†’ reason planning=True
๐Ÿ” Deep Research โ€” multi-step autonomous research Docs
๐Ÿค– External Agents โ€” orchestrate Claude Code, Gemini CLI, Codex Docs
๐Ÿ”„ Agent Handoffs โ€” seamless conversation passing handoff=True
๐Ÿ›ก๏ธ Guardrails โ€” input/output validation Docs
Web Search + Fetch โ€” native browsing web_search=True
๐Ÿชž Self Reflection โ€” agent reviews its own output Docs
๐Ÿ”€ Workflow Patterns โ€” route, parallel, loop, repeat Docs
๐Ÿง  Memory (zero deps) โ€” works out of the box memory=True
View all 25 features
Feature How
๐Ÿ’ก Prompt Caching โ€” reduce latency + cost prompt_caching=True
๐Ÿ’พ Sessions + Auto-Save โ€” persistent state across restarts auto_save="my-project"
๐Ÿ’ญ Thinking Budgets โ€” control reasoning depth thinking_budget=1024
๐Ÿ“š RAG + Quality-Based RAG โ€” auto quality scoring retrieval Docs
๐Ÿ“Š Model Router โ€” auto-routes to cheapest capable model Docs
๐ŸงŠ Shadow Git Checkpoints โ€” auto-rollback on failure Docs
๐Ÿ“ก A2A Protocol โ€” agent-to-agent interop Docs
๐Ÿ“ Context Compaction โ€” never hit token limits Docs
๐Ÿ“ก Telemetry โ€” OpenTelemetry traces, spans, metrics Docs
๐Ÿ“œ Policy Engine โ€” declarative agent behavior control Docs
๐Ÿ”„ Background Tasks โ€” fire-and-forget agents Docs
๐Ÿ” Doom Loop Detection โ€” auto-recovery from stuck agents Docs
๐Ÿ•ธ๏ธ Graph Memory โ€” Neo4j-style relationship tracking Docs
๐Ÿ–๏ธ Sandbox Execution โ€” isolated code execution Docs
๐Ÿ–ฅ๏ธ Bot Gateway โ€” multi-agent routing across channels Docs
Highlighted by Elon Musk

"Grok 3 customer support" โ€” Elon Musk quoting PraisonAI's tutorial



๐Ÿš€ Quick Start

Get started with PraisonAI in under 1 minute:

# Install
pip install praisonaiagents

# Set API key
export OPENAI_API_KEY=your_key_here

# Create a simple agent
python -c "from praisonaiagents import Agent; Agent(instructions='You are a helpful AI assistant').start('Write a haiku about AI')"

Next Steps: Single Agent Example | Multi Agents | Full Docs


๐Ÿ“ฆ Installation

Python SDK

Lightweight package dedicated for coding:

pip install praisonaiagents

For the full framework with CLI support:

pip install praisonai

๐Ÿฆž PraisonAI Claw โ€” full UI with bots, memory, knowledge, and gateway:

pip install "praisonai[claw]"
praisonai claw

๐Ÿ”— PraisonAI Flow โ€” Langflow Visual Flow Builder:

pip install "praisonai[flow]"
praisonai flow

๐Ÿค– PraisonAI UI โ€” Clean chat interface:

pip install "praisonai[ui]"
praisonai ui

JavaScript SDK

npm install praisonai

๐Ÿ“˜ Using Python Code

1. Single Agent

from praisonaiagents import Agent
agent = Agent(instructions="You are a helpful AI assistant")
agent.start("Write a movie script about a robot in Mars")

2. Multi Agents

from praisonaiagents import Agent, Agents

research_agent = Agent(instructions="Research about AI")
summarise_agent = Agent(instructions="Summarise research agent's findings")
agents = Agents(agents=[research_agent, summarise_agent])
agents.start()

3. MCP (Model Context Protocol)

from praisonaiagents import Agent, MCP

# stdio - Local NPX/Python servers
agent = Agent(tools=MCP("npx @modelcontextprotocol/server-memory"))

# Streamable HTTP - Production servers
agent = Agent(tools=MCP("https://api.example.com/mcp"))

# WebSocket - Real-time bidirectional
agent = Agent(tools=MCP("wss://api.example.com/mcp", auth_token="token"))

# With environment variables
agent = Agent(
    tools=MCP(
        command="npx",
        args=["-y", "@modelcontextprotocol/server-brave-search"],
        env={"BRAVE_API_KEY": "your-key"}
    )
)

๐Ÿ“– Full MCP docs โ€” stdio, HTTP, WebSocket, SSE transports

4. Custom Tools

from praisonaiagents import Agent, tool

@tool
def search(query: str) -> str:
    """Search the web for information."""
    return f"Results for: {query}"

@tool
def calculate(expression: str) -> float:
    """Evaluate a math expression."""
    return eval(expression)

agent = Agent(
    instructions="You are a helpful assistant",
    tools=[search, calculate]
)
agent.start("Search for AI news and calculate 15*4")

๐Ÿ“– Full tools docs โ€” BaseTool, tool packages, 100+ built-in tools

5. Persistence (Databases)

from praisonaiagents import Agent, db

agent = Agent(
    name="Assistant",
    db=db(database_url="postgresql://localhost/mydb"),
    session_id="my-session"
)
agent.chat("Hello!")  # Auto-persists messages, runs, traces

๐Ÿ“– Full persistence docs โ€” PostgreSQL, MySQL, SQLite, MongoDB, Redis, and 20+ more

6. PraisonAI Claw ๐Ÿฆž (Dashboard UI)

Connect your AI agents to Telegram, Discord, Slack, WhatsApp and more โ€” all from a single command.

pip install "praisonai[claw]"
praisonai claw

Open http://localhost:8082 โ€” the dashboard comes with 13 built-in pages: Chat, Agents, Memory, Knowledge, Channels, Guardrails, Cron, and more. Add messaging channels directly from the UI.

๐Ÿ“– Full Claw docs โ€” platform tokens, CLI options, Docker, and YAML agent mode

7. Langflow Integration ๐Ÿ”— (Visual Flow Builder)

Build multi-agent workflows visually with drag-and-drop components in Langflow.

pip install "praisonai[flow]"
praisonai flow

Open http://localhost:7861 โ€” use the Agent and Agent Team components to create sequential or parallel workflows. Connect Chat Input โ†’ Agent Team โ†’ Chat Output for instant multi-agent pipelines.

๐Ÿ“– Full Flow docs โ€” visual agent building, component reference, and deployment

8. PraisonAI UI ๐Ÿค– (Clean Chat)

Lightweight chat interface for your AI agents.

pip install "praisonai[ui]"
praisonai ui

๐Ÿ“„ Using YAML (No Code)

Example 1: Two Agents Working Together

Create agents.yaml:

framework: praisonai
topic: "Write a blog post about AI"

agents:
  researcher:
    role: Research Analyst
    goal: Research AI trends and gather information
    instructions: "Find accurate information about AI trends"
    
  writer:
    role: Content Writer
    goal: Write engaging blog posts
    instructions: "Write clear, engaging content based on research"

Run with:

praisonai agents.yaml

The agents automatically work together sequentially

Example 2: Agent with Custom Tool

Create two files in the same folder:

agents.yaml:

framework: praisonai
topic: "Calculate the sum of 25 and 15"

agents:
  calculator_agent:
    role: Calculator
    goal: Perform calculations
    instructions: "Use the add_numbers tool to help with calculations"
    tools:
      - add_numbers

tools.py:

def add_numbers(a: float, b: float) -> float:
    """
    Add two numbers together.
    
    Args:
        a: First number
        b: Second number
    
    Returns:
        The sum of a and b
    """
    return a + b

Run with:

praisonai agents.yaml

๐Ÿ’ก Tips:

  • Use the function name (e.g., add_numbers) in the tools list, not the file name
  • Tools in tools.py are automatically discovered
  • The function's docstring helps the AI understand how to use it

๐ŸŽฏ CLI Quick Reference

Category Commands
Execution praisonai, --auto, --interactive, --chat
Research research, --query-rewrite, --deep-research
Planning --planning, --planning-tools, --planning-reasoning
Workflows workflow run, workflow list, workflow auto
Memory memory show, memory add, memory search, memory clear
Knowledge knowledge add, knowledge query, knowledge list
Sessions session list, session resume, session delete
Tools tools list, tools info, tools search
MCP mcp list, mcp create, mcp enable
Development commit, docs, checkpoint, hooks
Scheduling schedule start, schedule list, schedule stop

๐Ÿ“– Full CLI reference


โœจ Key Features

๐Ÿค– Core Agents
Feature Code Docs
Single Agent Example ๐Ÿ“–
Multi Agents Example ๐Ÿ“–
Auto Agents Example ๐Ÿ“–
Self Reflection AI Agents Example ๐Ÿ“–
Reasoning AI Agents Example ๐Ÿ“–
Multi Modal AI Agents Example ๐Ÿ“–
๐Ÿ”„ Workflows
Feature Code Docs
Simple Workflow Example ๐Ÿ“–
Workflow with Agents Example ๐Ÿ“–
Agentic Routing (route()) Example ๐Ÿ“–
Parallel Execution (parallel()) Example ๐Ÿ“–
Loop over List/CSV (loop()) Example ๐Ÿ“–
Evaluator-Optimizer (repeat()) Example ๐Ÿ“–
Conditional Steps Example ๐Ÿ“–
Workflow Branching Example ๐Ÿ“–
Workflow Early Stop Example ๐Ÿ“–
Workflow Checkpoints Example ๐Ÿ“–
๐Ÿ’ป Code & Development
Feature Code Docs
Code Interpreter Agents Example ๐Ÿ“–
AI Code Editing Tools Example ๐Ÿ“–
External Agents (All) Example ๐Ÿ“–
Claude Code CLI Example ๐Ÿ“–
Gemini CLI Example ๐Ÿ“–
Codex CLI Example ๐Ÿ“–
Cursor CLI Example ๐Ÿ“–
๐Ÿง  Memory & Knowledge
Feature Code Docs
Memory (Short & Long Term) Example ๐Ÿ“–
File-Based Memory Example ๐Ÿ“–
Claude Memory Tool Example ๐Ÿ“–
Add Custom Knowledge Example ๐Ÿ“–
RAG Agents Example ๐Ÿ“–
Chat with PDF Agents Example ๐Ÿ“–
Data Readers (PDF, DOCX, etc.) CLI ๐Ÿ“–
Vector Store Selection CLI ๐Ÿ“–
Retrieval Strategies CLI ๐Ÿ“–
Rerankers CLI ๐Ÿ“–
Index Types (Vector/Keyword/Hybrid) CLI ๐Ÿ“–
Query Engines (Sub-Question, etc.) CLI ๐Ÿ“–
๐Ÿ”ฌ Research & Intelligence
Feature Code Docs
Deep Research Agents Example ๐Ÿ“–
Query Rewriter Agent Example ๐Ÿ“–
Native Web Search Example ๐Ÿ“–
Built-in Search Tools Example ๐Ÿ“–
Unified Web Search Example ๐Ÿ“–
Web Fetch (Anthropic) Example ๐Ÿ“–
๐Ÿ“‹ Planning & Execution
Feature Code Docs
Planning Mode Example ๐Ÿ“–
Planning Tools Example ๐Ÿ“–
Planning Reasoning Example ๐Ÿ“–
Prompt Chaining Example ๐Ÿ“–
Evaluator Optimiser Example ๐Ÿ“–
Orchestrator Workers Example ๐Ÿ“–
๐Ÿ‘ฅ Specialized Agents
Feature Code Docs
Data Analyst Agent Example ๐Ÿ“–
Finance Agent Example ๐Ÿ“–
Shopping Agent Example ๐Ÿ“–
Recommendation Agent Example ๐Ÿ“–
Wikipedia Agent Example ๐Ÿ“–
Programming Agent Example ๐Ÿ“–
Math Agents Example ๐Ÿ“–
Markdown Agent Example ๐Ÿ“–
Prompt Expander Agent Example ๐Ÿ“–
๐ŸŽจ Media & Multimodal
Feature Code Docs
Image Generation Agent Example ๐Ÿ“–
Image to Text Agent Example ๐Ÿ“–
Video Agent Example ๐Ÿ“–
Camera Integration Example ๐Ÿ“–
๐Ÿ”Œ Protocols & Integration
Feature Code Docs
MCP Transports Example ๐Ÿ“–
WebSocket MCP Example ๐Ÿ“–
MCP Security Example ๐Ÿ“–
MCP Resumability Example ๐Ÿ“–
MCP Config Management Docs ๐Ÿ“–
LangChain Integrated Agents Example ๐Ÿ“–
๐Ÿ›ก๏ธ Safety & Control
Feature Code Docs
Guardrails Example ๐Ÿ“–
Human Approval Example ๐Ÿ“–
Rules & Instructions Docs ๐Ÿ“–
โš™๏ธ Advanced Features
Feature Code Docs
Async & Parallel Processing Example ๐Ÿ“–
Parallelisation Example ๐Ÿ“–
Repetitive Agents Example ๐Ÿ“–
Agent Handoffs Example ๐Ÿ“–
Stateful Agents Example ๐Ÿ“–
Autonomous Workflow Example ๐Ÿ“–
Structured Output Agents Example ๐Ÿ“–
Model Router Example ๐Ÿ“–
Prompt Caching Example ๐Ÿ“–
Fast Context Example ๐Ÿ“–
๐Ÿ› ๏ธ Tools & Configuration
Feature Code Docs
100+ Custom Tools Example ๐Ÿ“–
YAML Configuration Example ๐Ÿ“–
100+ LLM Support Example ๐Ÿ“–
Callback Agents Example ๐Ÿ“–
Hooks Example ๐Ÿ“–
Middleware System Example ๐Ÿ“–
Configurable Model Example ๐Ÿ“–
Rate Limiter Example ๐Ÿ“–
Injected Tool State Example ๐Ÿ“–
Shadow Git Checkpoints Example ๐Ÿ“–
Background Tasks Example ๐Ÿ“–
Policy Engine Example ๐Ÿ“–
Thinking Budgets Example ๐Ÿ“–
Output Styles Example ๐Ÿ“–
Context Compaction Example ๐Ÿ“–
๐Ÿ“Š Monitoring & Management
Feature Code Docs
Sessions Management Example ๐Ÿ“–
Auto-Save Sessions Docs ๐Ÿ“–
History in Context Docs ๐Ÿ“–
Telemetry Example ๐Ÿ“–
Project Docs (.praison/docs/) Docs ๐Ÿ“–
AI Commit Messages Docs ๐Ÿ“–
@Mentions in Prompts Docs ๐Ÿ“–
๐Ÿ–ฅ๏ธ CLI Features
Feature Code Docs
Slash Commands Example ๐Ÿ“–
Autonomy Modes Example ๐Ÿ“–
Cost Tracking Example ๐Ÿ“–
Repository Map Example ๐Ÿ“–
Interactive TUI Example ๐Ÿ“–
Git Integration Example ๐Ÿ“–
Sandbox Execution Example ๐Ÿ“–
CLI Compare Example ๐Ÿ“–
Profile/Benchmark Docs ๐Ÿ“–
Auto Mode Docs ๐Ÿ“–
Init Docs ๐Ÿ“–
File Input Docs ๐Ÿ“–
Final Agent Docs ๐Ÿ“–
Max Tokens Docs ๐Ÿ“–
๐Ÿงช Evaluation
Feature Code Docs
Accuracy Evaluation Example ๐Ÿ“–
Performance Evaluation Example ๐Ÿ“–
Reliability Evaluation Example ๐Ÿ“–
Criteria Evaluation Example ๐Ÿ“–
๐ŸŽฏ Agent Skills
Feature Code Docs
Skills Management Example ๐Ÿ“–
Custom Skills Example ๐Ÿ“–
โฐ 24/7 Scheduling
Feature Code Docs
Agent Scheduler Example ๐Ÿ“–

๐Ÿ’ป Using JavaScript Code

npm install praisonai
export OPENAI_API_KEY=xxxxxxxxxxxxxxxxxxxxxx
const { Agent } = require('praisonai');
const agent = new Agent({ instructions: 'You are a helpful AI assistant' });
agent.start('Write a movie script about a robot in Mars');

โญ Star History

Star History Chart


๐ŸŽ“ Video Tutorials

Learn PraisonAI through our comprehensive video series:

View all 22 video tutorials
Topic Video
AI Agents with Self Reflection Self Reflection
Reasoning Data Generating Agent Reasoning Data
AI Agents with Reasoning Reasoning
Multimodal AI Agents Multimodal
AI Agents Workflow Workflow
Async AI Agents Async
Mini AI Agents Mini
AI Agents with Memory Memory
Repetitive Agents Repetitive
Introduction Introduction
Tools Overview Tools Overview
Custom Tools Custom Tools
Firecrawl Integration Firecrawl
User Interface UI
Crawl4AI Integration Crawl4AI
Chat Interface Chat
Code Interface Code
Mem0 Integration Mem0
Training Training
Realtime Voice Interface Realtime
Call Interface Call
Reasoning Extract Agents Reasoning Extract

๐Ÿ‘ฅ Contributing

We welcome contributions! Fork the repo, create a branch, and submit a PR โ†’ Contributing Guide.


โ“ FAQ & Troubleshooting

ModuleNotFoundError: No module named 'praisonaiagents'

Install the package:

pip install praisonaiagents
API key not found / Authentication error

Ensure your API key is set:

export OPENAI_API_KEY=your_key_here

For other providers, see Models docs.

How do I use a local model (Ollama)?
# Start Ollama server first
ollama serve

# Set environment variable
export OPENAI_BASE_URL=http://localhost:11434/v1

See Models docs for more details.

How do I persist conversations to a database?

Use the db parameter:

from praisonaiagents import Agent, db

agent = Agent(
    name="Assistant",
    db=db(database_url="postgresql://localhost/mydb"),
    session_id="my-session"
)

See Persistence docs for supported databases.

How do I enable agent memory?
from praisonaiagents import Agent

agent = Agent(
    name="Assistant",
    memory=True,  # Enables file-based memory (no extra deps!)
    user_id="user123"
)

See Memory docs for more options.

How do I run multiple agents together?
from praisonaiagents import Agent, Agents

agent1 = Agent(instructions="Research topics")
agent2 = Agent(instructions="Summarize findings")
agents = Agents(agents=[agent1, agent2])
agents.start()

See Agents docs for more examples.

How do I use MCP tools?
from praisonaiagents import Agent, MCP

agent = Agent(
    tools=MCP("npx @modelcontextprotocol/server-memory")
)

See MCP docs for all transport options.

Getting Help


Made with โค๏ธ by the PraisonAI Team

๐Ÿ“š Documentation โ€ข GitHub โ€ข โ–ถ๏ธ YouTube โ€ข ๐• X โ€ข ๐Ÿ’ผ LinkedIn

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

praisonaiagents-1.5.112.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

praisonaiagents-1.5.112-py3-none-any.whl (1.3 MB view details)

Uploaded Python 3

File details

Details for the file praisonaiagents-1.5.112.tar.gz.

File metadata

  • Download URL: praisonaiagents-1.5.112.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.22

File hashes

Hashes for praisonaiagents-1.5.112.tar.gz
Algorithm Hash digest
SHA256 e33df8d095ad21a37389944b481f2b3d52635f3fe7159c8f0989d153d7093608
MD5 018fceb06928f5ea1a61d28580acdd0a
BLAKE2b-256 ee58dd1d42105cc9dd8506ee6bc3ac47e74afd070bbabeaa7057483dc05e9cb7

See more details on using hashes here.

File details

Details for the file praisonaiagents-1.5.112-py3-none-any.whl.

File metadata

File hashes

Hashes for praisonaiagents-1.5.112-py3-none-any.whl
Algorithm Hash digest
SHA256 fa1a3d4239ad6d756e4fe4f44273a5f6fd8f098c7ede4b57c0ca3e27838801fd
MD5 dba363416b6020a056d8bed602d34f7b
BLAKE2b-256 b54dc32f3980fdbb31d8a2a36396d57ff3dab02fcb9f20c3bd70bfa3f8dbae9f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page