Star ๅކๅฒ่ถ‹ๅŠฟ
ๆ•ฐๆฎๆฅๆบ: GitHub API ยท ็”Ÿๆˆ่‡ช Stargazers.cn
README.md

PraisonAI Logo

Total Downloads Latest Stable Version License MCP Registry

PraisonAI ๐Ÿฆž

MervinPraison%2FPraisonAI | Trendshift

PraisonAI ๐Ÿฆž โ€” Hire a 24/7 AI Workforce. Stop writing boilerplate and start shipping autonomous, self-improving agents that research, plan, and execute tasks across your apps. From one agent to an entire organization, deployed in 5 lines of code.

curl -fsSL https://praison.ai/install.sh | bash

PraisonAI Dashboard

PraisonAI AgentFlow

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

 pip install praisonai

PraisonAI command execution

* export TAVILY_API_KEY=xxxxx


๐ŸŽฏ Use Cases

AI agents solving real-world problems across industries:

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

๐Ÿš€ Meet your first Agent (Under 1 Minute)

  1. Install the lightweight core SDK:
pip install praisonaiagents
export OPENAI_API_KEY="your-api-key"
  1. Run your first autonomous agent:
from praisonaiagents import Agent

# Give your agent a goal, and watch it work.
agent = Agent(instructions="You are a senior data analyst.")
agent.start("Analyze the top 3 tech trends of 2026 and format as a markdown table.")

๐ŸŒŒ The PraisonAI Ecosystem

Start simple with the core SDK, or expand to full visual builders and dashboards when you're ready.

  • Core SDK (praisonaiagents): For pure Python development. pip install praisonaiagents
  • ๐Ÿ’ป PraisonAI CLI (praisonai): For terminal-based developers. pip install praisonai
  • ๐Ÿฆž Claw Dashboard: Connect agents directly to Telegram, Slack, or Discord. pip install "praisonai[claw]"
  • ๐Ÿ”— Flow Visual Builder: Drag-and-drop workflow creation. pip install "praisonai[flow]"
  • ๐Ÿค– PraisonAI UI: Clean chat interface. pip install "praisonai[ui]"

JavaScript SDK

npm install praisonai

๐Ÿง  Supported Providers & Features

Powered by 100+ LLMs (OpenAI, Anthropic, Gemini & local models).

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
ProviderExample
OpenAIExample
AnthropicExample
Google GeminiExample
OllamaExample
GroqExample
DeepSeekExample
xAI GrokExample
MistralExample
CohereExample
PerplexityExample
FireworksExample
Together AIExample
OpenRouterExample
HuggingFaceExample
Azure OpenAIExample
AWS BedrockExample
Google VertexExample
DatabricksExample
CloudflareExample
AI21Example
ReplicateExample
SageMakerExample
MoonshotExample
vLLMExample
Highlighted by Elon Musk

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



๐ŸŒŸ Why PraisonAI?

FeatureHow
๐Ÿ”ŒMCP Protocol โ€” stdio, HTTP, WebSocket, SSEtools=MCP("npx ...")
๐Ÿง Planning Mode โ€” plan โ†’ execute โ†’ reasonplanning=True
๐Ÿ”Deep Research โ€” multi-step autonomous researchDocs
๐Ÿค–External Agents โ€” orchestrate Claude Code, Gemini CLI, CodexDocs
๐Ÿ”„Agent Handoffs โ€” seamless conversation passinghandoff=True
๐Ÿ›ก๏ธGuardrails โ€” input/output validationDocs
Web Search + Fetch โ€” native browsingweb_search=True
๐ŸชžSelf Reflection โ€” agent reviews its own outputDocs
๐Ÿ”€Workflow Patterns โ€” route, parallel, loop, repeatDocs
๐Ÿง Memory (zero deps) โ€” works out of the boxmemory=True
View all 25 features
FeatureHow
๐Ÿ’กPrompt Caching โ€” reduce latency + costprompt_caching=True
๐Ÿ’พSessions + Auto-Save โ€” persistent state across restartsauto_save="my-project"
๐Ÿ’ญThinking Budgets โ€” control reasoning depththinking_budget=1024
๐Ÿ“šRAG + Quality-Based RAG โ€” auto quality scoring retrievalDocs
๐Ÿ“ŠModel Router โ€” auto-routes to cheapest capable modelDocs
๐ŸงŠShadow Git Checkpoints โ€” auto-rollback on failureDocs
๐Ÿ“กA2A Protocol โ€” agent-to-agent interopDocs
๐Ÿ“Context Compaction โ€” never hit token limitsDocs
๐Ÿ“กTelemetry โ€” OpenTelemetry traces, spans, metricsDocs
๐Ÿ“œPolicy Engine โ€” declarative agent behavior controlDocs
๐Ÿ”„Background Tasks โ€” fire-and-forget agentsDocs
๐Ÿ”Doom Loop Detection โ€” auto-recovery from stuck agentsDocs
๐Ÿ•ธ๏ธGraph Memory โ€” Neo4j-style relationship trackingDocs
๐Ÿ–๏ธSandbox Execution โ€” isolated code executionDocs
๐Ÿ–ฅ๏ธBot Gateway โ€” multi-agent routing across channelsDocs

