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, 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_deny span 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.

Download files

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

Source Distribution

ory_openai_agents-0.13.9.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

ory_openai_agents-0.13.9-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ory_openai_agents-0.13.9.tar.gz.

File metadata

  • Download URL: ory_openai_agents-0.13.9.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for ory_openai_agents-0.13.9.tar.gz
Algorithm Hash digest
SHA256 8bf9ee0ce4455493e640f4faeb2ae0e5c12a6a232b1e532cdbe710375b2b07c9
MD5 96eb5e27277287c2a7db3a5b1e51dd4a
BLAKE2b-256 828b0b8a07247ef9a2f4cef088f91843e6dfcf410fc843eaf6da0eba93e3d298

See more details on using hashes here.

File details

Details for the file ory_openai_agents-0.13.9-py3-none-any.whl.

File metadata

  • Download URL: ory_openai_agents-0.13.9-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","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}

File hashes

Hashes for ory_openai_agents-0.13.9-py3-none-any.whl
Algorithm Hash digest
SHA256 41e219e13e54d3fc852dcff3b4e081ef16eb6404019c3c818e364f7d11eaaab5
MD5 fc89211b008829808efe30e1a5652bb7
BLAKE2b-256 bdaae5c3e19ae8fe8187c5b2f10e6c7ada86cec6838582c9929996860aa0c2eb

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

1.0.0

2 files

0.14.0

2 files

This release

0.13.9 This release

2 files

0.11.1

1 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