Skip to main content

Research

The AI SDK's Release Record: Three Majors, Weekly Patches, and What Upgrades Cost

Budget an upgrade per AI SDK major. Every major since AI SDK 3 with its patch lines, adoption from npm and GitHub, and what teams report upgrades cost.

Reading time
3 min read
Sources
15 cited
In this piece
AI SDK+36 Positive

Key findings

  1. AI SDK 5 shipped on July 31, 2025, 6 on December 22, 2025, and 7 on June 25, 2026.
  2. The ai package published 244 stable versions between July 12 and October 12, 2026, across the 5, 6, and 7 lines, which all received patches on October 12.
  3. Weekly npm downloads of ai rose from about 0.4 million in October 2024 to 31.0 million in the week to October 11, 2026.
  4. In that week ai was downloaded about 8 times as often as @langchain/langgraph and about 14 times as often as @openai/agents.
  5. Teams report behavior changes that still compile at each major. BrainGrid's migration of 14 tools took a couple of days.

Budget an upgrade project for every AI SDK major. Three majors shipped in eleven months, each renamed APIs that production code uses, and Vercel keeps patching the older lines. Adoption grew through all of it, and the ai package is downloaded far more often than LangGraph.js or the OpenAI Agents SDK.

Majors and their pace

The npm registry dates each major of the ai package: 3.0.0 on February 29, 2024, 4.0.0 on November 18, 2024. Later versions were 5.0.0 on July 31, 2025, 6.0.0 on December 22, 2025, and 7.0.0 on June 25, 2026. AI SDK 5 rebuilt messages into typed parts and renamed tool fields. AI SDK 6 added ToolLoopAgent and tool approval. AI SDK 7 added WorkflowAgent, HarnessAgent for running existing agents such as Claude Code and Codex, timeouts, and a telemetry rewrite, and dropped CommonJS and Node.js versions before 22.

Vercel maintains the older lines under the npm tags ai-v5 and ai-v6, and on October 12, 2026 it published 5.0.274, 6.0.304, and 7.0.138. It publishes no end-of-support date for the older lines, so track those tags and plan each upgrade around your own launches.

Figure 1Stable versions of the ai package published per month in 2026, all release lines, from the npm registry
MonthStable versions
January68
February56
March58
April49
May27
June50
July74
August88
September83
October 1 to 1220

npm registry release times for the ai package, versions without a prerelease tag, retrieved Oct 12, 2026

Adoption

Weekly npm downloads of ai grew about 76-fold in the two years to Oct 12, 2026, rising fastest after AI SDK 6. The npm figure counts dependency installs and CI runs, so it measures installations across projects and pipelines and overstates the number of teams.

On GitHub, vercel/ai had 27,277 stars and 5,307 forks on October 12, 2026. Vercel's own announcements cited over 2 million weekly downloads in July 2025 and over 16 million in June 2026.

Figure 2Weekly npm downloads, one week per quarter
Week endingai@langchain/langgraph@openai/agents
Oct 11, 2024409,33741,9760
Apr 11, 20251,015,304179,6340
Oct 10, 20253,578,966541,484105,131
Apr 10, 202610,505,4602,004,043519,386
Jul 10, 202616,548,9892,861,2371,298,106
Oct 11, 202631,019,5383,795,5172,282,139

npm downloads API, point counts for each seven-day window, retrieved Oct 12, 2026

What upgrades cost

BrainGrid moved 14 tools from AI SDK 4.3.16 to the 5 beta in a couple of days. It reported renamed fields, a type overhaul, and a token counter that broke on the new message parts. A benchmark suite on AI SDK 7 kept an accessor whose meaning changed and lost tool history across 114 follow-up turns until its author switched to responseMessages.

Provider packages move too. A team's Bedrock structured output degraded after a provider release switched to native structured output, and Sourcebot waited on a community Ollama provider to support AI SDK 5.

Security record

GitHub's Advisory Database listed one reviewed advisory for the ai package on Oct 12, 2026: GHSA-rwvc-j5jr-mgvh, a low-severity bypass of file type allowlists in uploads, fixed in 5.0.52 and published November 7, 2025.

Methodology

GILD count from the npm registry's release times for the ai package and the npm downloads API, retrieved on October 12, 2026; a stable version is one without a prerelease tag. GitHub figures are from the vercel/ai repository page and the GitHub Advisory Database on the same date. Release dates and features are from Vercel's announcements and migration guides, and upgrade experiences from the public accounts listed in Sources.

Products in this piece

Sources

Official documentation
7
Public source
8
  1. Vercel blog: AI SDK 5 (Jul 31, 2025)Official documentationvercel.com
  2. Vercel blog: AI SDK 6 (Dec 22, 2025)Official documentationvercel.com
  3. Vercel blog: AI SDK 7 (Jun 25, 2026)Official documentationvercel.com
  4. AI SDK docs: Migration guide, AI SDK 7.0Official documentationai-sdk.dev
  5. vercel/ai releases on GitHubOfficial documentationgithub.com
  6. vercel/ai on GitHub (stars, forks, commits)Official documentationgithub.com
  7. AI SDK docs: Harnesses overviewOfficial documentationai-sdk.dev
  8. npm: the ai package, versions and weekly downloads (as of Oct 12, 2026)Public sourcenpmjs.com
  9. npm: @langchain/langgraph, versions and weekly downloads (as of Oct 12, 2026)Public sourcenpmjs.com
  10. npm: @openai/agents, versions and weekly downloads (as of Oct 12, 2026)Public sourcenpmjs.com
  11. GitHub Advisory Database: GHSA-rwvc-j5jr-mgvh, AI SDK file type allowlist bypass, fixed in 5.0.52 (Nov 7, 2025)Public sourcegithub.com
  12. Felipe Cadavid, BrainGrid blog: Migrating to AI SDK v5 (Jul 24, 2025)Public sourcebraingrid.ai
  13. Kevin Peckham, Lightning Jar: A deprecated accessor that still typechecks broke my benchmark (Jul 6, 2026)Public sourcelightningjar.com
  14. vercel/ai issue #17881: Bedrock native structured output degenerates on claude-sonnet-4-6 (Jul 23, 2026)Public sourcegithub.com
  15. Hacker News comment from the Sourcebot team on the Ollama provider and AI SDK 5 (Jul 31, 2025)Public sourcenews.ycombinator.com