๐Ÿ“˜ 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:
    """Safely evaluate a numeric arithmetic expression."""
    import ast
    import operator
    
    # Define allowed operations
    _OPS = {
        ast.Add: operator.add,
        ast.Sub: operator.sub,
        ast.Mult: operator.mul,
        ast.Div: operator.truediv,
        ast.Pow: operator.pow,
        ast.USub: operator.neg,
        ast.UAdd: operator.pos,
    }
    
    def _safe_eval(node):
        if isinstance(node, ast.Constant) and isinstance(node.value, (int, float)):
            return node.value
        elif isinstance(node, ast.BinOp) and type(node.op) in _OPS:
            return _OPS[type(node.op)](_safe_eval(node.left), _safe_eval(node.right))
        elif isinstance(node, ast.UnaryOp) and type(node.op) in _OPS:
            return _OPS[type(node.op)](_safe_eval(node.operand))
        else:
            raise ValueError("Unsupported expression")
    
    try:
        return _safe_eval(ast.parse(expression, mode="eval").body)
    except (ValueError, SyntaxError, TypeError, ZeroDivisionError, OverflowError):
        raise ValueError("Invalid arithmetic expression")

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

โš ๏ธ Security Note: Never use eval(), exec(), or subprocess in tool functions that process LLM-generated or user-supplied input. Always validate and sanitize inputs to prevent code injection attacks. ๐Ÿ“– 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

Required Environment Variables

Copy .env.example to .env and configure the following variables:

VariableRequiredDescription
OPENAI_API_KEYYesOpenAI API key for all LLM calls
TAVILY_API_KEYYes (Claw)Tavily key for the built-in web-search tool. Get one free at https://app.tavily.com

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

CategoryCommands
Executionpraisonai, --auto, --interactive, --chat
Researchresearch, --query-rewrite, --deep-research
Planning--planning, --planning-tools, --planning-reasoning
Workflowsworkflow run, workflow list, workflow auto
Memorymemory show, memory add, memory search, memory clear
Knowledgeknowledge add, knowledge query, knowledge list
Sessionssession list, session resume, session delete
Toolstools list, tools info, tools search
MCPmcp list, mcp create, mcp enable
Developmentcommit, docs, checkpoint, hooks
Schedulingschedule start, schedule list, schedule stop

๐Ÿ“– Full CLI reference


โœจ Key Features

