# PraisonAI

> Build autonomous multi-agent AI teams in a few lines of Python or JavaScript

- Category: Agents & Automation / Agent Frameworks & Builders
- Language: Python
- Licence: MIT
- Repository: https://github.com/MervinPraison/PraisonAI
- Website: https://docs.praison.ai
- Canonical page: https://ai-tldr.dev/tools/praisonai/

## In short

PraisonAI is an open-source framework for building AI agents that research, plan, and run tasks on their own. You can start with a single agent in a few lines of code, then scale up to a full team of agents that hand work off to each other. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in Python and licensed MIT.

## Overview

PraisonAI is an open-source framework for building AI agents that research, plan, and run tasks on their own. You can start with a single agent in a few lines of code, then scale up to a full team of agents that hand work off to each other.

It runs on more than 100 LLMs, including OpenAI, Anthropic, Google Gemini, and local models through Ollama, so you are not locked into one provider. Built-in memory, RAG, guardrails, and Model Context Protocol (MCP) tool support come ready to use.

PraisonAI ships as a Python SDK and a JavaScript SDK, plus a CLI, a visual flow builder, and chat and dashboard interfaces. You add only the pieces you need as your project grows.

## What it does

- Single-agent and multi-agent setups: give one agent a goal, or chain several agents that pass tasks between each other
- Works with 100+ LLMs out of the box, including OpenAI, Anthropic, Gemini, Groq, Mistral, and local Ollama models
- Built-in memory that works with zero extra dependencies, plus RAG for knowledge-backed answers
- Model Context Protocol (MCP) support over stdio, HTTP, WebSocket, and SSE to connect external tools
- Planning mode, self-reflection, agent handoffs, and guardrails for input and output validation
- Multiple ways to use it: Python SDK, JavaScript SDK, CLI, visual Flow builder, and chat UI

## Getting started

PraisonAI has a lightweight core SDK you can install with pip. Set your LLM API key, then create your first agent in a couple of lines. There is also a JavaScript SDK and a one-line installer.

1. Install the core SDK

   Install the lightweight agents package and set your model provider key.

```bash
pip install praisonaiagents
export OPENAI_API_KEY="your-api-key"
```

2. Run your first agent

   Give an agent instructions and a task, then let it work.

```python
from praisonaiagents import Agent

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.")
```

3. Build a multi-agent team

   Create several agents and run them together so one passes its findings to the next.

```python
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()
```

4. Use the JavaScript SDK

   Prefer Node? Install the JavaScript package instead.

```bash
npm install praisonai
```

## When to use it

- Run deep research that gathers information from multiple sources and turns it into structured insights
- Automate multi-step business workflows where agents hand off tasks, verify results, and self-correct
- Generate and refactor code with agents that understand your requirements
- Deploy 24/7 customer support bots on Telegram, Discord, or Slack with memory and knowledge-backed answers
- Build data pipelines that extract, transform, and analyze data from APIs, databases, and web sources
