Skip to main content

ory-openai-agents

Ory Agent Security for the OpenAI Agents SDK.

Authorizes every tool call against Ory Permissions via a tool-input guardrail, records 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())  # record completed calls
  • observe (default): denied tools still run; a permission.observe_deny activity event is recorded.
  • 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.

Metadata

Release files for ory-openai-agents 1.2.4

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-openai-agents 1.2.4
File Size Uploaded
ory_openai_agents-1.2.4.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ory-openai-agents 1.2.4
File Interpreter ABI Platform
ory_openai_agents-1.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / ory_openai_agents-1.2.4.tar.gz

Download URL ory_openai_agents-1.2.4.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
633f66e073996bed98132b44faf0b30a56bb89efb036f6140c2f021707eec3d8
BLAKE2b-256 checksum
How to use checksums
c8ae3bc889e0c3e189b2cfff211d972e4ffc3d4438fe5fe22067e106cfdfbd2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / ory_openai_agents-1.2.4-py3-none-any.whl

Download URL ory_openai_agents-1.2.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39bc6740021f365e3d0425159ae99e95d5810ec2a92d9a424aaaf9f5a4e4ac94
BLAKE2b-256 checksum
How to use checksums
67725c88b7d9b92264771d9fff591120202ef33d5701d633905098d45c5cf900
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

This release

1.2.4 This release

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.14.0

2 release files

0.13.9

2 release files

0.11.1

1 release file

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