๐Ÿค– Core Agents
FeatureCodeDocs
Single AgentExample๐Ÿ“–
Multi AgentsExample๐Ÿ“–
Auto AgentsExample๐Ÿ“–
Self Reflection AI AgentsExample๐Ÿ“–
Reasoning AI AgentsExample๐Ÿ“–
Multi Modal AI AgentsExample๐Ÿ“–
๐Ÿ”„ Workflows
FeatureCodeDocs
Simple WorkflowExample๐Ÿ“–
Workflow with AgentsExample๐Ÿ“–
Agentic Routing (route())Example๐Ÿ“–
Parallel Execution (parallel())Example๐Ÿ“–
Loop over List/CSV (loop())Example๐Ÿ“–
Evaluator-Optimizer (repeat())Example๐Ÿ“–
Conditional StepsExample๐Ÿ“–
Workflow BranchingExample๐Ÿ“–
Workflow Early StopExample๐Ÿ“–
Workflow CheckpointsExample๐Ÿ“–
๐Ÿ’ป Code & Development
FeatureCodeDocs
Code Interpreter AgentsExample๐Ÿ“–
AI Code Editing ToolsExample๐Ÿ“–
External Agents (All)Example๐Ÿ“–
Claude Code CLIExample๐Ÿ“–
Gemini CLIExample๐Ÿ“–
Codex CLIExample๐Ÿ“–
Cursor CLIExample๐Ÿ“–
๐Ÿง  Memory & Knowledge
FeatureCodeDocs
Memory (Short & Long Term)Example๐Ÿ“–
File-Based MemoryExample๐Ÿ“–
Claude Memory ToolExample๐Ÿ“–
Add Custom KnowledgeExample๐Ÿ“–
RAG AgentsExample๐Ÿ“–
Chat with PDF AgentsExample๐Ÿ“–
Data Readers (PDF, DOCX, etc.)CLI๐Ÿ“–
Vector Store SelectionCLI๐Ÿ“–
Retrieval StrategiesCLI๐Ÿ“–
RerankersCLI๐Ÿ“–
Index Types (Vector/Keyword/Hybrid)CLI๐Ÿ“–
Query Engines (Sub-Question, etc.)CLI๐Ÿ“–
๐Ÿ”ฌ Research & Intelligence
FeatureCodeDocs
Deep Research AgentsExample๐Ÿ“–
Query Rewriter AgentExample๐Ÿ“–
Native Web SearchExample๐Ÿ“–
Built-in Search ToolsExample๐Ÿ“–
Unified Web SearchExample๐Ÿ“–
Web Fetch (Anthropic)Example๐Ÿ“–
๐Ÿ“‹ Planning & Execution
FeatureCodeDocs
Planning ModeExample๐Ÿ“–
Planning ToolsExample๐Ÿ“–
Planning ReasoningExample๐Ÿ“–
Prompt ChainingExample๐Ÿ“–
Evaluator OptimiserExample๐Ÿ“–
Orchestrator WorkersExample๐Ÿ“–
๐Ÿ‘ฅ Specialized Agents
FeatureCodeDocs
Data Analyst AgentExample๐Ÿ“–
Finance AgentExample๐Ÿ“–
Shopping AgentExample๐Ÿ“–
Recommendation AgentExample๐Ÿ“–
Wikipedia AgentExample๐Ÿ“–
Programming AgentExample๐Ÿ“–
Math AgentsExample๐Ÿ“–
Markdown AgentExample๐Ÿ“–
Prompt Expander AgentExample๐Ÿ“–
๐ŸŽจ Media & Multimodal
FeatureCodeDocs
Image Generation AgentExample๐Ÿ“–
Image to Text AgentExample๐Ÿ“–
Video AgentExample๐Ÿ“–
Camera IntegrationExample๐Ÿ“–
๐Ÿ”Œ Protocols & Integration
FeatureCodeDocs
MCP TransportsExample๐Ÿ“–
WebSocket MCPExample๐Ÿ“–
MCP SecurityExample๐Ÿ“–
MCP ResumabilityExample๐Ÿ“–
MCP Config ManagementDocs๐Ÿ“–
LangChain Integrated AgentsExample๐Ÿ“–
๐Ÿ›ก๏ธ Safety & Control
FeatureCodeDocs
GuardrailsExample๐Ÿ“–
Human ApprovalExample๐Ÿ“–
Rules & InstructionsDocs๐Ÿ“–
โš™๏ธ Advanced Features
FeatureCodeDocs
Async & Parallel ProcessingExample๐Ÿ“–
ParallelisationExample๐Ÿ“–
Repetitive AgentsExample๐Ÿ“–
Agent HandoffsExample๐Ÿ“–
Stateful AgentsExample๐Ÿ“–
Autonomous WorkflowExample๐Ÿ“–
Structured Output AgentsExample๐Ÿ“–
Model RouterExample๐Ÿ“–
Prompt CachingExample๐Ÿ“–
Fast ContextExample๐Ÿ“–
๐Ÿ› ๏ธ Tools & Configuration
FeatureCodeDocs
100+ Custom ToolsExample๐Ÿ“–
YAML ConfigurationExample๐Ÿ“–
100+ LLM SupportExample๐Ÿ“–
Callback AgentsExample๐Ÿ“–
HooksExample๐Ÿ“–
Middleware SystemExample๐Ÿ“–
Configurable ModelExample๐Ÿ“–
Rate LimiterExample๐Ÿ“–
Injected Tool StateExample๐Ÿ“–
Shadow Git CheckpointsExample๐Ÿ“–
Background TasksExample๐Ÿ“–
Policy EngineExample๐Ÿ“–
Thinking BudgetsExample๐Ÿ“–
Output StylesExample๐Ÿ“–
Context CompactionExample๐Ÿ“–
๐Ÿ“Š Monitoring & Management
FeatureCodeDocs
Sessions ManagementExample๐Ÿ“–
Auto-Save SessionsDocs๐Ÿ“–
History in ContextDocs๐Ÿ“–
TelemetryExample๐Ÿ“–
Langfuse TracingDocs๐Ÿ“–
Project Docs (.praison/docs/)Docs๐Ÿ“–
AI Commit MessagesDocs๐Ÿ“–
@Mentions in PromptsDocs๐Ÿ“–
๐Ÿ–ฅ๏ธ CLI Features
FeatureCodeDocs
Slash CommandsExample๐Ÿ“–
Autonomy ModesExample๐Ÿ“–
Cost TrackingExample๐Ÿ“–
Repository MapExample๐Ÿ“–
Interactive TUIExample๐Ÿ“–
Git IntegrationExample๐Ÿ“–
Sandbox ExecutionExample๐Ÿ“–
CLI CompareExample๐Ÿ“–
Profile/BenchmarkDocs๐Ÿ“–
Auto ModeDocs๐Ÿ“–
InitDocs๐Ÿ“–
File InputDocs๐Ÿ“–
Final AgentDocs๐Ÿ“–
Max TokensDocs๐Ÿ“–
๐Ÿงช Evaluation
FeatureCodeDocs
Accuracy EvaluationExample๐Ÿ“–
Performance EvaluationExample๐Ÿ“–
Reliability EvaluationExample๐Ÿ“–
Criteria EvaluationExample๐Ÿ“–
๐ŸŽฏ Agent Skills
FeatureCodeDocs
Skills ManagementExample๐Ÿ“–
Custom SkillsExample๐Ÿ“–
โฐ 24/7 Scheduling
FeatureCodeDocs
Agent SchedulerExample๐Ÿ“–

