#1212th of 118 in Agent frameworks and SDKs
openai-python
Official Python client for the OpenAI REST API, sync and async
Documentation ↗
(opens in a new tab)Website ↗
(opens in a new tab)Repository on GitHub ↗
(opens in a new tab)
- Stars
- 32.1k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
30,152 on 21 Apr 202632,115 on 10 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
OpenAI is hiring: 825 open roles
Overview
Typed Python 3.10+ SDK for the OpenAI API, generated from the OpenAPI spec. It covers the Responses and Chat Completions APIs, streaming, Realtime over WebSocket, file uploads, pagination, webhook verification and workload identity auth. Sync and async clients run on HTTPX2, with an optional aiohttp transport.
Who it is for: Python developers building apps on the OpenAI API
Strengths
- Type definitions for all request params; responses are Pydantic models
- Sync and async clients with identical interfaces, plus optional aiohttp transport
- Workload identity auth for Kubernetes, Azure, GCP and X.509 mTLS instead of static keys
- Auto-paginating iterators and built-in webhook signature verification
Weaknesses
- Client for OpenAI's hosted API; it does not run or serve models locally
- Requires an OpenAI API key or workload identity credentials
- Custom HTTP clients need migration to HTTPX2 per the migration guide
- X.509 workload identity supports HTTP only, not Realtime or WebSockets
What it needs
- no GPU
- Needs OpenAI API, HTTPX2, websockets (Realtime), aiohttp (optional)
- Models: OpenAI hosted models via Responses API, Chat Completions API, Realtime API
Quick answers
Is openai-python open source?
Yes. Its code is on GitHub under the Apache-2.0 license.
Does openai-python need a GPU?
No, it runs without one.
Also in Agent frameworks and SDKs
See all 118| Rank | Project | Score |
|---|---|---|
| 1 | ppt-masterAgent skill that turns documents into natively editable PowerPoint decks | 95 out of 100 |
| 2 | openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing | 91 out of 100 |
| 3 | mastraTypeScript framework for building AI agents, workflows and MCP servers | 91 out of 100 |
| #4 | browser-usePython library that lets an LLM agent control a web browser | 90 out of 100 |
| #5 | copilotkitSDK for adding agent chat, generative UI and shared state to apps | 90 out of 100 |