Devtoolwatch BoardGet it every Monday

OpenAI SDK review

OpenAI SDK is the official Python library for the OpenAI API, with typed sync and async clients generated from OpenAI's OpenAPI specification.

Updated Nov 1, 2026. Review written Oct 22, 2026 from the project's own sources; usage data refreshed every Monday.

TL;DR

OpenAI SDK is the official Python library for calling the OpenAI REST API from Python 3.10+ applications. It is for Python developers building on OpenAI models. It ships typed requests and responses, sync and async clients, streaming, Realtime WebSocket support, and workload identity authentication for cloud environments.

OpenAI SDK at a glance

Category
Model SDKs and gateways
Maintained by
OpenAI (organization, @openai on GitHub)
License
Apache 2.0
Language
Python, JavaScript, Shell
Repository
github.com/openai/openai-python
Website
pypi.org/project/openai
npm package
openai 7.41.0
PyPI package
openai 3.36.0
Latest release
v3.36.0 on GitHub, Oct 21, 2026
First published
Oct 25, 2020

What OpenAI SDK does

  • OpenAI SDK calls the Responses API and the Chat Completions API to generate text from OpenAI models.
  • OpenAI SDK offers synchronous and asynchronous clients built on HTTPX2, with optional aiohttp transport for async concurrency.
  • OpenAI SDK streams responses using Server-Sent Events in both sync and async clients.
  • OpenAI SDK connects to the Realtime API over WebSockets for text and audio input and output, plus function calling.
  • OpenAI SDK provides TypedDict request parameters and Pydantic response models with to_json() and to_dict() helpers.
  • OpenAI SDK auto-paginates list methods, fetching successive pages as you iterate.
  • OpenAI SDK supports workload identity authentication with short-lived tokens on Kubernetes, Azure, Google Cloud, X.509 mTLS, or custom providers.

How it works

You install the openai package and create an OpenAI or AsyncOpenAI client in Python code. The client reads OPENAI_API_KEY from the environment by default and sends requests to the OpenAI REST API over HTTPX2. Realtime sessions use the websockets library. The library is generated from OpenAI's OpenAPI specification.

How to install and start using OpenAI SDK

With pip

pip install openai

With aiohttp transport

pip install openai[aiohttp]

Requirements

  • Python 3.10 or later.
  • An OpenAI API key, or workload identity configuration in supported cloud environments.

First steps

  1. Install the package with pip install openai.
  2. Get an API key from the OpenAI platform and add OPENAI_API_KEY to a .env file, for example with python-dotenv.
  3. Create a client with OpenAI() and call client.responses.create with a model and input.
  4. Print response.output_text to see the generated text.

Who OpenAI SDK is for

  • Python developers building applications on OpenAI models through the Responses or Chat Completions API.
  • Teams running on Kubernetes, Azure, or Google Cloud that want short-lived tokens instead of long-lived API keys.
  • Developers building low-latency text and audio conversational apps with the Realtime API.

Limitations to know

  • OpenAI SDK targets the OpenAI API and requires Python 3.10 or later.
  • OpenAI SDK X.509 workload identity supports HTTP APIs only. Realtime and WebSockets are not included, and Azure clients do not support it.
  • OpenAI SDK raises no errors directly for Realtime error events, so your code must handle them.

Is OpenAI SDK growing? Usage data

In the week of Oct 25–31, 2026, OpenAI SDK ranked #180 on the Devtoolwatch Board and #7 in Model SDKs and gateways, with a momentum score of 47 out of 100. Its main package had about 141.3M downloads that week, +9% against its own 4-week average.

New GitHub stars per week for OpenAI SDK12 weeks from Aug 9, 2026: 62, 66, 76, 65, 75, 54, 62, 57, 76, 78, 94, 75 new stars, an average of 70 a week.Aug 9week of Oct 25
New GitHub stars per week for the last 12 weeks, from GitHub's stargazer history (today's stargazers by the week they starred).
Show the weekly numbers
New GitHub stars per week for OpenAI SDK
Week ofNew stars
Aug 9, 202662
Aug 16, 202666
Aug 23, 202676
Aug 30, 202665
Sep 6, 202675
Sep 13, 202654
Sep 20, 202662
Sep 27, 202657
Oct 4, 202676
Oct 11, 202678
Oct 18, 202694
Oct 25, 202675

On Hacker News

The Board ranks tools by four signals each week: new stars, new stars for the repo's size, added downloads and download growth beyond the market. How the ranking works.

OpenAI SDK alternatives

Other LLM SDKs and gateways on the Board in the week of Oct 25–31, 2026, by momentum:

Model SDKs and gateways ranked by momentum, the week of Oct 25–31, 2026
RankToolStarsDownloads/wk
#1thinking-orbsthinking-orbs is a React library of dotted, animated thought-orb loading indicators for AI and agent user interfaces.3.9k1.4M
#2HeadroomHeadroom compresses tool outputs, logs, files, and RAG chunks locally before they reach the LLM, as a library, proxy, or MCP server.78.5k125.8k
#3LiteLLMLiteLLM is an open source AI gateway and Python SDK that calls 100+ LLM providers through one OpenAI-format interface.62.5k23.1M
#4Honcho Memory library for building stateful agents7.9k–
#5Anthropic SDKAnthropic SDK is the official Python library for calling the Claude API from Python applications.4k111M
#6Hugging Face HubHugging Face Hub is the official CLI and Python client for downloading, uploading and managing models, datasets and Spaces on the…4k68.3M

