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.

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-1.0.0.tar.gz (4.8 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-1.0.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_openai_agents-1.0.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f220597d77eb3ced5534d704f0e1199ef1f7d40d8abe30d740f6a6fbf467ea3c
MD5 24aab19afe209598da015f216813e4af
BLAKE2b-256 f551b32050a60d39c8c28a3c1ef407d8b9d8cd07b9108363bea6c06eab02a339

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_openai_agents-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.7 {"installer":{"name":"uv","version":"0.12.7","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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fab298496e87e188b11b675f5f49079b8d3e5a59de2213869848793f7ef436f4
MD5 3f47175eea63d9adfc8f2e27ead4b69c
BLAKE2b-256 4e054a1c3bb11ae2b0b09ae64f1c42d31bc4b2c009d6e3ae9b5f5f27a0bf034a

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

0.14.0

2 files

0.13.9

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