Blog

/Research

The AI SDK market, by downloads

Anthropic's SDK out-downloaded OpenAI's on npm in October, 176.5M to 159.7M, but not without dependency pulls, and not on PyPI. Our registry count.

Cover for The AI SDK market, by downloads: a terminal window with a line chart of monthly npm downloads of @anthropic-ai/sdk and openai from January 2023, Anthropic's line ahead from September 2026, beside an npm pane for 1–29 October 2026 (@anthropic-ai/sdk 176.5M, openai 159.7M, noting OpenAI still leads once dependency pulls are removed; Vercel AI SDK ai 115.4M, 4.9× LangChain.js) and a PyPI pane (openai 336.7M, anthropic 181.4M).
On this page

Every app that calls a model starts with one line in a package file: openai, @anthropic-ai/sdk, ai, langchain-core. Which line it is says something about who developers build on, and the registries publish how often each package is fetched. The usual reading of those counts is a scoreboard: Anthropic is winning, OpenAI is winning, LangChain is dead, LangChain is everywhere. Most of those readings come from a single chart on a stats site, for one registry, without asking what else pulls the package in.

We pulled daily download counts from npm and PyPI for about 50 AI packages in each registry, from January 2023 to the end of October 2026, and compared the same window, 1–29 October, in every year. Then we removed what we could of the noise: downloads that are really dependencies of other packages, CI runs, mirrors, and a change PyPI made to its own counting on 24 August 2026 that cut a third of all its download counts overnight. Downloads are not users, installs or apps. They are still the best public trace of what code is being built, as long as you read them with their plumbing.

Key findings

  1. 1
    Anthropic's SDK passed OpenAI's on npm. @anthropic-ai/sdk was downloaded 176.5M times in 1–29 October 2026, against 159.7M for openai, and has led on a rolling seven-day basis every day since 24 September. A year earlier it got 0.35 downloads for every OpenAI one.
  2. 2
    Who "leads" depends on who pulls whom. Strip out the downloads pulled in by other packages that require each SDK (the Claude Agent SDK and LangChain's Anthropic package on one side, the OpenAI Agents SDK and LangChain's OpenAI package on the other) and OpenAI still leads on npm: at least 137.3M against 124.2M.
  3. 3
    Python is still OpenAI's. On PyPI, openai had 336.7M downloads in 1–29 October 2026 and anthropic 181.4M, 0.54 to one. That ratio rose every month of 2026 on a like-for-like basis, from 0.30 in January. 59% of Anthropic's PyPI downloads come from CI, against 41% of OpenAI's.
  4. 4
    JavaScript's default framework is the Vercel AI SDK. ai had 115.4M npm downloads in October, 4.9× LangChain.js. Inside it, the OpenAI and Anthropic adapters are level, at 20.6% and 19.9% of provider-adapter downloads. In July 2024 OpenAI's adapter was 65.3%.
  5. 5
    LangChain is growing and losing share at once. Its share of framework downloads fell from 59% to 12% on npm and from 87% to 49% on PyPI between June 2024 and October 2026 (the PyPI start is on its old counting basis; like-for-like in 2026 it fell from 62% to 49%). langchain-core still grew to 150.1M downloads a month, at least 2.2× a year earlier.
  6. 6
    The vendors' own agent SDKs are the new framework layer. The Claude Agent SDK went from under a million npm downloads in October 2025 to 46.4M (×53), plus 33.3M on PyPI. The OpenAI Agents SDK had 7.5M on npm and 15.3M on PyPI.
  7. 7
    JavaScript is catching up with Python. npm's share of provider-SDK downloads rose from 16% to 39% in a year (from about 24% if last year's PyPI figure is corrected for its old counting). Anthropic's SDK is now downloaded about as often from npm as from PyPI.
  8. 8
    Download counts are fragile. When PyPI stopped counting metadata requests on 24 August 2026, all of PyPI's daily downloads fell 33%. Before that, 89.5% of LiteLLM's July "downloads" were metadata reads, not installs.

176.5M vs 159.7M

npm downloads of Anthropic's vs OpenAI's SDK, 1–29 Oct 2026. Minus dependency pulls, OpenAI still leads (≥137.3M vs ≥124.2M)

Source: host0 analysis of npm data

336.7M vs 181.4M

PyPI downloads of OpenAI's vs Anthropic's SDK, 1–29 Oct 2026

Source: host0 analysis of PyPI data

4.9×

Vercel AI SDK (ai, 115.4M) vs LangChain.js npm downloads, Oct 2026

Source: host0 analysis of npm data

59% → 12%

LangChain's share of npm framework downloads, Jun 2024 to Oct 2026 (PyPI, like-for-like 2026: 62% → 49%)

Source: host0 analysis of npm and PyPI data

Anthropic passed OpenAI on npm#

For most of the last three years the two SDKs were not close on npm. In January 2024 openai was downloaded 6.2M times and @anthropic-ai/sdk 1.3M. Both grew, but Anthropic's growth turned steep in spring 2026: from 24.1M in February to 85.4M in May. Its first seven-day lead came on 31 May 2026. From 24 September it has led every day.

OpenAI vs Anthropic SDK downloads on npm

Monthly npm downloads of openai and @anthropic-ai/sdk, January 2024 to September 2026

OpenAI vs Anthropic SDK downloads on npm
Seriesxy
openaiJan 20246.2M
openaiFeb 20246.4M
openaiMar 20247M
openaiApr 20247.3M
openaiMay 20247.9M
openaiJun 20248.1M
openaiJul 20248.9M
openaiAug 20249.6M
openaiSep 20249.5M
openaiOct 202410.2M
openaiNov 20249.8M
openaiDec 20249.4M
openaiJan 202511.2M
openaiFeb 202512.8M
openaiMar 202514.9M
openaiApr 202516.3M
openaiMay 202517.8M
openaiJun 202520.4M
openaiJul 202523.3M
openaiAug 202526.5M
openaiSep 202528.6M
openaiOct 202532.8M
openaiNov 202531.7M
openaiDec 202534M
openaiJan 202642.2M
openaiFeb 202650.1M
openaiMar 202671.4M
openaiApr 202678.8M
openaiMay 202695.2M
openaiJun 2026112M
openaiJul 2026129.8M
openaiAug 2026148.1M
openaiSep 2026162.8M
@anthropic-ai/sdkJan 20241.3M
@anthropic-ai/sdkFeb 20241.3M
@anthropic-ai/sdkMar 20241.7M
@anthropic-ai/sdkApr 20242.3M
@anthropic-ai/sdkMay 20242.5M
@anthropic-ai/sdkJun 20242.3M
@anthropic-ai/sdkJul 20242.2M
@anthropic-ai/sdkAug 20242.3M
@anthropic-ai/sdkSep 20242.4M
@anthropic-ai/sdkOct 20242.6M
@anthropic-ai/sdkNov 20242.5M
@anthropic-ai/sdkDec 20242.6M
@anthropic-ai/sdkJan 20253.2M
@anthropic-ai/sdkFeb 20253.9M
@anthropic-ai/sdkMar 20254.7M
@anthropic-ai/sdkApr 20255.2M
@anthropic-ai/sdkMay 20255.9M
@anthropic-ai/sdkJun 20257.5M
@anthropic-ai/sdkJul 20258.4M
@anthropic-ai/sdkAug 20259.4M
@anthropic-ai/sdkSep 20259.8M
@anthropic-ai/sdkOct 202511.6M
@anthropic-ai/sdkNov 202511.9M
@anthropic-ai/sdkDec 202513.3M
@anthropic-ai/sdkJan 202617.2M
@anthropic-ai/sdkFeb 202624.1M
@anthropic-ai/sdkMar 202640.7M
@anthropic-ai/sdkApr 202663.8M
@anthropic-ai/sdkMay 202685.4M
@anthropic-ai/sdkJun 2026101.1M
@anthropic-ai/sdkJul 2026117.1M
@anthropic-ai/sdkAug 2026142.8M
@anthropic-ai/sdkSep 2026165.4M
September 2026 was the first full month Anthropic led: 165.4M downloads against 162.8M. In 1–29 October it was 176.5M against 159.7M. Daily averages from September to October rose 10.4% for Anthropic and 1.5% for OpenAI.

Source: host0 analysis of the npm downloads API

Anthropic's SDK went from 0.26 downloads per OpenAI download in October 2024 to 0.35 in October 2025, 0.81 in April 2026 and 1.10 in October 2026. Google's two JavaScript SDKs together are at 0.65 of OpenAI's.

Code that depends on each SDK is a different picture. GitHub counts about 425,639 public repositories that depend on npm openai and 81,294 that depend on @anthropic-ai/sdk, 5.2× as many; GitHub itself calls these counts approximate. Downloads track how often code is built and run, and Anthropic's SDK is now built and run more often, but OpenAI's is in more public repositories.

Who pulls whom#

A package is downloaded every time anything installs it, including another package that lists it as a dependency. On npm, the Claude Agent SDK declares @anthropic-ai/sdk as a peer dependency, which npm installs automatically: every Claude Agent SDK install is also an Anthropic SDK download. LangChain's @langchain/anthropic and @langchain/openai do the same for each vendor, and @openai/agents requires openai.

We subtracted the October downloads of those packages from each SDK. If two of them sit in the same install, the SDK is fetched once, so this over-corrects, and what's left is a floor.

npm downloads with and without dependency pulls

Downloads, 1–29 October 2026; 'minus dependents' subtracts the packages named in the caption

npm downloads with and without dependency pulls
LabelValue
@anthropic-ai/sdk, all downloads176.5M
openai, all downloads159.7M
openai, minus dependents≥137.3M
@anthropic-ai/sdk, minus dependents≥124.2M
Highlighted: the floors. For OpenAI we subtracted @langchain/openai and @openai/agents (14.0% of its downloads); for Anthropic, @langchain/anthropic and @anthropic-ai/claude-agent-sdk (29.6%). The ratio goes from 1.10 to 0.90. Thousands of smaller dependents aren't subtracted on either side.

Source: host0 analysis of npm downloads and registry dependency metadata

What's left for Anthropic is still large: at least 124M downloads a month that neither the Agent SDK nor LangChain explains, and nobody publishes the rest of the attribution. Two things we checked don't inflate it: the Claude Code CLI bundles its dependencies, and the Vercel AI SDK's Anthropic adapter calls the API over HTTP without the SDK. A plausible source is CI: Anthropic's official GitHub Action for Claude Code installs the Agent SDK, and so the Anthropic SDK, but we can't measure how much.

The most downloaded package in the whole set isn't an SDK for any model. The Model Context Protocol's TypeScript SDK, @modelcontextprotocol/sdk, had 245.8M npm downloads in October, more than any provider SDK, and the Python mcp package had 275.0M, more than anthropic. Most of that is dependency traffic too: the Claude Agent SDK, Mistral's JavaScript SDK, the OpenAI Agents SDK for Python, CrewAI and Strands all pull it in. We covered the protocol itself in the state of MCP.

Across both registries, October's totals were 496M downloads for OpenAI's SDKs, 358M for Anthropic's and 265M for Google's (old and new SDKs added together). Downloads also aren't spend: Menlo Ventures, an investor in Anthropic, estimated from a survey of 495 US enterprise buyers that Anthropic took 40% of enterprise LLM spend in 2025 and OpenAI 27%.

Python is still OpenAI's#

On PyPI the gap is wide. In 1–29 October 2026 openai was downloaded 336.7M times, anthropic 181.4M and google-genai 151.8M. Anthropic gets 0.54 downloads for every OpenAI one.

PyPI's numbers need care before 24 August 2026, when PyPI changed what it counts (more below). From January 2026 we can remove the old metadata requests row by row, which gives a like-for-like series for this year. On it, Anthropic gained on OpenAI every month.

Anthropic SDK downloads per OpenAI SDK download on PyPI

anthropic ÷ openai, artifact downloads only (metadata requests removed), 2026; January from the 8th, October 1–30

Anthropic SDK downloads per OpenAI SDK download on PyPI
Seriesxy
All downloadsJan 20260.3
All downloadsFeb 20260.33
All downloadsMar 20260.37
All downloadsApr 20260.42
All downloadsMay 20260.44
All downloadsJun 20260.44
All downloadsJul 20260.48
All downloadsAug 20260.49
All downloadsSep 20260.5
All downloadsOct 20260.54
Excluding CIJan 20260.27
Excluding CIFeb 20260.28
Excluding CIMar 20260.32
Excluding CIApr 20260.35
Excluding CIMay 20260.36
Excluding CIJun 20260.35
Excluding CIJul 20260.38
Excluding CIAug 20260.35
Excluding CISep 20260.34
Excluding CIOct 20260.37
Metadata requests are removed before 24 August, so PyPI's counting change doesn't break this series. Counting every download, Anthropic went from 0.30 to 0.54 of OpenAI in ten months. Without the downloads the installer flags as CI, it went from 0.27 to 0.37, and has been flat since April. The gain is largely in automated runs.

Source: host0 analysis of the PyPI download logs (ClickHouse public copy)

The CI share is the biggest difference between the two. PyPI's logs record whether the installer reported a CI environment, and 59.2% of Anthropic's October downloads did, against 40.5% of OpenAI's. In February the two were 42.3% and 32.7%. Several agent SDKs (Pydantic AI, the Claude Agent SDK, OpenAI's Agents SDK, LangGraph) are among the most CI-heavy packages we measured; LangChain's core package is one of the least.

Share of PyPI downloads from CI

Share of artifact downloads where the installer reported a CI environment, selected packages, October 2026 (1–30)

Share of PyPI downloads from CI
LabelValue
pydantic-ai-slim67.8%
claude-agent-sdk60.3%
anthropic59.2%
openai-agents58.8%
langgraph57.9%
google-genai47.1%
openai40.5%
litellm32.4% (6 sampled days)
langchain-core30.2%
strands-agents23.2%
A floor on automated traffic: Docker builds, servers and agent sandboxes that don't set a CI variable count as not-CI. Highlighted: the two vendor SDKs.

Source: host0 analysis of the PyPI download logs (ClickHouse public copy)

Developer machines tell the same story. In September 2026, PyPI downloads from macOS and Windows, which are laptops and desktops rather than servers, were 10.29M for openai and 3.84M for anthropic: 0.37 to one, the same as the non-CI ratio. GitHub's dependents count for Python is wider still: about 525,860 public repositories depend on openai and 66,058 on anthropic, 8.0×.

The framework layer moved to the Vercel AI SDK#

In JavaScript, the package most AI apps import isn't a vendor's. Vercel's AI SDK, published as ai, passed LangChain.js (@langchain/core) on a rolling seven-day basis on 3 May 2025 and has led since. In October 2026 it had 115.4M downloads, 4.9× LangChain.js, ×7.3 a year earlier and ×66 two years earlier.

Vercel AI SDK vs LangChain.js on npm

Monthly npm downloads of ai and @langchain/core, January 2024 to September 2026

Vercel AI SDK vs LangChain.js on npm
Seriesxy
ai (Vercel AI SDK)Jan 2024423.5K
ai (Vercel AI SDK)Feb 2024508.2K
ai (Vercel AI SDK)Mar 2024673.6K
ai (Vercel AI SDK)Apr 2024823.9K
ai (Vercel AI SDK)May 20241.2M
ai (Vercel AI SDK)Jun 20241.3M
ai (Vercel AI SDK)Jul 20241M
ai (Vercel AI SDK)Aug 20241.5M
ai (Vercel AI SDK)Sep 20241.7M
ai (Vercel AI SDK)Oct 20241.9M
ai (Vercel AI SDK)Nov 20242.1M
ai (Vercel AI SDK)Dec 20242.9M
ai (Vercel AI SDK)Jan 20253.9M
ai (Vercel AI SDK)Feb 20254.8M
ai (Vercel AI SDK)Mar 20254.6M
ai (Vercel AI SDK)Apr 20254.5M
ai (Vercel AI SDK)May 20255.8M
ai (Vercel AI SDK)Jun 20257.2M
ai (Vercel AI SDK)Jul 20258.6M
ai (Vercel AI SDK)Aug 20259.9M
ai (Vercel AI SDK)Sep 202512.2M
ai (Vercel AI SDK)Oct 202517.2M
ai (Vercel AI SDK)Nov 202520M
ai (Vercel AI SDK)Dec 202520.5M
ai (Vercel AI SDK)Jan 202626.1M
ai (Vercel AI SDK)Feb 202631.9M
ai (Vercel AI SDK)Mar 202644.4M
ai (Vercel AI SDK)Apr 202649.2M
ai (Vercel AI SDK)May 202656M
ai (Vercel AI SDK)Jun 202666.2M
ai (Vercel AI SDK)Jul 202678.7M
ai (Vercel AI SDK)Aug 202692.1M
ai (Vercel AI SDK)Sep 2026106.5M
@langchain/coreJan 2024583.1K
@langchain/coreFeb 2024689.6K
@langchain/coreMar 2024923.5K
@langchain/coreApr 20241.2M
@langchain/coreMay 20241.6M
@langchain/coreJun 20242M
@langchain/coreJul 20241.9M
@langchain/coreAug 20242.1M
@langchain/coreSep 20242.2M
@langchain/coreOct 20242.6M
@langchain/coreNov 20242.7M
@langchain/coreDec 20242.4M
@langchain/coreJan 20252.9M
@langchain/coreFeb 20253.3M
@langchain/coreMar 20253.8M
@langchain/coreApr 20254.4M
@langchain/coreMay 20255M
@langchain/coreJun 20255.8M
@langchain/coreJul 20256.4M
@langchain/coreAug 20256.7M
@langchain/coreSep 20257.1M
@langchain/coreOct 20258M
@langchain/coreNov 20258.1M
@langchain/coreDec 20258.7M
@langchain/coreJan 202610.4M
@langchain/coreFeb 202611.3M
@langchain/coreMar 202615.6M
@langchain/coreApr 202616M
@langchain/coreMay 202618.6M
@langchain/coreJun 202620.6M
@langchain/coreJul 202622.3M
@langchain/coreAug 202623M
@langchain/coreSep 202623.2M
LangChain.js kept growing until summer 2026 and then flattened, at 23.4M in 1–29 October. The AI SDK's growth didn't slow.

Source: host0 analysis of the npm downloads API

Vercel's own claims line up with the registry. It said the AI SDK had "over 16 million weekly downloads" when version 7 shipped in June 2026; ai alone had 66.2M that month, about 15.5M a week.

The AI SDK talks to models through small adapter packages, one per provider, and those are a cleaner read of which model a JavaScript developer picks than the vendor SDKs, because far fewer packages pull them in. In October 2026 OpenAI's and Anthropic's adapters were level.

Vercel AI SDK provider adapters, by downloads

Share of downloads of the Vercel AI SDK's provider adapter packages (285.0M in all), 1–29 October 2026

Vercel AI SDK provider adapters, by downloads
LabelValue
OpenAI20.6%
Anthropic19.9%
Google12.4%
OpenAI-compatible11.8%
Google Vertex5.4%
Amazon Bedrock5.2%
OpenRouter4.1%
xAI3.8%
Azure3.7%
DeepSeek3.6%
Mistral2.7%
Groq2.6%
OpenAI's adapter was 65.3% of these downloads in July 2024 and 28.3% in October 2025; Anthropic's went from 14.3% to 19.9%. Some adapters pull in others (Bedrock depends on both the OpenAI and Anthropic ones); removing those leaves OpenAI 18.0% and Anthropic 14.4%.

Source: host0 analysis of npm downloads and registry dependency metadata

The long tail is the point of an abstraction layer. "OpenAI-compatible", the adapter for any endpoint that speaks OpenAI's API (local models, gateways, smaller labs), is the fourth-largest at 11.8%.

LangChain is growing and shrinking at once#

"Is LangChain dead?" gets two true answers. In absolute terms it has never been bigger: langchain-core, the package every LangChain integration depends on, had 150.1M PyPI downloads in October 2026, at least 2.2× a year earlier (PyPI's year-on-year growth is understated, see below), and @langchain/core had 23.4M on npm, ×3.2. LangGraph, LangChain's agent framework, had 53.1M on PyPI. As a share of the framework layer, it has fallen steadily.

LangChain's share of AI framework downloads

LangChain core package ÷ all framework and agent-SDK packages we track, % of downloads; npm June 2024 to October 2026, PyPI 2026 like-for-like

LangChain's share of AI framework downloads
Seriesxy
npmJun 202459%
npmJul 202463%
npmAug 202457%
npmSep 202455%
npmOct 202456%
npmNov 202455%
npmDec 202445%
npmJan 202542%
npmFeb 202539%
npmMar 202544%
npmApr 202547%
npmMay 202543%
npmJun 202541%
npmJul 202539%
npmAug 202536%
npmSep 202533%
npmOct 202528%
npmNov 202525%
npmDec 202524%
npmJan 202623%
npmFeb 202620%
npmMar 202619%
npmApr 202618%
npmMay 202617%
npmJun 202616%
npmJul 202615%
npmAug 202613%
npmSep 202612%
npmOct 202612%
PyPI (metadata removed)Jan 202662%
PyPI (metadata removed)Feb 202661%
PyPI (metadata removed)Mar 202655%
PyPI (metadata removed)Apr 202654%
PyPI (metadata removed)May 202657%
PyPI (metadata removed)Jun 202656%
PyPI (metadata removed)Jul 202653%
PyPI (metadata removed)Aug 202653%
PyPI (metadata removed)Sep 202651%
PyPI (metadata removed)Oct 202649%
On npm, 59% in June 2024 and 12% in October 2026. On PyPI the raw share was 87% in June 2024, but that month sits on the old counting basis; the like-for-like 2026 series shows the same slide, 62% in January to 49% in October.

Source: host0 analysis of npm and PyPI downloads

In Python LangChain is still the biggest framework by almost three times the next one, and that one is LangChain's own LangGraph.

Python AI frameworks and agent SDKs

PyPI downloads, 1–29 October 2026

Python AI frameworks and agent SDKs
LabelValue
langchain-core150.1M
langgraph53.1M
strands-agents36.9M (AWS)
claude-agent-sdk32.8M
pydantic-ai-slim30.2M
openai-agents15.3M
google-adk9.6M
instructor9.0M
llama-index-core6.1M
dspy5.5M
crewai2.7M
Highlighted: LangChain's packages. AWS's Strands is third by downloads, but 98.8% of them come from Linux; from developer machines it drops to 0.39M. Downloads of the claude-code-sdk name, before the rename, aren't included here.

Source: host0 analysis of PyPI downloads

The developer surveys agree that LangChain is still the most used and that it has company. In Stack Overflow's 2026 survey, 30.2% of the 4,400 respondents who answered the question had used LangChain for agent orchestration in the past year, ahead of the OpenAI Agents SDK at 23.8%. A year earlier LangChain was at 32.9%, but the 2025 list offered different tools, so only a few names compare across years. We wrote about what's left of Stack Overflow itself in a separate post.

AI agent frameworks developers used in the past year

Share of 4,400 Stack Overflow 2026 respondents who answered the question, selected tools

AI agent frameworks developers used in the past year
LabelValue
LangChain30.2%
OpenAI Agents SDK23.8%
LangGraph18.8%
Google ADK14.0%
Vercel AI SDK9.0%
Pydantic AI8.9%
CrewAI5.5%
AutoGen4.5%
Mastra3.0%
A survey of developers, not of apps, and the question is about agent orchestration; the full list also has tools we don't track. The Vercel AI SDK, first among JavaScript frameworks by downloads, is at 9.0% here: downloads also count every web app build that ships it.

Source: Stack Overflow Developer Survey 2026

The vendors' own agent SDKs#

Some of the fastest-growing packages in both registries are the agent SDKs the model makers ship themselves. The Claude Agent SDK, renamed from the Claude Code SDK in September 2025, had 46.4M npm downloads in October 2026, ×53 a year earlier, and 33.3M on PyPI across both names, at least ×34 a year earlier. OpenAI's Agents SDK, launched in March 2025 and pitched as an improvement on OpenAI's experimental Swarm, had 7.5M downloads on npm (×15.5) and 15.3M on PyPI.

JavaScript AI frameworks and agent SDKs

npm downloads, 1–29 October 2026

JavaScript AI frameworks and agent SDKs
LabelValue
ai (Vercel AI SDK)115.4M
@anthropic-ai/claude-agent-sdk46.4M
@langchain/core23.4M
@langchain/langgraph14.0M
@mastra/core8.2M
@openai/agents7.5M
genkit0.76M (Google)
llamaindex0.52M (deprecated)
Highlighted: the vendors' agent SDKs. The Claude Agent SDK is second only to the Vercel AI SDK and twice LangChain.js; LlamaIndex's TypeScript package was deprecated in March 2026.

Source: host0 analysis of the npm downloads API

These SDKs change what lock-in means. A provider SDK is a thin client for one HTTP API; switching from one to another is an afternoon. An agent SDK brings its own loop, tool format and session model, and each one requires its vendor's client: every Claude Agent SDK install fetches the Anthropic SDK, every OpenAI Agents SDK install fetches OpenAI's. The provider-agnostic layer and the vendor-specific one are both growing, and they're growing in different places.

Python and JavaScript are converging#

Python has always been the bigger registry for AI code, and still is: PyPI's provider-SDK downloads were 738.1M in October against npm's 474.4M. But npm's share of those downloads rose from 16% in October 2025 to 39% in October 2026. The 2025 figure is held down by the PyPI metadata counting we explain below; corrected for it, the start was nearer 24%, so the rise is from about a quarter to two-fifths.

npm downloads per PyPI download, by SDK

npm downloads ÷ PyPI downloads, 1–29 October 2026

npm downloads per PyPI download, by SDK
LabelValue
Mistral SDK1.82
Claude Agent SDK1.40
Anthropic SDK0.97
MCP SDK0.89
Google Gen AI SDK0.65 (old + new)
OpenAI Agents SDK0.49
OpenAI SDK0.47
LangGraph0.26
LangChain core0.16
Transformers0.15 (contrast)
Above 1, the package is fetched more from npm. Anthropic's SDK is now about even between the two; OpenAI's and LangChain's are still mostly Python. Mistral's JavaScript SDK pulls in the MCP SDK, so the pulls run both ways.

Source: host0 analysis of npm and PyPI downloads

That's the shape behind the headline race. Anthropic leads where JavaScript is growing fastest, and OpenAI leads where most of the existing Python code already is.

Churn: six majors and a 0.x that lasted three and a half years#

Picking an SDK also means picking its release schedule. Vercel's ai shipped its first version as 2.0 in June 2023 (the name's earlier versions belonged to a different 2014 package) and reached 7.0 in June 2026: six majors in 36 months, one about every seven months, with the provider adapters moving in lockstep. It published 935 versions in the last year. Anthropic's Python SDK did the opposite: it stayed on 0.x from February 2023 to 1.0.0 on 20 August 2026, then shipped 2.0.0 two months later.

