> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Plugins & Extensions Overview

> How Tools, Skills, Connectors (MCP), and Plugins work together as four peer extension systems in PraisonAI

PraisonAI provides **four peer extension systems** — **Tools**, **Skills**, **Connectors (inbound MCP)**, and **Plugins** — so you can add executable actions, declarative playbooks, remote SaaS integrations, or runtime lifecycle hooks without mixing concerns.

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, MCP, plugins

plugins.enable(["logging"])  # Runtime lifecycle plugin

def get_order_status(order_id: str) -> str:
    """Look up an order status by ID."""
    return f"Order {order_id}: shipped"

agent = Agent(
    name="Support Agent",
    instructions="Answer customer questions accurately.",
    tools=[get_order_status],                                      # 1. Tool (executable function)
    skills=["./skills/refund-policy"],                             # 2. Skill (declarative SKILL.md)
    mcps=MCP("https://mcp.linear.app/mcp", oauth=True, server_name="linear"),  # 3. Connector (remote MCP)
)

agent.start("Check order #4821, explain our return window, and file a Linear follow-up.")
```

The user submits one request; the agent follows its Skill instructions, calls local Tools and remote Connectors, while active Plugins observe, rewrite, or guard lifecycle events.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
flowchart TB
    subgraph Capabilities["Direct Agent Capabilities"]
        T["🔧 Tools<br/>Executable functions<br/>praisonai tools"]
        S["📚 Skills<br/>Declarative SKILL.md<br/>praisonai skills / npx skills"]
        C["🔌 Connectors (Inbound MCP)<br/>Remote SaaS + OAuth 2.1<br/>praisonai connectors"]
    end

    subgraph Runtime["Runtime Lifecycle & Bundling"]
        P["🧩 Plugins & Hooks<br/>PluginScope · requires · backends<br/>praisonai plugins"]
    end

    subgraph Outbound["Reverse Direction (Outbound)"]
        O["🚀 Connect (Outbound MCP)<br/>Expose PraisonAI to 22 editors<br/>praisonai connect"]
    end

    A["🤖 PraisonAI Agent"] --> T
    A --> S
    A --> C
    A --> P
    P -. "can bundle via get_tools()" .-> T
    P -. "can bundle via get_skills()" .-> S
    A -. "served via praisonai-mcp" .-> O

    classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
    classDef cap fill:#189AB4,stroke:#7C90A0,color:#fff
    classDef plugin fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef out fill:#10B981,stroke:#7C90A0,color:#fff

    class A agent
    class T,S,C cap
    class P plugin
    class O out
```

> [!NOTE]
>
> **Tools, Skills, and Connectors work directly without writing a Plugin.** You only reach for the **Plugin** layer when you want lifecycle hooks (`before_llm`, `after_tool`, guardrails, policies), swappable backends (persistence, bot channels, compute providers), or an installable `pip` bundle that packages tools (`get_tools()`) and skills (`get_skills()`) together.

***

## Which Extension Should I Use?

Choose the right layer based on whether you are running code, teaching instructions, connecting a remote SaaS service, or intercepting the agent runtime.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph TB
    Q{What do you want to add?}
    Q -->|Connect external SaaS into PraisonAI| C[🔌 Connectors · praisonai connectors]
    Q -->|Expose PraisonAI inside Cursor / Claude Code| O[🚀 Connect · praisonai connect]
    Q -->|Teach procedures & domain rules| S[📚 Skills · SKILL.md]
    Q -->|Run a Python function or built-in tool| T[🔧 Tools · @tool]
    Q -->|Intercept lifecycle, guardrails, backends, or ship a bundle| G["🧩 Plugins & Hooks · Plugin"]

    classDef decision fill:#F59E0B,stroke:#7C90A0,color:#fff
    classDef target fill:#189AB4,stroke:#7C90A0,color:#fff
    classDef plugin fill:#6366F1,stroke:#7C90A0,color:#fff
    classDef ok fill:#10B981,stroke:#7C90A0,color:#fff

    class Q decision
    class C,S,T target
    class G plugin
    class O ok
