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

Built distribution (wheel)

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

Total release size: 17.1 kB

Release files / ory_crewai-1.8.0.tar.gz

Download URL ory_crewai-1.8.0.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6838d2695714dfb7f9e98715e8ac1e6c17c19118327d2a6b5e732da79b4dc7bf
BLAKE2b-256 checksum
How to use checksums
bf3b047e25abe3a631e8022461aae1f753fee4f44633665cd659d74ccb41d54b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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.8.0-py3-none-any.whl

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