Skip to main content

Ory Agent Security for CrewAI — per-tool authorization, tracing, and identity propagation by wrapping tools. Built on ory-argus.

Project description

ory-crewai

Ory Agent Security for CrewAI.

Wraps your CrewAI tools so every call is authorized against Ory Permissions, traced, 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 (ORY_PERMISSION_MODE=enforce) 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 span is recorded.

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

from ory_crewai import ory_event_listener
listener = ory_event_listener()  # traces ToolUsage events

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ory_crewai-0.11.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ory_crewai-0.11.1-py3-none-any.whl.

File metadata

  • Download URL: ory_crewai-0.11.1-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ory_crewai-0.11.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7fbe1a0fe360608aa86bc980adfb593085bf49a2ff2266e256eb46fa765a1694
MD5 64dddc8ac207edb99dff39ff59d64a60
BLAKE2b-256 2c9d75051dddf943ea0a61d929114a7998ac733a717a6a9d53265fe8a5f0edb0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page