openai-agents-python
llms.txt30k starsChanged 3 months agoMITView on GitHub
Official documentation for building production-ready agentic applications with the OpenAI Agents SDK, a Python toolkit that equips LLM-powered assistants with tools, guardrails, handoffs, sessions, tracing, voice, and realtime capabilities. The SDK focuses on a concise set of primitives so you can orchestrate multi-agent workflows without heavy abstractions. These pages explain how to install the library, design agents, coordinate tools, handle results, and extend the platform to new modalities.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about openai/openai-agents-python
- langgenius/dify“Proposal: Package manager migration from `poetry` to `uv`”GitHub · Mar 20, 2025 · 10 reactions
- @stevenheidel.com“2025 is the year of agents. we're excited to bring you a new SDK and new tools to the API to help you build …”Bluesky · Mar 11, 2025 · 9 likes
- OpenHands/OpenHands“Proposal: Minimal Python SDK”GitHub · Aug 22, 2025 · 7 reactions
- A Hacker News story“OpenAI rejects 1,200-line community PR for Google's A2A agent protocol”Hacker News · Oct 30, 2025 · 6 points
- A Hacker News story“OpenAI Agents SDK”Hacker News · Mar 11, 2025 · 6 points
The biggest 5 of 65 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 65
Talked about on GitHub, Bluesky and Hacker News (65 times).
On GitHub · 50
- Mar 20, 2025Proposal: Package manager migration from `poetry` to `uv` — langgenius/dify10 reactions · 4 comments
- Aug 22, 2025Proposal: Minimal Python SDK — OpenHands/OpenHands7 reactions · 16 comments
- Jan 23, 2026feat(provider): support responses api for `@ai-sdk/openai-compatible` providers — anomalyco/opencode5 reactions · 3 comments
- Sep 2, 2025feat: fix #272 add memory feature — openai/openai-agents-js3 reactions · 13 comments
- May 20, 2026feat: add opt-in recovery for missing function tools — openai/openai-agents-js2 reactions · 1 comment
45 more on GitHub
- Jan 14, 2026Pydantic 2.12+ Serialization Warnings with Claude Models in openai-agents when using LiteLLM — BerriAI/litellm2 reactions · 17 comments
- Mar 11, 2025OpenAI Agents Framework instrumentation — pydantic/logfire2 reactions · 5 comments
- Oct 24, 2026chore(deps): bump openai-agents from 0.23.1 to 0.24.0 in /.github/requirements — bmdhodl/agent471 reaction · 2 comments
- Oct 10, 2026chore(deps): bump openai-agents from 0.22.3 to 0.23.1 in /.github/requirements — bmdhodl/agent471 reaction · 1 comment
- Sep 20, 2026docs: clarify Unix-local execution limits — openai/openai-agents-js1 reaction · 2 comments
- Aug 15, 2026Fail closed on provider redirects — arnavsri993/kestrel-agent1 reaction
- Aug 15, 2026feat: add trusted process environment values — openai/openai-agents-js1 reaction · 2 comments
- Aug 15, 2026fix(realtime): handle non-finite audio rates — openai/openai-agents-js1 reaction · 1 comment
- Aug 7, 2026feat(models): preserve raw usage payloads — openai/openai-agents-js1 reaction · 1 comment
- Aug 5, 2026feat(core): pass run context to custom sessions — openai/openai-agents-js1 reaction · 1 comment
- Aug 4, 2026fix(openai-agents): Patch correct `run_single_turn_streamed` reference — getsentry/sentry-python1 reaction · 1 comment
- Aug 2, 2026fix(realtime): apply output guardrails to text deltas — openai/openai-agents-js1 reaction · 1 comment
- Aug 2, 2026feat: support MCP SDK v2 negotiation — openai/openai-agents-js1 reaction · 1 comment
- Aug 2, 2026fix: include all paginated MCP tools — openai/openai-agents-js1 reaction · 1 comment
- Jul 31, 2026feat: preserve sandbox environment secret references — openai/openai-agents-js1 reaction · 1 comment
- Jul 29, 2026feat(runtime): Establish authoritative agent lifecycle — MLGBJDLW/Nexa1 reaction
- Jul 22, 2026fix(extensions): pin and verify rclone sandbox installs — openai/openai-agents-js1 reaction · 1 comment
- Jul 21, 2026fix(core): parse SELinux permission markers — openai/openai-agents-js1 reaction · 1 comment
- Jul 20, 2026feat(extensions): add Vercel cloud bucket mounts — openai/openai-agents-js1 reaction · 1 comment
- Jul 6, 2026feat: add invalid final output recovery handler — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): distinguish remote mount edit guidance — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): parse special permission bits by position — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): await sibling guardrails after failures — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): preserve empty array tool outputs — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(core): avoid reevaluating resolved tool approvals — openai/openai-agents-js1 reaction · 1 comment
- Jun 23, 2026fix(realtime): prevent ambiguous tool dispatch — openai/openai-agents-js1 reaction · 1 comment
- Jun 12, 2026fix: expose sandbox error retryability metadata — openai/openai-agents-js1 reaction · 1 comment
- May 22, 2026feat: add SDK-only custom data for tool outputs — openai/openai-agents-js1 reaction · 1 comment
- May 10, 2026fix: align Chat Completions strict validation — openai/openai-agents-js1 reaction · 1 comment
- May 9, 2026fix(core): validate sandbox GitRepo subpaths — openai/openai-agents-js1 reaction · 1 comment
- Feb 19, 2026feat: support ImageContent in tool return value — livekit/agents1 reaction · 9 comments
- Feb 8, 2026OpenAI Agents integration crashes on startup with openai-agents >= 0.7.0 (AttributeError: AgentRunner._get_all_tools) — getsentry/sentry-python1 reaction · 2 comments
- Jan 22, 2026Missing extra_content.google.thought_signature — openai/openai-openapi1 reaction
- Dec 3, 2025Gemini 3 Pro: Multi-turn tool calls fail because thought_signature is not preserved via OpenAI compatibility layer — openai/codex1 reaction · 2 comments
- Nov 10, 2025Rely on OpenAI SDK for retry mechanism — Choice-of-Law-Dataverse/cold-case-analysis1 reaction
- Oct 31, 2025Subagent ideas — tidyverse/ellmer1 reaction · 4 comments
- Oct 29, 2025Please ship cloudflare/sandbox with stable Python ≥3.12 — cloudflare/sandbox-sdk1 reaction · 4 comments
- Oct 5, 2025Agentic workflow — Choice-of-Law-Dataverse/cold-case-analysis1 reaction
- Aug 11, 2025FunctionTool - Error Handling — nlpodyssey/openai-agents-go1 reaction
- Jul 9, 2025Allow agent to return logprobs — openai/openai-agents-js1 reaction · 3 comments
- Jun 20, 2025Plan for implementing OpenAI Agents SDK — InfinitIQ-Tech/GPT-Bridge1 reaction
- May 6, 2025Update pyproject.toml openai-agents minimal version to 0.0.14 — ed-donner/agents1 reaction · 1 comment
- Apr 6, 2025422 Validation failed when viewing most frequent contributor — github/github-mcp-server1 reaction · 2 comments
- Nov 23, 2026Request for unified action logging, replay, and audit across agent frameworks — JaredKlopstein/lacre0 reactions
- Nov 23, 2026Weekly spot-check 2026-11-23 — StefanKasamakov/ai-compass0 reactions
On Bluesky · 13
- Mar 11, 20252025 is the year of agents. we're excited to bring you a new SDK and new tools to the API to help you build your own agents.… — @stevenheidel.com9 likes and reposts
- Jun 28, 2025openai-agents-python A lightweight, powerful framework for multi-agent workflows. https://github.com/openai/openai-agents-python — @pythonhub.dev3 likes and reposts
- Apr 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 openai / openai-agents-python ⭐ 20,953 (+110) 🗒 Python A lightweight, powerful framework for… — @github-trending.bsky.social2 likes and reposts
- May 14, 2026🚀 GitHub Intelligence Drop gitleaks (Go • 🟢) ⭐ 26.9K → https://github.com/gitleaks/gitleaks openai-agents-python (Python • 🟢) ⭐ 26.3K →… — @githubfeed.bsky.social1 likes and repost
- May 12, 2026OpenAI just launched their Agents SDK with 25.6K stars at github.com/openai/open.... As someone who's built production harnesses for… — @therobertta.bsky.social1 likes and repost · 1 reply
8 more on Bluesky
- Mar 3, 2026https://github.com/openai/openai-agents-python — @tom-doerr.bsky.social1 likes and repost
- Jun 3, 2025They also released the Python version github.com/openai/opena... "It's a production-ready upgrade of our previous experimentation for… — @qianli.dev1 likes and repost · 1 reply
- May 14, 2025OpenAIのAgentSDK、早く試さないと… GitHub - openai/openai-agents-python: A lightweight, powerful framework for multi-agent workflows… — @mikoshibaq.bsky.social1 likes and repost
- Oct 20, 2026Stage 5: Patterns to production GenAI_Agents, 50+ agent tutorials (24k+ stars) github.com/NirDiamant/... OpenAI Agents SDK, open source… — @astrodevil1.bsky.social0 likes and reposts · 1 reply
- May 10, 2026Repo → https://github.com/openai/openai-agents-python 3. google/adk-python Google's Agent Development Kit. The official toolkit for… — @adityamitra.bsky.social0 likes and reposts · 1 reply
- Apr 30, 2026Source: github.com/openai/open.... The SDK is provider-agnostic — works with any LLM. That's a strategic choice. — @therobertta.bsky.social0 likes and reposts · 1 reply
- Apr 20, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 openai / openai-agents-python ⭐ 23,674 (+752) 🗒 Python A lightweight, powerful framework for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Jun 11, 2025GitHub repo → github.com/openai/open... — @arindam-1729.bsky.social0 likes and reposts · 1 reply
On Hacker News · 2
- Oct 30, 2025OpenAI rejects 1,200-line community PR for Google's A2A agent protocol6 points · 3 comments
- Mar 11, 2025OpenAI Agents SDK6 points · 1 comment
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/agents.mdAGENTS.md
- docs/ja/agents.mdAGENTS.md
- docs/ko/agents.mdAGENTS.md
- docs/zh/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms-full.txtllms.txt
- code-change-verificationSkill
- docs-syncSkill
- examples-run-analysisSkill
- final-release-reviewSkill
- implementation-final-reviewSkill
- implementation-kickoffSkill
- implementation-strategySkill
- maintainer-reviewSkill
- openai-knowledgeSkill
- pr-draft-summarySkill
- release-candidate-prepSkill
- runtime-behavior-probeSkill
- sensitive-logging-auditSkill
- test-coverage-improverSkill
- credit-note-fixerSkill
- prior-auth-packet-builderSkill
- playwrightSkill
- csv-workbenchSkill
The file
Files
# OpenAI Agents SDK Documentation > Official documentation for building production-ready agentic applications with the OpenAI Agents SDK, a Python toolkit that equips LLM-powered assistants with tools, guardrails, handoffs, sessions, tracing, voice, and realtime capabilities. The SDK focuses on a concise set of primitives so you can orchestrate multi-agent workflows without heavy abstractions. These pages explain how to install the library, design agents, coordinate tools, handle results, and extend the platform to new modalities. ## Start Here - [Overview](https://openai.github.io/openai-agents-python/): Learn the core primitives—agents, handoffs, guardrails, sessions, and tracing—and see a minimal hello-world example. - [Quickstart](https://openai.github.io/openai-agents-python/quickstart/): Step-by-step setup for installing the package, configuring API keys, and running your first agent locally. - [Example Gallery](https://openai.github.io/openai-agents-python/examples/): Task-oriented examples that demonstrate agent loops, tool usage, guardrails, and integration patterns. ## Core Concepts - [Agents](https://openai.github.io/openai-agents-python/agents/): Configure agent instructions, tools, guardrails, memory, and streaming behavior. - [Running agents](https://openai.github.io/openai-agents-python/running_agents/): Learn synchronous, asynchronous, and batched execution, plus cancellation and error handling. - [Sessions](https://openai.github.io/openai-agents-python/sessions/): Manage stateful conversations with automatic history persistence and memory controls. - [Results](https://openai.github.io/openai-agents-python/results/): Inspect agent outputs, tool calls, follow-up actions, and metadata returned by the runner. - [Streaming](https://openai.github.io/openai-agents-python/streaming/): Stream intermediate tool usage and LLM responses for responsive UIs. - [REPL](https://openai.github.io/openai-agents-python/repl/): Use the interactive runner to prototype agents and inspect execution step by step. - [Context strategies](https://openai.github.io/openai-agents-python/context/): Control what past messages, attachments, and tool runs are injected into prompts. - [Testing](https://openai.github.io/openai-agents-python/testing/): Test Agent, Sandbox, Realtime, and Voice workflows deterministically without provider requests. ## Coordination and Safety - [Handoffs](https://openai.github.io/openai-agents-python/handoffs/): Delegate tasks between agents with intent classification, argument passing, and return values. - [Multi-agent patterns](https://openai.github.io/openai-agents-python/multi_agent/): Architect teams of agents that collaborate, escalate, or specialize by capability. - [Guardrails](https://openai.github.io/openai-agents-python/guardrails/): Define validators that run alongside the agent loop to enforce business and safety rules. - [Tools](https://openai.github.io/openai-agents-python/tools/): Register Python callables as structured tools, manage schemas, and work with tool contexts. - [Model Context Protocol](https://openai.github.io/openai-agents-python/mcp/): Connect MCP servers so agents can request external data or actions through standardized tool APIs. ## Operations and Configuration - [Usage and pricing](https://openai.github.io/openai-agents-python/usage/): Understand token accounting, usage metrics, and cost estimation. - [Configuration](https://openai.github.io/openai-agents-python/config/): Tune model selection, retry logic, rate limits, and runner policies for production workloads. - [Visualization](https://openai.github.io/openai-agents-python/visualization/): Embed tracing dashboards and visualize agent runs directly in notebooks and web apps. ## Observability and Tracing - [Tracing](https://openai.github.io/openai-agents-python/tracing/): Capture spans for every agent step, emit data to OpenAI traces, and integrate third-party processors. ## Modalities and Interfaces - [Voice quickstart](https://openai.github.io/openai-agents-python/voice/quickstart/): Build speech-enabled agents with streaming transcription and TTS. - [Voice pipeline](https://openai.github.io/openai-agents-python/voice/pipeline/): Customize audio ingestion, tool execution, and response rendering. - [Realtime quickstart](https://openai.github.io/openai-agents-python/realtime/quickstart/): Stand up low-latency realtime agents with websocket transport (WebRTC is not available in the Python SDK). - [Realtime transport](https://openai.github.io/openai-agents-python/realtime/transport/): Decide between the default server-side WebSocket path and SIP attach flows, with the browser WebRTC boundary called out explicitly. - [Realtime guide](https://openai.github.io/openai-agents-python/realtime/guide/): Deep dive into session lifecycle, structured input, approvals, interruptions, and low-level transport control. ## API Reference Highlights - [Agents API index](https://openai.github.io/openai-agents-python/ref/index/): Entry point for class and function documentation throughout the SDK. - [Agent lifecycle](https://openai.github.io/openai-agents-python/ref/lifecycle/): Understand the runner, evaluation phases, and callbacks triggered during execution. - [Runs and sessions](https://openai.github.io/openai-agents-python/ref/run/): API for launching runs, streaming updates, and handling cancellations. - [Results objects](https://openai.github.io/openai-agents-python/ref/result/): Data structures returned from agent runs, including final output and tool calls. - [Tool interfaces](https://openai.github.io/openai-agents-python/ref/tool/): Create tools, parse arguments, and manage tool execution contexts. - [Testing APIs](https://openai.github.io/openai-agents-python/ref/testing/): Reference provider-neutral testing utilities for Agent model calls and Sandbox workflows. - [Tracing APIs](https://openai.github.io/openai-agents-python/ref/tracing/index/): Programmatic interfaces for creating traces, spans, and integrating custom processors. - [Realtime APIs](https://openai.github.io/openai-agents-python/ref/realtime/agent/): Classes for realtime agents, runners, sessions, and event payloads. - [Voice APIs](https://openai.github.io/openai-agents-python/ref/voice/pipeline/): Configure voice pipelines, inputs, events, and model adapters. - [Extensions](https://openai.github.io/openai-agents-python/ref/extensions/handoff_filters/): Extend the SDK with custom handoff filters, prompts, third-party adapters, and SQLAlchemy session memory. ## Models and Providers - [Model catalog](https://openai.github.io/openai-agents-python/models/): Overview of OpenAI models, non-OpenAI provider patterns, websocket transport, and third-party adapter guidance. ## Optional - [Release notes](https://openai.github.io/openai-agents-python/release/): Track SDK changes, migration notes, and deprecations. - [Japanese documentation](https://openai.github.io/openai-agents-python/ja/): Localized overview and quickstart for Japanese-speaking developers. - [Repository on GitHub](https://github.com/openai/openai-agents-python): Source code, issues, and contribution guidelines for the SDK.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