All LLM SDKs and gateways, ranked

Recent OpenAI SDK releases

OpenAI SDK FAQ

Is OpenAI SDK free and open source?

Yes. OpenAI SDK's source code is on GitHub (openai/openai-python) under the Apache 2.0 license, so you can use it for free.

How do I install OpenAI SDK?

Run pip install openai. It needs Node.js >=22.0.0. The install section above has the other options from the project's README.

Is OpenAI SDK still maintained?

Yes. The openai/openai-python repository was last updated on Oct 22, 2026, and the latest release, v3.36.0 on GitHub, came out on Oct 21, 2026.

How popular is OpenAI SDK?

OpenAI SDK has 32k GitHub stars as of Nov 1, 2026. It gained 75 new stars in the week of Oct 25–31, 2026, against a 12-week average of 70 a week. Its main package had about 141.3M downloads that week, +9% against its own 4-week average. That made it #7 among LLM SDKs and gateways on the Devtoolwatch Board.

OpenAI SDK vs OpenAI Agents SDK: how do they compare?

OpenAI SDK and OpenAI Agents SDK are both tracked by Devtoolwatch. OpenAI SDK has 32k GitHub stars and OpenAI Agents SDK has 30.4k. In the week of Oct 25–31, 2026, OpenAI SDK's main package had 141.3M downloads and OpenAI Agents SDK's had 6.9M. OpenAI Agents SDK is a Python framework from OpenAI for building multi-agent workflows with tools, handoffs, guardrails, sessions and tracing. OpenAI Agents SDK review.

OpenAI SDK vs LangChain: how do they compare?

OpenAI SDK and LangChain are both tracked by Devtoolwatch. OpenAI SDK has 32k GitHub stars and LangChain has 148.8k. In the week of Oct 25–31, 2026, OpenAI SDK's main package had 141.3M downloads and LangChain's had 41.1M. LangChain review.

What are the best alternatives to OpenAI SDK?

Other LLM SDKs and gateways on the Devtoolwatch Board in the week of Oct 25–31, 2026, by momentum: thinking-orbs (#1), Headroom (#2), LiteLLM (#3), Honcho (#4), Anthropic SDK (#5). The alternatives table above has their numbers.

What is the difference between the OpenAI SDK and the OpenAI API?

The OpenAI SDK is a Python library that wraps the OpenAI REST API. It adds typed requests and responses, sync and async clients, streaming, auto-pagination, and authentication helpers. The REST API documentation lives on platform.openai.com.

Should I use the Responses API or Chat Completions in the OpenAI SDK?

The README names the Responses API as the primary API for interacting with OpenAI models. Chat Completions is the previous standard and is supported indefinitely. The OpenAI SDK supports both.

Does the OpenAI SDK support async code?

Yes. The OpenAI SDK has an AsyncOpenAI client you use with await. Its functionality is otherwise identical to the sync client. You can optionally use aiohttp as the transport for better concurrency.

Is there a TypeScript version of the OpenAI SDK?

Yes. OpenAI publishes an official TypeScript library on npm under the name openai. It requires Node.js 22.0.0 or later.

Can the OpenAI SDK authenticate without an API key?

Yes. The OpenAI SDK supports workload identity authentication with short-lived tokens. Supported options are Kubernetes service accounts, Azure managed identity, Google Cloud metadata, custom JWT providers, and X.509 mutual TLS.

Sources

  1. openai/openai-python on GitHub
  2. OpenAI SDK README
  3. openai on npm
  4. openai on PyPI
  5. OpenAI SDK website
  6. Release v3.36.0 (Oct 21, 2026)
  7. Release v3.35.1 (Oct 18, 2026)
  8. Release v3.35.0 (Oct 17, 2026)
  9. Hacker News: PyPI Was Subpoenaed
  10. Hacker News: Black, the uncompromising Python code formatter, is stable
  11. Hacker News: ChatML: ChatGPT API expects a structured format, called Chat Markup Language
  12. Devtoolwatch Board, the week of Oct 25–31, 2026

OpenAI SDK README badge

Maintainers can show the tool's weekly Board rank in their README:

Devtoolwatch badge for OpenAI SDK

[![Devtoolwatch](https://index.devtoolwatch.com/badge/openai-sdk.svg)](https://index.devtoolwatch.com/tools/openai-sdk/)

How this page is made: Devtoolwatch writes each review from the project's README, releases, package metadata and website, with an AI model, then checks every claim against the source it cites and drops what the sources don't support. The numbers come from Devtoolwatch's daily GitHub snapshots, GitHub's stargazer history, and the npm and PyPI download APIs. Spotted an error? Email [email protected].