OpenAI Agents SDK (Python)
Official SDK for building and running agents with OpenAI models.
Model SDKs PyPI MIT
How OpenAI Agents SDK (Python) is used
OpenAI Agents SDK (Python) is a dependency in 10 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 220 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Anthropic Python SDK (113 projects). Projects that use it most often also use OpenAI Python Library (72.3%), python-dotenv (71.8%), Pydantic (51.4%).
OpenAI Agents SDK (Python) popularity over time
Gid Score 67: downloads 75, use in agent projects 62, GitHub stars 68, downloads trend 52 (each 0-100). How it is calculated.
Often used with OpenAI Agents SDK (Python)
| OpenAI Python Library | 72.3% of OpenAI Agents SDK (Python) projects · 18.3× more than average |
|---|---|
| python-dotenv | 71.8% of OpenAI Agents SDK (Python) projects · 7.8× more than average |
| Pydantic | 51.4% of OpenAI Agents SDK (Python) projects · 5.9× more than average |
| Requests | 44.1% of OpenAI Agents SDK (Python) projects · 6.5× more than average |
| Uvicorn | 40.5% of OpenAI Agents SDK (Python) projects · 5.3× more than average |
| FastAPI | 35.9% of OpenAI Agents SDK (Python) projects · 4.8× more than average |
| Model Context Protocol SDK (Python) | 33.2% of OpenAI Agents SDK (Python) projects · 4.1× more than average |
| NumPy | 30.0% of OpenAI Agents SDK (Python) projects · 5.1× more than average |
From all 220 projects in our scan that use OpenAI Agents SDK (Python), including the dependency samples.
By coding agent
| GitHub Copilot | 0.3% of projects set up for it |
|---|
Share of public repos configured for each agent that list OpenAI Agents SDK (Python) as a dependency.
Install
| Package | pip install openai-agents |
|---|---|
| Main stacks | Python (219), Next.js (1) |
| Example projects | onlyphantom/llm-python, qx-labs/agents-deep-research, agulli/atlas-agents, instavm/open-skills, sinanuozdemir/oreilly-ai-agents |
Alternatives to OpenAI Agents SDK (Python)
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside OpenAI Agents SDK (Python) are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
73 | 113 (7.0%) | 42.7M | 3,980 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
72 | 102 (6.3%) | 36.6M | 4,034 | Apache-2.0 |
| Claude Agent SDK pypi Python SDK for Claude AI with agent capabilities and tool support. |
63 | 22 (1.4%) | 7.8M | 8,304 | MIT |
| DashScope SDK pypi Official Python client SDK for Alibaba DashScope API to call language models. |
50 | 6 (0.4%) | 770K | — | Apache-2.0 |
| Mistral AI SDK pypi Official Python SDK for the Mistral AI API to call Mistral language models. |
47 | 4 (0.2%) | 3.3M | 774 | Apache-2.0 |
| Cohere pypi Official SDK for accessing Cohere's language models and APIs. |
49 | 2 (0.1%) | 2.6M | 406 | MIT |
More in Model SDKs: OpenAI AI SDK OpenAI Python Library Anthropic SDK Google Generative AI Hugging Face Hub LiteLLM Ollama