Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

OpenAI Python Library vs Anthropic Python SDK

In 1,621 Python projects set up for AI coding agents, OpenAI Python Library is a dependency in 247 (15.2%) and Anthropic Python SDK in 115 (7.1%): OpenAI Python Library is 2.1× as common. Among repos created in the last 90 days that use a model sdks tool, OpenAI Python Library is in 50.0% and Anthropic Python SDK in 15.0%, against 57.7% and 27.3% of older ones. 65 projects list both, often a sign of a migration or of a monorepo with several apps.

Model SDKs PyPI Updated Nov 17, 2026

OpenAI Python Library15.2%
Anthropic Python SDK7.1%

Share of 1,621 Python projects set up for AI coding agents that list each one as a dependency.

Side by side

OpenAI Python LibraryAnthropic Python SDK
Agent projects that use it247115
Rank in model sdks#3#6
In new repos with a model sdks tool (last 90 days)50.0%15.0%
In older repos with one57.7%27.3%
Downloads, last 7 days90.3M49.8M
GitHub stars32.2K4,080
Last push to its repoNov 17, 2026Nov 16, 2026
LicenseApache-2.0Apache-2.0
Funding——
Projects that list both65

Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from PyPI.

By coding agent

Projects set up forPython reposOpenAI Python LibraryAnthropic Python SDK
Claude Code78213.7%10.1%
GitHub Copilot80514.0%5.0%
Cursor54816.1%6.8%
Gemini CLI8324.1%18.1%
OpenAI Codex7819.2%12.8%
OpenCode5318.9%17.0%
OpenClaw10432.7%16.3%
Devin Desktop6021.7%0%

Share of the Python repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.

OpenAI Python Library

Official Python SDK to call OpenAI APIs including GPT models and embeddings.

Most often used with it:

python-dotenv70.9% of its projects
Pydantic56.7% of its projects
Uvicorn51.8% of its projects
FastAPI48.6% of its projects
Requests44.9% of its projects

pip install openai

Anthropic Python SDK

Official Python library for calling Claude via the Anthropic API.

Most often used with it:

python-dotenv60.9% of its projects
OpenAI Python Library56.5% of its projects
Pydantic51.3% of its projects
FastAPI40.9% of its projects
Uvicorn40.9% of its projects

pip install anthropic

More matchups

Anthropic Python SDK vs Google GenAI Python SDKOpenAI Python Library vs Google GenAI Python SDKOpenAI vs Anthropic SDKAnthropic SDK vs Google Generative AIOpenAI vs Google Generative AI

How we count

Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.