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

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

Built distribution (wheel)

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

Total release size: 17.4 kB

Release files / ory_crewai-1.10.1.tar.gz

Download URL ory_crewai-1.10.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4472a7f8f8143cd67d00f3a428eb54bb135a181d0dcecb58a20ea9cf4fe99c97
BLAKE2b-256 checksum
How to use checksums
72dcc24152653ccb40e31741e2ada078dc3ed5fe0ed9f7dd22eaca8ee126df67
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.1-py3-none-any.whl

Download URL ory_crewai-1.10.1-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6ab343c7920d4a3875f4a810d6a7ff0646689cb8b07e7894c269203f9ab628ff
BLAKE2b-256 checksum
How to use checksums
46b194ccdd13f5f4d4eb43f1c7a1067c7cd6342aae6012fb86e2a97e0e4ea3d4
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.1

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