Skip to main content

ory-crewai

Ory Agent Security for CrewAI.

Wraps your CrewAI tools so every call is authorized against Ory Permissions, audited, and tied to the user → agent identity — built on ory-argus.

pip install ory-crewai
from crewai import Agent
from ory_crewai import guard_tools

agent = Agent(role="researcher", tools=guard_tools([search, send_email]))

In enforce mode a denied tool raises an error that CrewAI surfaces to the LLM; the tool never runs. In observe mode (default) the tool runs and a permission.observe_deny activity event is recorded.

MCP tools

CrewAI MCP tools (MCPNativeTool and MCPToolWrapper) are checked as McpServer:<server> and McpTool:<server>:<tool> instead of plain tools. Tools you pass through guard_tools are identified there. Tools that Agent(mcps=[...]) resolves when the agent runs never pass through guard_tools, so register Ory's MCP tool hooks (CrewAI 1.x) once per process:

from crewai.mcp import MCPServerStdio
from ory_crewai import register_ory_mcp_hooks

unregister = register_ory_mcp_hooks()   # global before/after tool-call hooks
agent = Agent(
    role="researcher",
    tools=guard_tools([search]),
    mcps=[MCPServerStdio(command="npx", args=["-y", "@playwright/mcp"]), "https://mcp.example.com/mcp"],
)

The hooks gate only MCP tools that guard_tools has not wrapped, so no call is checked twice; other tools pass through untouched. In enforce mode a denied call is blocked before it runs and the model receives the denial. Each call reports the AMP slug the server was requested by, the server's raw tool name, and hashed fingerprints of the URL host or launched package, so Agent Security matches the server to its catalog. CrewAI derives its own server name from the URL path or the launch command and arguments, which can hold paths and keys, so a server without a slug is reported as unknown and identified only by its fingerprints. Fingerprints are hashes; no URL, command, or argument is sent.

For activity across paths that bypass the wrapped tools, also register the event listener:

from ory_crewai import ory_event_listener
listener = ory_event_listener()  # records ToolUsage activity

Credentials come from the shared ~/.config/ory-agent-plugins/config.json.

Metadata

Release files for ory-crewai 1.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ory-crewai 1.10.0
File Size Uploaded Provenance Actions
ory_crewai-1.10.0.tar.gz 10.2 kB Without provenance Details for ory_crewai-1.10.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ory-crewai 1.10.0
File Interpreter ABI Platform Actions
ory_crewai-1.10.0-py3-none-any.whl Python 3 none any Details for ory_crewai-1.10.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / ory_crewai-1.10.0.tar.gz

Download URL ory_crewai-1.10.0.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
49ed275731914e90e3b277c0287fdb96f955739457d3aeb2287de92291b6d299
BLAKE2b-256 checksum
How to use checksums
de22a5636826c2f13cd4cd975a7c5e1ceea18efdcc3726152f8407f70169dbac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ory_crewai-1.10.0-py3-none-any.whl

Download URL ory_crewai-1.10.0-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
057ec45a9e6d8dec02547c196fa9e820b3ce65b1264bbcfce15846d59f5dfcda
BLAKE2b-256 checksum
How to use checksums
1d153746ab635c304ac64e01c1c2736d0e5abf51db966b413677c5ecdefaa2e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for ory-crewai 1.10.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.10.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page