What it is
The OpenAI Agents SDK is a small, open-source framework for building single-agent and multi-agent apps, released in March 2025 as the production-ready successor to OpenAI's experimental Swarm project. It deliberately has very few primitives (agents with instructions and tools, handoffs between agents, guardrails, sessions) plus built-in tracing, and leans on plain Python or TypeScript for everything else. It defaults to OpenAI's Responses API but also works with other model providers. An April 2026 update added a model-native harness and sandboxed execution so agents can work with files and code in isolated workspaces. It is still versioned 0.x (no 1.0 yet).
How it works
You define an Agent with instructions, a model and tools (any Python function, hosted tools like web search, or MCP servers), then hand it to the Runner, which loops: call the model, run any tool calls, repeat until a final output. Handoffs let one agent transfer the conversation to a specialist agent, guardrails validate inputs and outputs in parallel, and sessions keep conversation history between runs. Every run is traced so you can inspect each model call, tool call and handoff.
Key concepts
- Agent
- An LLM configured with instructions, tools and optional output type.
- Runner
- The loop that executes an agent - calling the model, running tools and handling handoffs until a final answer.
- Handoff
- Letting one agent delegate the rest of a task to another, more specialized agent.
- Guardrail
- A check that validates an agent's input or output and can stop the run if it fails.
- Session
- A persistent memory layer that keeps conversation history across runs.
- Tracing
- Built-in recording of every model call, tool call and handoff for debugging and evals.
Use it when
- You want a minimal, quick-to-learn agent framework and prefer plain code over a big abstraction layer.
- You build on OpenAI models and the Responses API and want first-party tracing, voice/realtime agents or sandboxed agents.
- You want simple multi-agent routing via handoffs (triage agent passing to specialists).
Look elsewhere when
- You need explicit graph-style control over complex, long-running workflows; a graph or durable-execution framework fits better.
- You want to own every step of the loop yourself: OpenAI suggests calling the Responses API directly in that case.
Who uses it
- Coinbase
Used the SDK to prototype and ship AgentKit, a toolkit that lets agents interact with crypto wallets and on-chain activity.
Evidence: openai.com
- Box
Built agents that combine web search with enterprise data in Box while respecting permissions.
Evidence: openai.com
- Oscar Health
Used the 2026 sandbox/harness release to automate a critical clinical-records workflow.
Evidence: openai.com
- Restateintegrates
Ships a durable-execution integration for the OpenAI Agents SDK.
Evidence: docs.restate.dev
- Temporal Technologiesintegrates
Official durable-execution integration for the OpenAI Agents SDK in the Python SDK.
Evidence: temporal.io
Milestones
- Model-native harness and native sandbox execution added (Python first), with built-in support for providers such as E2B, Modal, Daytona and Vercel (openai.com)
- AgentKit launched; Agent Builder workflows can be exported as Agents SDK code (openai.com)
- TypeScript/JavaScript version (openai-agents-js) released (github.com)
- Launched with the Responses API as the production-ready upgrade of Swarm (openai.com)
Start learning
openai.github.io
openai.github.io
github.com