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

Built distribution (wheel)

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

Total release size: 17.4 kB

Release files / ory_crewai-1.10.2.tar.gz

Download URL ory_crewai-1.10.2.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2ed706c7f09d57b8b0f0835221c429eef8492d4856aaab1ca5ae3c966f4151ae
BLAKE2b-256 checksum
How to use checksums
5d4a6df2cf92c3ba1e6a75c640831d38a016534914d2d95a481776defc88a140
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.2-py3-none-any.whl

Download URL ory_crewai-1.10.2-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb04658927395966f86259e7dbdde2fa2f1fe12a9963b233500b28e33dd6c97f
BLAKE2b-256 checksum
How to use checksums
d9a58cf009aac0fca025d334ef73b8b8d13a8b3b88dc1b108f8041a4d1c3f642
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","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.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.10.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