Major versions of the main AI SDKs

First stable release of each major on npm or PyPI

  1. 14 Jun 2023

    ai 2.0

    The Vercel AI SDK's first release under the ai name.
  2. 6 Nov 2023

    openai 1.0 for Python

    OpenAI's rewritten Python SDK.
  3. 29 Feb 2024

    ai 3.0

  4. 18 Nov 2024

    ai 4.0

  5. 25 Nov 2024

    MCP SDKs 1.0

    Python and TypeScript, the day the protocol was open-sourced.
  6. 11 Mar 2025

    OpenAI Agents SDK

    First release of openai-agents on PyPI.
  7. 31 Jul 2025

    ai 5.0

  8. 29 Sep 2025

    Claude Agent SDK

    The Claude Code SDK is renamed; new package names on npm and PyPI.
  9. 30 Sep 2025

    openai 2.0 (Python) and 6.0 (npm)

    Same day in both registries.
  10. 30 Nov 2025

    Google's old Gemini SDKs reach end of support

    google-generativeai and @google/generative-ai, replaced by google-genai and @google/genai.
  11. 22 Dec 2025

    ai 6.0

  12. 25 Jun 2026

    ai 7.0

  13. 12 Aug 2026

    openai 3.0 for Python

  14. 20 Aug 2026

    anthropic 1.0 for Python

    After three and a half years on 0.x.
  15. 21 Oct 2026

    anthropic 2.0 and @anthropic-ai/sdk 1.0

    Both ship with a new API version, 2026-10-21.

Source: host0 analysis of npm and PyPI registry metadata

Deprecations linger. Google's old JavaScript Gemini SDK reached end of support on 30 November 2025, and its repository has since been archived, yet GitHub still counts about 148,781 public repositories that depend on it, 3.5× as many as on its replacement. Eleven months later, @google/generative-ai was still downloaded 14.6M times in October.

Why download counts lie#

The biggest single event in this dataset isn't a product launch. On 24 August 2026 PyPI changed its logging so that, in its words, "a request has to end in .whl, .tar.gz, or .zip to produce a download record". Before that, requests for a package's metadata file counted as downloads. Modern Python installers fetch metadata for many old versions while they resolve dependencies, so the inflation was uneven: worst for packages with long, tangled dependency trees.

What PyPI's counting change did to each package

Change in mean daily downloads, Tue–Fri 18–21 August vs Tue–Fri 1–4 September 2026

What PyPI's counting change did to each package
LabelValue
crewai−94.5%
litellm−88.5%
pydantic-ai-slim−82.8%
instructor−82.8%
openai-agents−74.8%
google-genai−54.1%
openai−39.4%
anthropic−35.1%
boto3−29.3% (contrast)
langchain-core−16.5%
strands-agents−6.8%
All of PyPI went from 4.21B downloads a day to 2.81B, −33%. Measured directly in July 2026, 89.5% of LiteLLM's 'downloads' were metadata requests, 41% of OpenAI's and Anthropic's, 24% of langchain-core's. npm was not affected.

Sources: host0 analysis of the PyPI download logs; PyPI blog

That has two consequences for anything you read about Python AI packages. Spring and summer 2026 "booms" were mostly metadata: raw LiteLLM went from 97.6M in March to 682.8M in July, while its real artifact downloads went from 29.7M to 99.2M. And any year-on-year PyPI growth compares a clean 2026 with an inflated 2025, so it understates growth: write "at least".

Vendor claims made before the change are on the old basis too. LangChain said in October 2025 that langchain and langgraph had "a combined 90M monthly downloads", which matches PyPI's counts at the time. The MCP maintainers' "close to half-a-billion downloads a month" in July 2026 matches too, but with metadata removed that month is about 350M.

