Skip to content

CrewAI

Guard a CrewAI tool so Kaizen inspects every call. When Kaizen blocks, the tool does not run and the agent receives a refusal instead.

from kaizen_security import Kaizen
from kaizen_security.integrations.crewai import guard_tool

kz = Kaizen(api_key="kz_live_...", agent="research-crew")

safe_tool = guard_tool(kz, my_tool)
# give safe_tool to your agent in place of my_tool

guard_tool wraps the tool's run method. A blocked call returns Blocked by Kaizen: <reason> and the underlying tool is never executed.

Install:

pip install kaizen-security crewai