Ory Agent Security for the OpenAI Agents SDK — per-tool authorization, tracing, and identity propagation via a tool-input guardrail. Built on ory-argus.
Project description
ory-openai-agents
Ory Agent Security for the OpenAI Agents SDK.
Authorizes every tool call against Ory Permissions via a tool-input guardrail, traces
invocations, and propagates user → agent identity — built on
ory-argus.
pip install ory-openai-agents
from agents import Agent, Runner
from ory_openai_agents import ory_tool_input_guardrail, ory_run_hooks
agent = Agent(
name="assistant",
tools=[search, send_email],
tool_input_guardrails=[ory_tool_input_guardrail()], # gate every tool call
)
Runner.run(agent, "…", hooks=ory_run_hooks()) # trace completed calls
- observe (default): denied tools still run; a
permission.observe_denyspan is recorded. - enforce (
ORY_PERMISSION_MODE=enforce): denied tools are rejected — the model receives the denial and the tool never executes.
Credentials are read from the shared ~/.config/ory-agent-plugins/config.json, so a login
from any Ory harness or ory-argus login is reused automatically.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ory_openai_agents-0.11.1-py3-none-any.whl.
File metadata
- Download URL: ory_openai_agents-0.11.1-py3-none-any.whl
- Upload date:
- Size: 3.8 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d4b3f21ed9e570ff611c6f84f7c2d9f2b40832c485a569a025fa83cdcce611b
|
|
| MD5 |
d12d61394b07b0c85a45e3a61d136e62
|
|
| BLAKE2b-256 |
e682fdca24cb8e298a9a3c21f7631e134e14567158ce3c7ff975f2a28b5f6d51
|