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.14.0.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.14.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ory_openai_agents-0.14.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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.14.0.tar.gz
Algorithm Hash digest
SHA256 86803db3a5c5953a0241683953278f1c7f79507e21f807893e119eebe3d712ff
MD5 b93841486b9338733682b5e181fb09ea
BLAKE2b-256 f3b4effc3617011bc79ff144679137dbe9f451d229e7cc31c926153745d1b73d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ory_openai_agents-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","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.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19d3065f7febd402112aa838355bb6864b6b2a664ab67fad352166d08bf3ad3f
MD5 45a263a20b757d1342c11a28f4ba7455
BLAKE2b-256 fabfe55bce21f5452a74e2edc1f866fa25b3e05032eaa7ddb915ac5ef5edf0c2

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

This release

0.14.0 This release

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