Install
pip install "openai>=2.0" openai-agentsThe official production-ready replacement for Swarm. Lightweight primitives (Agent, Handoff, Guardrail, Session, Tool) with built-in tracing, MCP support, and provider-agnostic LLM access (OpenAI + 100+ via LiteLLM).
Install
pip install "openai>=2.0" openai-agentsVersion
v0.15.1 · May 2026 · Python 3.10+
Best for
Multi-agent handoffs, customer-service bots, tracing-first apps.
responses_websocket_session().asyncio.to_thread().from agents import Agent, Runner
agent = Agent( name="Assistant", instructions="You are a helpful assistant.",)
result = Runner.run_sync(agent, "What is 2 + 2?")print(result.final_output)Ready? Start Zero → Hero Step 1 →
| Date | Version | Changes | Reviewer |
|---|---|---|---|
| 2026-05-02 | 0.15.1 | Version bumped 0.15.0 → 0.15.1; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. Agent, Runner, Handoff, guardrail imports verified against installed 0.15.1 (.routine-envs/check-openai-0502). | Claude routine |
| 2026-05-01 | 0.15.0 | Version bumped 0.14.8 → 0.15.0; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. Agent, Runner, Handoff, guardrail imports verified against installed 0.15.0 (.routine-envs/check-openai-0501). | Claude routine |
| 2026-04-29 | 0.14.8 | Version bumped 0.14.7 → 0.14.8; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. Snippets verified against installed 0.14.8 (.routine-envs/main-py-0429). | Claude routine |
| 2026-04-28 | 0.14.7 | Version bumped 0.14.6 → 0.14.7; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. Snippets verified against installed 0.14.7. | Claude routine |
| 2026-04-25 | 0.14.6 | Version bumped 0.14.5 → 0.14.6; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. Snippets verified against installed 0.14.6. | Claude routine |
| 2026-04-24 | 0.14.5 | Version bumped 0.14.4 → 0.14.5; “What’s new” heading updated; comprehensive guide header updated; revision history entry added. | — |
| 2026-04-21 | 0.14.3 | Index redesigned with Zero → Hero + Jump-to-topic grid. | — |
| 2026-04-20 | 0.14.3 | Patch release; no breaking changes from 0.14.2. | — |
| April 16, 2026 | 0.14.0 | Sandbox agents; WebSocket transport; openai v2 requirement; Python 3.9 dropped. | — |
| November 2025 | 0.6.1 | Initial 2025 features; Swarm migration; MCP; guardrails; sessions. | — |
Note: TypeScript implementation lives at OpenAI Agents SDK (TypeScript).