CrewAI Integration

Runtime Control for CrewAI Multi-Agent Workflows

Stop CrewAI agents from executing destructive actions without human approval. Full runtime control for multi-agent orchestration.

CrewAI orchestrates multiple agents acting in parallel

A single unchecked tool call can cascade across your entire crew. One agent's output triggers another's action, and before you know it, multiple production systems are affected. Multi-agent risk is compounded.

Without Runplane
Agent decidesTool executesNo control

Guard every agent's tool execution

Wrap CrewAI tool calls with Runplane. Every agent action passes through the policy engine before execution, preventing cascading failures and unauthorized operations.

main.py
from runplane import Shield
from crewai import Agent, Task, Crew
import os

runplane = Shield(api_key=os.environ["RUNPLANE_API_KEY"])

# Wrap CrewAI tool execution
async def guarded_tool_execute(tool_name, args, execute_fn):
    return await runplane.guard(
        tool_name,
        "crewai-agent",
        args,
        execute_fn
    )

# Use in your CrewAI tool
class ProtectedDatabaseTool:
    def _run(self, query: str):
        return guarded_tool_execute(
            "execute_query",
            {"query": query},
            lambda: self.db.execute(query)
        )

# Agent actions are now controlled
crew = Crew(
    agents=[researcher, writer],
    tasks=[research_task, write_task]
)

Multi-Agent Risk is Compounded

In a CrewAI workflow, one agent's output becomes another's input. A single uncontrolled action can trigger a chain reaction across your entire crew. Runplane adds a control boundary at every tool execution, breaking the cascade before it starts.

What You Get

Control multi-agent workflows

Prevent cascading tool failures

Per-agent and per-tool policies

How Runplane Works

1

Intercept

guard() intercepts the action before execution

2

Decide

Policy engine evaluates and returns a decision

3

Execute or Halt

Action runs, blocks, or waits for approval

ALLOW
REQUIRE_APPROVAL
BLOCK

Control Every Agent in Your Crew

Researcher Agent

Writer Agent

Analyst Agent

Executor Agent

Start free at runplane.ai

Add runtime control to your CrewAI agents in minutes. No credit card required.