MCPcopy Index your code
hub / github.com/MervinPraison/PraisonAI

github.com/MervinPraison/PraisonAI @v4.6.125 sqlite

repository ↗ · DeepWiki ↗ · release v4.6.125 ↗
49,890 symbols 207,704 edges 4,449 files 36,120 documented · 72%
README
<img alt="PraisonAI Logo" src="https://github.com/MervinPraison/PraisonAI/raw/v4.6.125/github/images/logo_light.png" width="250" />

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

Highlighted by Elon Musk

PraisonAI Dashboard

PraisonAI AgentFlow

 ██████╗ ██████╗  █████╗ ██╗███████╗ ██████╗ ███╗   ██╗     █████╗ ██╗
 ██╔══██╗██╔══██╗██╔══██╗██║██╔════╝██╔═══██╗████╗  ██║    ██╔══██╗██║
 ██████╔╝██████╔╝███████║██║███████╗██║   ██║██╔██╗ ██║    ███████║██║
 ██╔═══╝ ██╔══██╗██╔══██║██║╚════██║██║   ██║██║╚██╗██║    ██╔══██║██║
 ██║     ██║  ██║██║  ██║██║███████║╚██████╔╝██║ ╚████║    ██║  ██║██║
 ╚═╝     ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝╚══════╝ ╚═════╝ ╚═╝  ╚═══╝    ╚═╝  ╚═╝╚═╝

 pip install praisonai

PraisonAI command execution

* export TAVILY_API_KEY=xxxxx

  <img src="https://img.shields.io/badge/📚_Documentation-Visit_docs.praison.ai-blue?style=for-the-badge&logo=bookstack&logoColor=white" alt="Documentation" />


🎯 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

🚀 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

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

Highlighted by Elon Musk

"Grok 3 customer support" — Elon Musk quoting PraisonAI's tutorial


🌟 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

📘 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

```python from praisonaiagents import Agent, tool

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

@tool def calculate(expres

Extension points exported contracts — how you extend this code

ConditionProtocol (Interface)
(no doc) [6 implementers]
src/praisonai-ts/src/conditions/index.ts
TestResult (Interface)
(no doc)
examples/js/run-feature-tests.ts
Template (Interface)
(no doc)
examples/catalog/fetch_templates.ts
LLMProvider (Interface)
(no doc) [11 implementers]
src/praisonai-ts/src/llm/providers/types.ts
EmbeddedDocument (Interface)
(no doc)
examples/js/embeddings/embed-docs.ts
Catalog (Interface)
(no doc)
examples/catalog/fetch_templates.ts
ObservabilityAdapter (Interface)
(no doc) [34 implementers]
src/praisonai-ts/src/observability/types.ts
Document (Interface)
(no doc)
examples/js/embeddings/retrieval.ts

Core symbols most depended-on inside this repo

get
called by 11980
src/praisonai-ts/src/memory/index.ts
append
called by 3840
src/praisonai-agents/praisonaiagents/context/protocols.py
append
called by 2256
src/praisonai/praisonai/context/history_store.py
log
called by 1864
src/praisonai-ts/src/agent/ocr.ts
print
called by 1370
src/praisonai-ts/src/cli/features/interactive-tui.ts
run
called by 1176
src/praisonai-ts/src/eval/judge.ts
start
called by 1113
src/praisonai-ts/src/process/index.ts
debug
called by 1082
src/praisonai-ts/src/utils/logger.ts

Shape

Method 31,023
Function 10,078
Class 7,423
Interface 742
Route 602
Enum 22

Languages

Python91%
TypeScript9%

Modules by API surface

src/praisonai-ts/src/parity/index.ts226 symbols
src/praisonai-agents/tests/test_workflow_patterns.py196 symbols
src/praisonai-agents/praisonaiagents/gateway/protocols.py196 symbols
src/praisonai-bot/praisonai_bot/gateway/server.py193 symbols
src/praisonai-agents/praisonaiagents/agent/agent.py131 symbols
src/praisonai-agents/tests/test_plugin_system.py117 symbols
src/praisonai/praisonai/profiler.py108 symbols
src/praisonai/tests/unit/test_templates.py107 symbols
src/praisonai-agents/praisonaiagents/agents/agents.py107 symbols
src/praisonai-agents/tests/unit/test_whatsapp_message_filtering.py101 symbols
src/praisonai-agents/praisonaiagents/workflows/workflows.py99 symbols
src/praisonai-agents/tests/unit/tools/test_edit_tools.py96 symbols

Dependencies from manifests, versioned

@ai-sdk/anthropic3.0.1 · 1×
@ai-sdk/google3.0.1 · 1×
@ai-sdk/openai3.0.1 · 1×
@modelcontextprotocol/sdk1.12.1 · 1×
@types/figlet1.7.0 · 1×
@types/jest29.5.14 · 1×
@types/node22.12.0 · 1×
@typescript-eslint/eslint-plugin8.22.0 · 1×
ai6.0.3 · 1×
axios1.8.4 · 1×
dotenv16.4.7 · 1×

Datastores touched

(mongodb)Database · 1 repos
praisonaiDatabase · 1 repos
dbDatabase · 1 repos
mydbDatabase · 1 repos
(mysql)Database · 1 repos
postgresDatabase · 1 repos
mydbDatabase · 1 repos
praisonaiDatabase · 1 repos

For agents

$ claude mcp add PraisonAI \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact