Lightweight OpenAI framework for multi-agent workflows with handoffs, guardrails and tracing.
OpenAI Agents SDK PyPI
The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows. It is provider-agnostic, supporting the OpenAI Responses and Chat Completions APIs, as well as 100+ other LLMs.
NOTE:
Looking for the JavaScript/TypeScript version? Check out Agents SDK JS/TS.
Core concepts:
gpt-realtime-2.1 and full agent featuresExplore the examples directory to see the SDK in action, and read our documentation for more details.
To get started, set up your Python environment (Python 3.10 or newer required), and then install OpenAI Agents SDK package.
venv
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install openai-agents
For voice support, install with the optional voice group: pip install 'openai-agents[voice]'. For Redis session support, install with the optional redis group: pip install 'openai-agents[redis]'.
uv
If you're familiar with uv, installing the package would be even easier:
uv init
uv add openai-agents
For voice support, install with the optional voice group: uv add 'openai-agents[voice]'. For Redis session support, install with the optional redis group: uv add 'openai-agents[redis]'.
The SDK supports four primary ways to run agents. Set the OPENAI_API_KEY environment variable before running any of these examples.
Use a text Agent for workflows that do not need a persistent realtime connection or a sandbox workspace.
from agents import Agent, Runner
agent = Agent(name="Assistant", instructions="You are a helpful assistant")
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)
(For Jupyter notebook users, see hello_world_jupyter.ipynb)
Use a SandboxAgent when the agent needs to inspect files, run commands, apply patches, or preserve workspace state across longer tasks.
This example uses UnixLocalSandboxClient, which is supported on macOS and Linux. On Windows, use DockerSandboxClient with the openai-agents[docker] extra or a hosted sandbox client instead; see Sandbox clients for setup details. …
Agent framework · Agent frameworks / Agent SDK · Open Source · MIT · Python
Website https://openai.github.io/openai-agents-python/ · Repo https://github.com/openai/openai-agents-python · Docs https://openai.github.io/openai-agents-python/
30,631 stars · 5,035 forks · 46 open issues · pushed 2026-11-12 · verified 2026-11-12
Tags: ai-agents, framework, agent-sdk
What is OpenAI Agents SDK (Python)? OpenAI Agents SDK (Python) is a coding tool listed on Scriptiii AI Tools. Lightweight OpenAI framework for multi-agent workflows with handoffs, guardrails and tracing. Pricing: Free. Free to use. Best for: ai-agents, framework, agent-sdk.
Everything you need to know about OpenAI Agents SDK (Python)
Similar tools in Coding
Open-source vector database that stores objects and vectors with hybrid search and filtering.
Coding·Free