OpenAI Agents SDK Integration

OpenAI Agents SDK is a lightweight, production-ready framework designed by OpenAI for building, orchestrating, and scaling multi-agent AI workflows with built-in tracing, guardrails, and tool integration.

OpenAI logo

OpenAI Agents SDK

Benefits with Ory + OpenAI Agents SDK Integration

Ory integrates with OpenAI's OpenAI Agents SDK to provide security guardrails for developers building and running AI agents. Ory's harness hook executes identity and credential checks for every session and tool call, enforcing fine-grained authorization to permit or deny actions while logging all activity for complete audit trails. Teams can utilize Observe mode to monitor tool usage or Enforce mode to strictly restrict agents to authorized permissions.

The fastest way to get started with Ory Agent Security is to sign up for the Ory Network. Installing an Ory Agent Security SDK for your AI agent takes seconds. You simply install the package in your project directory.

pip install ory-openai-agents
View on PyPI (opens in a new tab)

Use Cases

Agent IAM

Secures OpenAI Agents SDK multi-agent workflows and tool calls with fine-grained authorization, identity checks, and audit trails.

Explore Agent IAM

CIAM

Accelerates embedding customer authentication and identity management into applications built with OpenAI Agents SDK using Ory best practices.

Explore CIAM

B2B IAM

Streamlines integrating enterprise SSO, role-based access control, and multi-tenant authorization into AI software built on OpenAI Agents SDK, scaling seamlessly with business growth.

Explore B2B IAM

Core Functionality

  1. Identity

    Verifies developers and OpenAI Agents SDK identities before session initiation across your ecosystem through a unified control plane.

  2. Authorization

    Enforces fine-grained, policy-based access control for every OpenAI Agents SDK tool execution and action.

  3. Shell

    Intercepts and secures terminal-level shell commands and local execution within OpenAI Agents SDK.

  4. Audit

    Logs complete audit trails for all session activity, tool invocations, and API calls.

  5. Rollout

    Supports seamless deployment with Observe mode for monitoring agent behavior and Enforce mode for strict permission enforcement.

  6. Security Control

    Provides vendor-agnostic governance across all AI tools, complete with instant token revocation to immediately cut off compromised sessions.