#1212th of 118 in Agent frameworks and SDKs

openai-python

Official Python client for the OpenAI REST API, sync and async

Stars
32.1k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 29 weeks+1,963
21 Apr 2026: 30,152 stars28 Apr 2026: 30,235 stars5 May 2026: 30,308 stars12 May 2026: 30,378 stars19 May 2026: 30,444 stars26 May 2026: 30,515 stars2 Jun 2026: 30,568 stars9 Jun 2026: 30,630 stars16 Jun 2026: 30,684 stars23 Jun 2026: 30,728 stars30 Jun 2026: 30,792 stars7 Jul 2026: 30,834 stars14 Jul 2026: 30,919 stars21 Jul 2026: 30,983 stars28 Jul 2026: 31,052 stars4 Aug 2026: 31,117 stars11 Aug 2026: 31,169 stars18 Aug 2026: 31,236 stars25 Aug 2026: 31,305 stars1 Sept 2026: 31,381 stars8 Sept 2026: 31,458 stars15 Sept 2026: 31,509 stars22 Sept 2026: 31,569 stars29 Sept 2026: 31,633 stars6 Oct 2026: 31,685 stars13 Oct 2026: 31,778 stars20 Oct 2026: 31,854 stars27 Oct 2026: 31,934 stars3 Nov 2026: 32,016 stars10 Nov 2026: 32,115 stars

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
Also in Agent frameworks and SDKs
RankProjectScore
1ppt-masterAgent skill that turns documents into natively editable PowerPoint decks Live demo ↗ (opens in a new tab)75.9k stars+15,456 (+26%) in 30 daysMIT95 out of 100
2openai-agents-pythonPython SDK for multi-agent workflows with handoffs, guardrails and tracing30.6k stars+689 (+2.3%) in 30 daysMIT91 out of 100
3mastraTypeScript framework for building AI agents, workflows and MCP servers29.5k stars+792 (+2.8%) in 30 dayscustom license91 out of 100
#4browser-usePython library that lets an LLM agent control a web browser Live demo ↗ (opens in a new tab)120.7k stars+3,290 (+2.8%) in 30 daysMIT90 out of 100
#5copilotkitSDK for adding agent chat, generative UI and shared state to apps38.6k stars+760 (+2.0%) in 30 daysMIT90 out of 100