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.9.2

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.9.2
File Size Uploaded Provenance Actions
ory_crewai-1.9.2.tar.gz 10.1 kB Without provenance Details for ory_crewai-1.9.2.tar.gz

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / ory_crewai-1.9.2.tar.gz

Download URL ory_crewai-1.9.2.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3dc2f1bdeb8b3c6308a7b55a171a980b2a263b50bf86f267f0c75e2b0ec663b1
BLAKE2b-256 checksum
How to use checksums
e4fc45eae30d98e69c8e3d90574840ebc848426e65ff5ef35bd14a6398386c42
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.9.2-py3-none-any.whl

Download URL ory_crewai-1.9.2-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d42b61496980c97263a7328aac9313ae9c9f489c25ca9157c2ad0eabbf790982
BLAKE2b-256 checksum
How to use checksums
e439c1ccf22ee257e046845dcfda08efb1bf2e103c5736ec2b623f1ce7783d33
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.9.2

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.9.2 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