```

| System | One-Line Role | Python API | CLI Command | Starting Point |
| - | - | - | - | - |
| **Connectors (Inbound MCP)** | Connect remote third-party SaaS MCP servers (GitHub, Linear, Notion, Stripe, …) with OAuth 2.1 | `MCP("https://...", oauth=True)` | `praisonai connectors` | [List of Connectors](https://praison.ai/docs/features/connectors-list.md) · [Remote MCP Connectors](https://praison.ai/docs/features/connectors.md) |
| **Skills** | Declarative `SKILL.md` playbooks loaded via progressive disclosure | `Agent(skills=["./dir"])` | `praisonai skills` · `npx skills add` | [Agent Skills](https://praison.ai/docs/features/skills.md) · [Skills vs Tools](https://praison.ai/docs/features/skills-vs-tools.md) |
| **Tools** | Executable functions — 140+ built-ins plus custom `@tool` callables | `Agent(tools=[fn])` | `praisonai tools` | [Tools Overview](https://praison.ai/docs/features/tools.md) · [Custom Tools](https://praison.ai/docs/tools/tools.md) |
| **Plugins & Hooks** | Runtime lifecycle hooks, `PluginScope`, guardrails, swappable backends, and `pip` capability bundles (`TOOL`, `HOOK`, `SKILL`, `POLICY`, `GUARDRAIL`, `INTEGRATION`) | `plugins.enable()` · `PluginManager` | `praisonai plugins` | [Plugins](https://praison.ai/docs/features/plugins.md) · [Hooks](https://praison.ai/docs/features/hooks.md) |
| **Connect (Outbound MCP)** | Opposite direction: register PraisonAI's MCP server inside 22 editors & coding agents | `praisonai-mcp serve` | `praisonai connect <client>` | [praisonai connect](https://praison.ai/docs/features/praisonai-connect.md) · [Add to Your Agent](https://praison.ai/docs/features/add-to-your-agent.md) |

***

## Quick Start

**1. Connect a remote SaaS service (Inbound Connector)**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai connectors add github --auth
praisonai mcp sync github
```

**2. Add a Skill**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
npx skills add https://praison.ai/docs
```

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent

agent = Agent(
    instructions="Review pull requests carefully.",
    skills=["./skills/code-review"],
)
agent.start("Review this diff for edge cases")
```

**3. Add a Tool**

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent

def convert_usd_to_eur(amount: float) -> str:
    """Convert a USD amount to EUR."""
    return f"{amount * 0.92:.2f} EUR"

agent = Agent(
    instructions="Help with currency conversions.",
    tools=[convert_usd_to_eur],
)
agent.start("Convert 150 USD to EUR")
```

**4. Install or Load a Plugin**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai plugins add praisonai-my-plugin
```

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, discover_and_load_plugins

discover_and_load_plugins()

agent = Agent(name="Assistant", instructions="Help users")
agent.start("Hello!")
```

***

## Browse Every Section

> [card] [Connectors & MCP](https://praison.ai/docs/features/connectors.md)
>
> 10-vendor remote MCP catalog, OAuth 2.1, custom remote servers, and outbound editor connect.

> [card] [Skills](https://praison.ai/docs/features/skills.md)
>
> Author SKILL.md playbooks, install remote skill repos, and compose skill bundles.

> [card] [Tools](https://praison.ai/docs/features/tools.md)
>
> Explore 140+ built-in tools, custom @tool functions, streaming outputs, and tool search.

> [card] [General Plugins & Hooks](https://praison.ai/docs/features/plugins.md)
>
> Build single-file or pip plugins, lifecycle hooks, guardrails/policies, and swappable backends.

***

## Best Practices

> [accordion] Start with a Tool, Skill, or Connector before writing a Plugin
>
> Use a plain function (`tools=[fn]`) for actions, a `SKILL.md` (`skills=[...]`) for instructions, and `praisonai connectors add` for remote SaaS APIs. Reach for a `Plugin` when you need cross-cutting lifecycle hooks, guardrails/policies, swappable backends, or a bundled `pip` package.

> [accordion] Keep inbound connectors and outbound connect separate
>
> Use `praisonai connectors` when your PraisonAI agent needs to call GitHub, Linear, Notion, or Stripe. Use `praisonai connect` when Cursor, Claude Code, Codex, or VS Code needs to call your PraisonAI agents.

> [accordion] Scope tools and enforce plugin trust gates in production
>
> Pass `--allow` on remote connectors, `--tools` on outbound MCP servers, and use `plugins.enable([...])` or `.praisonai/config.yaml` allow-lists so untrusted project plugins never auto-load silently.

***

## Related

> [card] [Add PraisonAI to Your Agent](https://praison.ai/docs/features/add-to-your-agent.md)
>
> Install PraisonAI skills and MCP tools in Claude Code, Cursor, Codex, and ChatGPT

> [card] [Bot Platform Plugins](https://praison.ai/docs/features/bot-platform-plugins.md)
>
> Register custom messaging channel adapters via Python entry points

> [card] [Plugins CLI](https://praison.ai/docs/cli/plugins.md)
>
> List, enable, disable, add, and reload plugins from the command line

> [card] [Skills & Tools CLI](https://praison.ai/docs/cli/skills.md)
>
> Manage skills and built-in tools from the terminal


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.