Works with OpenClaw

Connect PraisonAI agents and OpenClaw over MCP, ACP and shared SKILL.md skills

OpenClaw is an MIT-licensed, self-hosted assistant gateway (source). It runs isolated agents, sub-agents and Swarm, and speaks MCP and ACP in both directions, so PraisonAI connects to it through standard protocols.

Diagram

MCP client

MCP client

ACP harness

OpenClaw Gateway

praisonai-mcp serve

PraisonAI Agent

openclaw mcp serve

praisonai acp

Quick Start

  1. Let a PraisonAI agent use OpenClaw
    python
    from praisonaiagents import Agent
    from praisonaiagents.mcp import MCP
    
    agent = Agent(
        instructions="You are a helpful assistant.",
        tools=MCP("openclaw mcp serve"),
    )
    agent.start("List my OpenClaw conversations")  # Prints the conversations OpenClaw exposes
  2. Let OpenClaw call PraisonAI
    bash
    pip install praisonai-mcp
    openclaw mcp add praisonai --command praisonai-mcp --arg serve --arg --transport --arg stdio

Integration Paths

OpenClaw → PraisonAI (MCP)

Run PraisonAI as an MCP server. Transports are stdio and http-stream.

bash
pip install praisonai-mcp
openclaw mcp add praisonai --command praisonai-mcp --arg serve --arg --transport --arg stdio

See PraisonAI MCP Package. OpenClaw reference: openclaw mcp.

PraisonAI → OpenClaw (MCP)

openclaw mcp serve exposes OpenClaw conversations to any MCP client.

python
from praisonaiagents import Agent
from praisonaiagents.mcp import MCP

agent = Agent(instructions="Summarise my chats", tools=MCP("openclaw mcp serve"))
agent.start("Summarise my latest conversation")  # Prints a short summary

OpenClaw reference: openclaw mcp.

ACP

praisonai acp is an ACP server. OpenClaw runs external ACP harnesses through acpx and accepts custom agents with --agent <command>.

See ACP. OpenClaw references: openclaw acp, ACP agents setup.

Skills

Both sides use SKILL.md with YAML frontmatter. PraisonAI parses metadata.openclaw into SkillRequirements.openclaw_hints.

See Hermes & OpenClaw Skills Import. OpenClaw reference: skill format.


Capabilities at a Glance

CapabilityPraisonAIOpenClaw
MCP serverpraisonai-mcp serveopenclaw mcp serve
MCP clientMCP(...) toolopenclaw mcp add (stdio, streamable-http)
ACPpraisonai acpopenclaw acp and /acp spawn
Multi-agentMulti-agent workflowsIsolated agents in one Gateway
Sub-agentsAgent handoffssessions_spawn, Swarm
Skills formatSKILL.mdSKILL.md
ChannelsBot GatewayGateway channels (docs)

Best Practices

Bind MCP to localhost

Use stdio, or bind http-stream to 127.0.0.1, so only local clients reach your tools.

One virtualenv per side

Install PraisonAI and OpenClaw in separate environments to avoid dependency clashes.

Pin versions

Pin praisonai-mcp and the OpenClaw release so protocol changes do not break the link.


Related