SuperAPI AI Directory

openai-agents-python

The updated OpenAI Agents SDK introduces a model-native harness and native sandbox execution. Build agents that safely i…

Open website

About this tool

Purpose: The OpenAI Agents SDK is used to build multi-agent workflows. The framework is lightweight yet powerful, and is model-provider agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as more than 100 other LLMs. There is also a JavaScript/TypeScript version, Agents SDK JS/TS.

Main capabilities: Agents are LLMs with configurable instructions, tools, guardrails, and handoffs; Sandbox agents are preconfigured to work with containers, executing work over long time spans; Realtime agents build voice agents based on gpt-realtime-2.1 with full agent capabilities; Voice agents combine speech-to-text, agent workflows, and text-to-speech; Agents as tools / Handoffs can delegate tasks to other agents; Tools support functions, MCP, and hosted tools; Guardrails provide configurable safety checks for input and output; Human in the loop provides a mechanism to bring humans into agent runs; Sessions automatically manage conversation history across runs; Tracing has built-in run tracking to make it easy to view, debug, and optimize workflows.

Usage: Requires Python 3.10 or newer. The installation command is pip install openai-agents; for voice support install pip install 'openai-agents[voice]'; for Redis session support install pip install 'openai-agents[redis]'. If using uv, you can run uv add openai-agents, for voice support use uv add 'openai-agents[voice]', and for Redis session support use uv add 'openai-agents[redis]'. Before running the examples, you need to set the OPENAI_API_KEY environment variable. The SDK supports four main ways of running: text agents, sandbox agents, realtime agents, and voice agents. The sandbox example uses UnixLocalSandboxClient, which is suitable for macOS and Linux; on Windows you should instead use DockerSandboxClient with the openai-agents[docker] extension, or a hosted sandbox client.

Use cases: Suitable for application development that requires multi-agent collaboration, task delegation, long-duration work inside containers, voice and realtime interaction, human intervention, session history, and run tracing.

Limitations: The material does not provide specific fee or pricing information; regarding the contribution policy, pull requests are limited to repository collaborators, and PRs from non-collaborators are not accepted. Please submit issue reports and feature requests through GitHub issues, and for security vulnerabilities please follow SECURITY.md.