The rest of the plumbing is quieter but always there. CI reruns, Docker rebuilds and agent sandboxes all download packages; a package can be pulled in by something the developer never chose; every new release gets fetched by mirrors and security scanners. PyPI's own post says download counts "should not be used as a proxy for criticality or popularity". They're a measure of how much code is being built, and that's what we've used them for.

What this means if you build with AI#

  1. Put a provider-agnostic layer between your app and the model when you can. In JavaScript that is now the Vercel AI SDK by a wide margin, and its provider-adapter downloads split almost evenly between OpenAI and Anthropic. Switching models becomes a different adapter and a model id, which matters when the leading model changes every few months. Reach for a vendor SDK directly when you need a feature the layer doesn't expose yet.
  2. Treat an agent SDK as the real lock-in. The Claude Agent SDK and the OpenAI Agents SDK are among the fastest-growing packages here, and each requires its vendor's client. They save a lot of work. Choose one knowing that its loop, tool format and sessions don't move to the other vendor.
  3. Budget for churn. ai had six majors in 36 months and 935 releases in the last year. Anthropic's Python SDK was 0.x for three and a half years, then went to 1.0 and 2.0 within two months. Pin exact versions, keep a lockfile, read the migration guide before a major, and let your agent do the upgrade in its own branch.
  4. Check you're on the current package. Google's old Gemini SDKs ended support a year ago and are still downloaded millions of times a month. LlamaIndex's TypeScript package is deprecated; AutoGen is in maintenance. If an agent wrote your code from older examples, check the package names in the manifest.
  5. Don't choose by download counts alone. A lead on one registry can be dependency structure, CI or a counting change. Look at both registries, at what pulls what, and at whether the project fits your language and stack. For Python, LangChain is still the most-downloaded framework and a safe default; in JavaScript, it no longer is.
  6. If you publish a package, count your users another way. Downloads won't tell you who uses it. A survey, an opt-in ping or the GitHub dependents page tell you more, and they don't change when the registry changes its logs.

Whatever SDK your agent picks, the result is usually a page or a small app that someone else needs to open. host0 hosts what your agent makes at a link you can share, with a shared database when the app needs one.

Methodology#

  • npm. Daily downloads per package from the npm downloads range API (api.npmjs.org/downloads/range), January 2023 to 29 October 2026, for 50 packages, summed by month. npm counts every successful tarball fetch, including CI and mirrors. A sample of 12 package-months matched npm's point API exactly.
  • PyPI. Daily downloads per project from ClickHouse's public copy of the PyPI download logs (the same data as Google BigQuery's pypi.file_downloads), for 52 projects, with mirror installers removed. 32 of 32 sampled project-months matched pypistats.org within ±1.4%.
  • The comparison window is 1–29 October in every year, for both registries, because npm's data ended on 29 October. Monthly charts stop at September 2026 unless they're ratios.
  • PyPI's counting change. PyPI stopped counting metadata requests on 24 August 2026. The row-level logs record file names from 8 January 2026, so for 2026 we removed metadata requests by measuring their share per project and day ("like-for-like"). Earlier PyPI numbers can't be corrected; year-on-year PyPI growth is stated as "at least".
  • CI is the installer-reported CI flag in PyPI's logs. It's a floor on automated traffic. npm has no equivalent.
  • Dependency adjustment subtracts the October downloads of packages whose current release requires the SDK (named in each chart). It over-corrects when two of them share an install, so the result is a floor.
  • Definitions. Provider SDKs are the vendors' API clients; Google is its old and new SDK added together. Frameworks are agent and app frameworks, measured by their core package (LangChain by langchain-core / @langchain/core). LiteLLM is a gateway and isn't counted as a framework.
  • Context. Release dates come from the npm and PyPI registry metadata. GitHub dependents counts are GitHub's "Used by" numbers, which it calls approximate. Survey and vendor figures are cited with their source and re-read on 31 October 2026.

Downloads aren't users, installs or apps. The scripts, raw pulls and the full data pack are in our repository under docs/research/2026-10-31-ai-sdk-downloads.md.

Open questions#

  • What else pulls the Anthropic SDK on npm? At least 124M October downloads aren't explained by the Agent SDK or LangChain. Neither npm nor GitHub publishes downloads by dependent.
  • How much of the remaining PyPI volume is automated? Agent sandboxes and container builds that don't set a CI variable look like people in the logs.
  • What did October 2025 really look like on PyPI? The file-level data starts in January 2026, so last year's metadata share can only be estimated.
  • Will there be another break? PyPI says it wants to record partial-file requests separately (the work isn't scheduled yet), which could make a second discontinuity.
ResearchAI codingAI agents