๐Ÿ’ป 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');

โšก Performance

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

Performance MetricPraisonAI
Avg Instantiation Time14 ฮผs


โญ Star History

Star History Chart


๐Ÿ” Langfuse Tracing

pip install "praisonai[langfuse]"
praisonai langfuse

PraisonAI Langfuse Tracing


๐ŸŽ“ Video Tutorials

Learn PraisonAI through our comprehensive video series:

View all 22 video tutorials
TopicVideo
AI Agents with Self ReflectionSelf Reflection
Reasoning Data Generating AgentReasoning Data
AI Agents with ReasoningReasoning
Multimodal AI AgentsMultimodal
AI Agents WorkflowWorkflow
Async AI AgentsAsync
Mini AI AgentsMini
AI Agents with MemoryMemory
Repetitive AgentsRepetitive
IntroductionIntroduction
Tools OverviewTools Overview
Custom ToolsCustom Tools
Firecrawl IntegrationFirecrawl
User InterfaceUI
Crawl4AI IntegrationCrawl4AI
Chat InterfaceChat
Code InterfaceCode
Mem0 IntegrationMem0
TrainingTraining
Realtime Voice InterfaceRealtime
Call InterfaceCall
Reasoning Extract AgentsReasoning 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

ๅ…ณไบŽ About

PraisonAI ๐Ÿฆž โ€” Hire a 24/7 AI Workforce. Stop writing boilerplate and start shipping autonomous self-improving agents that research, plan, code, and execute tasks. Deployed in 5 lines of code with built-in memory, RAG, and support for 100+ LLMs.
agentsaiai-agent-frameworkai-agent-sdkai-agentsai-agents-frameworkai-agents-sdkai-framworkaiagentaiagentframeworkaiagentsaiagentsframeworkframeworkhermeshermes-agentmulti-agentmulti-agent-systemmulti-agentsmulti-ai-agentsopenclaw

่ฏญ่จ€ Languages

Python90.2%
TypeScript6.6%
Rust2.7%
Shell0.3%
HTML0.1%
PowerShell0.0%
JavaScript0.0%
Go Template0.0%
Dockerfile0.0%
Ruby0.0%
CSS0.0%

ๆไบคๆดป่ทƒๅบฆ Commit Activity

ไปฃ็ ๆไบค็ƒญๅŠ›ๅ›พ
่ฟ‡ๅŽป 52 ๅ‘จ็š„ๅผ€ๅ‘ๆดป่ทƒๅบฆ
4914
Total Commits
ๅณฐๅ€ผ: 696ๆฌก/ๅ‘จ
Less
More

ๆ ธๅฟƒ่ดก็Œฎ่€… Contributors