Skip to main content

AI SDK

Vercel's Apache 2.0 TypeScript toolkit ships on npm as ai. One API covers text, structured output, tools, and agents across 46 first-party model integrations. React, Vue, Svelte, and Angular hooks stream chat. Vercel AI Gateway is the default model route.

The 30-Second Take

Pick the AI SDK if your AI feature lives in a TypeScript web app and someone owns its upgrades.

It is Vercel's free toolkit for model calls, tools, agent loops and streaming UI, on any provider. openstatus runs its Slack incident agent on it.

Best fit
Product teams adding chat, structured output or tool-using agents to a TypeScript web app, on any model provider.
Main constraint
Three majors in eleven months, each renaming APIs that production code uses, and version 7 drops CommonJS and older Node.js releases.
First move
Build one feature on AI SDK 7 with a pinned version, a stop condition, and telemetry registered at startup.

Why

Watch the release pace: three majors in eleven months, each renaming APIs your production code uses. Earendil's founder wrote that he would not build on its provider layer again.

Practitioner sentiment, all practitioners+36 Positive

83 practitioners, 106 sources reviewed, Updated Nov 1, 2026How this is measured

Read the GILD Review
Save a product your organization uses.Keep up with AI SDK without adding it to your stack.Visit Website
Operating stack
AI Application Platform

Comparisons

How does AI SDK compare with the alternatives?

  1. AI SDK vs LangGraph

    • Agent Frameworks

    GitLab and Qodo run LangGraph in production for checkpointed agents, and yeos.ai removed it after months. Pick the AI SDK for agents inside a TypeScript product, as openstatus does, and LangGraph when runs must pause, resume and be inspected step by step.

  2. aicommits and Helpmaton build on the AI SDK for one API across model vendors and streaming UI, and Octagon AI chose OpenAI's Agents SDK for its agent loop. Pick the Agents SDK for OpenAI-first agents with handoffs, guardrails, and tracing in OpenAI's dashboard.

  3. AI SDK vs Mastra

    • Agent Frameworks

    Pick the AI SDK for model calls, tool loops, and chat UI hooks inside your own app, with AI Gateway at provider list prices. Pick Mastra for workflows, memory, evals, and an optional hosting platform in one TypeScript framework.

Operator Insights

What are teams learning from building on AI SDK and running it in production?

Buying and deployment

What a team building on it should verify before production traffic grows.

Sourced from Vercel documentation

How you buy it

Free, Apache 2.0

No paid tier. Providers bill tokens directly or through AI Gateway credits without markup.

Source 5, GitHub, vercel/ai LICENSE: vercel/ai LICENSESource 2, Vercel, Migration guide, AI SDK 7.0: Migration guide, AI SDK 7.0Source 1, Vercel, AI Gateway pricing: AI Gateway pricing

Details

The SDK is free under Apache 2.0, installed from npm as ai plus a provider package, with no paid tier. Providers bill tokens directly or through Vercel AI Gateway credits at list price without markup. Each Vercel team gets US$5 monthly gateway credit on selected models. Bring-your-own-key requires purchased credits.

Cost drivers

Model tokens

Your model's rate sets usage cost. AI Gateway adds fees for optional governance and trace drains.

Source 1, Vercel, AI Gateway pricing: AI Gateway pricingSource 8, vercel.com, AI Gateway FAQ: AI Gateway FAQ

Details

Model tokens are the main cost. On Pro and Enterprise, team-wide Zero Data Retention and a team-wide provider allowlist each add US$0.10 per 1,000 requests; the allowlist counts only successful ones. Trace drains cost US$0.05 per thousand traces plus US$0.50 per GB. Purchased gateway credits expire after one year.

Where it runs

Node.js 22

Or later, in your code on any cloud. AI SDK 7 requires ESM.

Source 2, Vercel, Migration guide, AI SDK 7.0: Migration guide, AI SDK 7.0Source 6, Vercel, AI SDK UI overview: AI SDK UI overviewSource 1, Vercel, AI Gateway pricing: AI Gateway pricingSource 9, vercel.com, AI Gateway OIDC authentication: AI Gateway OIDC authentication

Details

The SDK runs in your code on Node.js 22 or later, on Vercel or another cloud. AI SDK 7 requires ESM. UI hooks cover React, Vue, Svelte, and Angular. Any environment can call AI Gateway with an API key. Vercel deployments can use short-lived OIDC tokens.

What to verify

Three majors

AI SDK 5, 6, and 7 all still receive patches. Gateway budgets are soft caps.

Source 10, registry.npmjs.org, npm registry: ai: npm registry: aiSource 4, GitHub, vercel/ai releases: vercel/ai releasesSource 3, Vercel, Loop control: Loop controlSource 7, Vercel, AI Gateway budgets: AI Gateway budgetsSource 11, Vercel, AI SDK harnesses overview: AI SDK harnesses overview

Details

AI SDK 5, 6, and 7 shipped between July 2025 and June 2026, and all three still receive patches. Harness packages are experimental. ToolLoopAgent defaults to 20 steps, while WorkflowAgent has no limit. AI Gateway budgets are soft caps and exclude bring-your-own-key spend.

Signals

What is the current evidence saying about AI SDK?

What 95 public accounts report about building on the AI SDK, where provider switching draws the most consistent praise and provider translation bugs the most complaints. Each finding links to its sources.

Whose sources count

Practitioner sentiment, all practitioners

+36 Positive net

of 85 sources that take a side, each author counted once.

How this figure is made

Teams and leaders have 18 accounts; GILD prints their sentiment from 20.

Current sentiment

Positive, mixed and negative sources

The score counts them as 35 positive, 43 mixed and 5 negative votes, one per author.

Across 94 sources the read is positive: 35 positive, 5 negative, 45 mixed, and 8 listed without counting. One API across providers draws the most consistent praise, positive in 16 of 17 sources. Provider translation bugs are raised in 14 and breaking changes in 9.

Build one pilot agent to measure the glue code and debugging time the framework adds.

Evidence field. All 106 sources, one mark each.

Arrange by

Each mark is one source: positive, mixed, negative, no opinion stated, or documentation (not counted).

By sentiment, All practitioners. Every source GILD read, grouped as the field draws it.
GroupSourcesPositiveMixedNegativeNo opinion stated and not counted in the scoreDocumentation, checked and not counted
Positive35350000
Mixed45045000
Negative500500
Not counted900090
Documentation12000012
Every source GILD read, by the quarter it was published, as the field's time axis counts it. Documentation is dated by the day it was checked.
QuarterSources
Q1 20258
Q2 20259
Q3 202518
Q4 202512
Q1 202615
Q2 202612
Q3 202618
Q4 20262
Documentation, checked12

By sentiment

12 documentation pages check facts and are not counted.

Hover a mark for a quick look, click it or press Enter to open its source.Tap a mark to open its source, then step to its neighbors with Previous and Next.

What practitioners praise

Top praise of 4. Each mark is a source on it; filled marks praise it.

  1. One API Across Providers16 of 17 sources on it praise it

Most common concerns

Top concern of 5. Each mark is a source on it; filled marks raise it.

  1. Provider Translation Bugs14 of 15 sources on it raise it as a concern
All 106 sources behind these findings
  1. WorkflowAgent run has no root span: each model call becomes its own agent root in the tracerobertyates, GitHub user (self-described: Durable WorkflowAgent runs traced to Arize, Phoenix and Langfuse), GitHub issue, published Oct 20, 2026
  2. AI SDK introductionVercel (Official), Product documentation, checked Oct 12, 2026
  3. AI SDK providersVercel (Official), Product documentation, checked Oct 12, 2026
  4. Choosing a providerVercel (Official), Product documentation, checked Oct 12, 2026
  5. Loop controlVercel (Official), Product documentation, checked Oct 12, 2026
  6. WorkflowAgentVercel (Official), Product documentation, checked Oct 12, 2026
  7. Tools and tool callingVercel (Official), Product documentation, checked Oct 12, 2026
  8. AI SDK HarnessesVercel (Official), Product documentation, checked Oct 12, 2026
  9. TelemetryVercel (Official), Product documentation, checked Oct 12, 2026
  10. AI SDK UI overviewVercel (Official), Product documentation, checked Oct 12, 2026
  11. Migration guide: AI SDK 7.0Vercel (Official), Product documentation, checked Oct 12, 2026
  12. AI Gateway pricingVercel (Official), Product documentation, checked Oct 12, 2026
  13. AI Gateway budgetsVercel (Official), Product documentation, checked Oct 12, 2026
  14. WorkflowAgent approval resume fails after intervening user media, after an approved tool already executedrpinckne, GitHub user (self-described: Tool approvals on durable WorkflowAgent runs), GitHub issue, published Oct 4, 2026
  15. HarnessAgent: stripWorkDir corrupts tool inputs/results by substring replace (.github/workflows → .github.flows) and cannot be switched offhrithikbluelabel, GitHub user (self-described: Uses AI SDK HarnessAgent with Claude Code and a sandbox), GitHub issue, published Sep 17, 2026
  16. Per-byte base64 encoding of file parts caused a production OOM (kills a 2GB container on one 14MB PDF); fix exists in #13581safaiyeh, GitHub user (self-described: Production API on AWS Fargate), GitHub issue, published Sep 1, 2026
  17. Having Fun with Vercel's AI SDK and AI GatewayAdam Rackis, Developer writing about their own app (self-described: Fitness-tracking app generating workout templates), Personal blog post, Master.dev Blog, published Aug 31, 2026
  18. Unguarded Function.prototype.toString.call(fetch) at module eval breaks imports when globalThis.fetch is not callable (e.g. jest-environment-jsdom)Abhi Aiyer, co-founder and CTO of Mastra (@ai-sdk/provider-utils as bundled into @mastra/core, run under Jest with jsdom), GitHub issue, published Aug 24, 2026
  19. @ai-sdk/langchain: reused toolCallId across LangGraph steps loses the later tool lifecyclemdnanocom, GitHub user (self-described: LangGraph agent whose model reuses tool-call ids across steps, rendered with AI SDK UI), GitHub issue, published Aug 13, 2026
  20. readUIMessageStream: structuredClone of the entire accumulated message on every chunk (quadratic allocation: sibling of #18624 in the ai package)DeJeune, GitHub user (self-described: Student at Chinese Academy of Sciences University), GitHub issue, published Aug 12, 2026
  21. Comment on: What's the best programming language for coding agents?jodysalt, Hacker News commenter (self-described: Building coding agents in TypeScript), Hacker News comment, published Aug 11, 2026
  22. Comment on: Cloudflare OS: an open platform for agents, apps, and workkentonv, Hacker News commenter, developer of Cloudflare OS (self-described: Cloudflare OS agent harness), Hacker News comment, published Aug 6, 2026
  23. @ai-sdk/langchain: subgraphs:true drops namespace; global langgraph_step prematurely ends interleaved reasoningzjjaxx, GitHub user (self-described: LangGraph Deep Agents streamed with subgraphs into useChat and AI Elements), GitHub issue, published Aug 6, 2026
  24. Comment on: Go LLM SDK for streaming, tool-calling AI backends (plus frontend React lib)zknill, Hacker News commenter (self-described: Evaluating chat SDK backends), Hacker News comment, published Jul 30, 2026
  25. @ai-sdk/amazon-bedrock: native structured output silently degenerates (U+200B padding to token cap) on claude-sonnet-4-6: no opt-out; expose structuredOutputMode like @ai-sdk/anthropicrhamnett, GitHub user (self-described: Internal drafting feature on Amazon Bedrock), GitHub issue, published Jul 23, 2026
  26. @ai-sdk/langchain: isAIMessageChunk() fails for CJS instances, silent text-delta loss in CommonJS hosts (NestJS, Express, etc.)mahan-fk, GitHub user (self-described: LangGraph agent served from a NestJS backend to an AI SDK UI frontend), GitHub issue, published Jul 23, 2026
  27. problemtic default value of max_tokens for unknown modelsplutonium-94, GitHub user (self-described: Uses an Anthropic-compatible model provider with AI SDK 6), GitHub issue, published Jul 21, 2026
  28. Vercel AI SDK in Production: Streaming, Tool-Calling & the Gotchas Nobody Tells You (2026)Umesh Malik, Independent developer (self-described: Production chat features on Next.js), Personal blog post, umesh-malik.com, published Jul 21, 2026
  29. How are you persisting useChat history across redeploys? The tool-call part is what got meBusy_Zucchini6284, Reddit user (self-described: Own chat app on the AI SDK), Reddit post, r/vercel, published Jul 20, 2026
  30. streamText textStream tee path retains large streaming outputs in memorymatthew-gizmo, GitHub user (self-described: Cloudflare Worker import workload), GitHub issue, published Jul 6, 2026
  31. A Deprecated Accessor That Still Typechecks Broke My Benchmark (and Maybe Your Agent)Kevin Peckham, Principal at Lightning Jar (self-described: Multi-turn tool-calling benchmark harness on AI SDK 7), Engineering blog post, Lightning Jar, published Jul 6, 2026
  32. @ai-sdk/amazon-bedrock: Output.object() + tools intermittently fails with AI_NoObjectGeneratedError on Claude Opus 4.7/4.8Igal Mazor, GitHub user (self-described: Agentic generateText runs on Bedrock with tools and structured output, seen in production tracing), GitHub issue, published Jul 3, 2026
  33. experimental_toolApprovalSecret: addToolApprovalResponse drops the approval signature, breaking every signed approval on resumekoonaso, GitHub user, self-described, GitHub issue, published Jun 23, 2026
  34. Mastra vs AI SDK: I Built Production Apps With BothKristian, Independent developer (self-described: Production AI apps on Mastra and the AI SDK), Video, YouTube, published Jun 17, 2026
  35. Comment on: Is Vercel AI SDK actually good for building real AI agents?Intrepid_Frosting_66, Reddit user (self-described: An agent inside a financial app), Reddit comment, r/vercel, published Jun 1, 2026
  36. @ai-sdk/anthropic: disableParallelToolUse: true is hardcoded when structuredOutputMode: 'jsonTool', ignores user overridetim-inkeep, GitHub user (self-described: Production agent with Claude structured output and parallel tool calls), GitHub issue, published May 27, 2026
  37. We built a Custom Transport for Vercel's AI SDKZak Knill, Senior Distributed Systems Engineer, Ably (Ably engineering team building a custom transport for useChat to support multi-device, multi-user and resumable conversations), Company engineering blog, Ably, published May 13, 2026
  38. Comment on: Agents need control flow, not more promptsdkersten, Hacker News commenter (self-described: Own workflow engine in Rust that calls models through a TypeScript harness), Hacker News comment, published May 8, 2026
  39. Is Vercel AI SDK actually good for building real AI agents?Dapper-Turn-3021, Reddit user (self-described: Own chat app and agent experiments), Reddit post, r/vercel, published May 1, 2026
  40. Comment on: Is Vercel AI SDK actually good for building real AI agents?sinatrastan, Reddit user (self-described: A Lovable-style app builder in one of the author's projects, used by people in production), Reddit comment, r/vercel, published May 1, 2026
  41. Comment on: Show HN: AI Applyd - a bot that applies to jobs for yousneefle, Hacker News commenter, solo founder (self-described: Job-application agent on Cloudflare Workers with OpenRouter), Hacker News comment, published Apr 20, 2026
  42. Anthropic structured outputs fail with valid Zod schemas due to unsupported JSON Schema keywords (e.g. exclusiveMinimum, not, minimum, maximum)leojcyou, GitHub user (self-described: Mechatronics engineering at University of Waterloo), GitHub issue, published Apr 10, 2026
  43. Comment on: Show HN: Output.ai - OSS framework we extracted from 500+ production AI agentsbnchrch, Hacker News commenter on the Output.ai team (self-described: Output.ai, framework extracted from the team's production agents), Hacker News comment, published Apr 9, 2026
  44. Comment on: Claude Agent SDK vs. Messages API for a Production AI Assistant?SerafimKorablev, Hacker News commenter (self-described: Team building a multi-tenant AI assistant), Hacker News comment, published Apr 7, 2026
  45. Comment on: OpenHarness - Composable TypeScript SDK for building powerful agent harnessesMaxGfeller, Hacker News commenter, OpenHarness author (self-described: OpenHarness, open-source TypeScript agent SDK), Hacker News comment, published Mar 31, 2026
  46. uiMessageChunkSchema strict validation breaks backward due to providerMetadata additionPablo de Castro (pablodecm), GitHub user (self-described: Next.js App Router app upgraded from ai 6.0.116 to 6.0.134), GitHub issue, published Mar 23, 2026
  47. Anthropic: tool_use/tool_result pairing fails when server_tool_use (web_search) and regular tool_use appear in same assistant turntea-artist, GitHub user (self-described: Agent loop mixing Anthropic web search with application tools), GitHub issue, published Mar 3, 2026
  48. How We Built Our Slack AgentThibault Le Ouay Ducasse, openstatus (self-described: openstatus Slack agent for incident status reports), Engineering blog post, openstatus blog, published Feb 27, 2026
  49. generateText() silently swallows AbortError in multi-step tool loopwkusnierczyk, GitHub user, self-described, GitHub issue, published Feb 26, 2026
  50. generateObject and generateText with output bursts CPU usage of tslanguageserver to 150%joachimbulow, GitHub user (self-described: Builds Doubble with NestJS and OpenAI in Cursor), GitHub issue, published Feb 26, 2026
  51. Comment on: Claude Agent SDK vs OpenAI Agent SDK vs Vercel AI SDKPrivateMTD, Reddit user (self-described: Own project built on the AI SDK), Reddit comment, r/vercel, published Feb 25, 2026
  52. Comment on: Gemini 3.1 Proojr, Hacker News commenter (self-described: Gemini-based slide generation product), Hacker News comment, published Feb 20, 2026
  53. Claude Agent SDK vs OpenAI Agent SDK vs Vercel AI SDKbri-_-guy, Reddit user (self-described: Hobby project, a team of five knowledge-worker agents), Reddit post, r/vercel, published Feb 15, 2026
  54. Real-Time AI Streaming in Production: What We Built at HelpmatonPedro Teixeira, Helpmaton (self-described: Helpmaton's production streaming stack on AWS Lambda Function URLs), Engineering blog post, metaduck.com, published Feb 13, 2026
  55. Comment on: GPT-5.3-Codexkoakuma-chan, Hacker News commenter (self-described: Structured outputs across providers), Hacker News comment, published Feb 5, 2026
  56. Comment on: Show HN: Mastra 1.0, open-source JavaScript agent framework from the Gatsby devsesperent, Hacker News commenter (self-described: Building with Mastra on the AI SDK), Hacker News comment, published Jan 20, 2026
  57. Stream resumption doesn't work when users switch tabs or background the appRohit Singh (Notoriousbrain), GitHub user (self-described: Chat app using useChat with resume and Redis-stored stream ids), GitHub issue, published Jan 19, 2026
  58. [Bug] Anthropic extended thinking: reasoning blocks lost during multi-step tool callsNicolaiHerforth, GitHub user (self-described: Applied machine learning engineer), GitHub issue, published Jan 7, 2026
  59. Part 4: The Pivot - 3 Hours to SalvationJordan Hindo, developer building Asset Hatch (self-described: Asset Hatch app migrated from CopilotKit to AI SDK v6), Personal blog post, jordanhindo.dev, published Jan 4, 2026
  60. Comment on: Show HN: tpmjs - npm for ai sdk toolsthomasfromcdnjs, Hacker News commenter (self-described: Builds a registry of AI SDK tools), Hacker News comment, published Dec 28, 2025
  61. Comment on: Ask HN: What agent frameworks are you using, and how well do they work?sshadmand, Hacker News commenter (self-described: Web apps with AI features), Hacker News comment, published Dec 14, 2025
  62. Comment on: Is anyone collecting 👍 / 👎 + comment feedback in Vercel AI SDK chats? Wondering if this is actually worth solvingr0kh0rd, Reddit user (self-described: Team chat product with feedback, evals, and A/B tests), Reddit comment, r/vercel, published Dec 8, 2025
  63. Memory leak using Experimental downloadCharlesOural, GitHub user (self-described: Production app on Gemini with custom image downloads), GitHub issue, published Dec 4, 2025
  64. Comment on: For your AI app, you use VercelAI SDK or direct API?seafoodghost, Reddit user (self-described: Own AI app, moved from direct provider API calls), Reddit comment, r/nextjs, published Dec 3, 2025
  65. Comment on: For your AI app, you use VercelAI SDK or direct API?cg_stewart, Reddit user (self-described: Own AI app, moved from the Gemini API), Reddit comment, r/nextjs, published Dec 3, 2025
  66. [@ai-sdk/anthropic | @ai-sdk/google] Duplicate text-start/text-end IDs in multi-step flowAbhi Aiyer, co-founder and CTO of Mastra (Multi-step agent streams with Anthropic models), GitHub issue, published Dec 2, 2025
  67. Comment on: Launch HN: Onyx (YC W24) - Open-source chat UIelpakal, Hacker News commenter (self-described: Several projects on Vercel's AI chatbot stack), Hacker News comment, published Nov 25, 2025
  68. Comment on: Agent design is still hardcheriot, Hacker News commenter (self-described: Agent design), Hacker News comment, published Nov 22, 2025
  69. Agent Design Is Still HardArmin Ronacher, founder of Earendil (Earendil's agent, built on the AI SDK's provider layer with its own agent loop), Personal blog post, lucumr.pocoo.org, published Nov 21, 2025
  70. Comment on: Absurd Workflows: Durable Execution with Just Postgresthe_mitsuhiko, Hacker News commenter (self-described: Builds durable agent workflows on Postgres), Hacker News comment, published Nov 3, 2025
  71. aicommits v1.0.0: Six Months of AI-Assisted Development Come Full CircleLuca Becker, aicommits maintainer (self-described: aicommits CLI migrated to AI SDK v5), Personal blog post, luca-becker.me, published Oct 17, 2025
  72. Comment on: LLM Observability in the Wild - Why OpenTelemetry Should Be the Standardarmank-dev, Hacker News commenter (self-described: Startup building semantic failure tracking for agents), Hacker News comment, published Sep 28, 2025
  73. Comment on: Launch HN: Trigger.dev (YC W23) - Open-source platform to build reliable AI appsdallinbentley, Hacker News commenter (self-described: Team running agents on Trigger.dev), Hacker News comment, published Sep 15, 2025
  74. Comment on: Microsoft to Use AI from Anthropic in Partial Shift from OpenAIconsumer451, Hacker News commenter (self-described: LLM features in an app), Hacker News comment, published Sep 9, 2025
  75. AI SDK v5: A Crash Course | Matt Pocock at React Universe Conf 2025Matt Pocock, TypeScript educator (self-described: React Universe Conf 2025), Conference talk, YouTube (Callstack), published Sep 9, 2025
  76. anthropic api error: tool_use ids were found without tool_result blocks immediately afterabhi-slash-git, GitHub user, self-described, GitHub issue, published Sep 8, 2025
  77. Introducing Mastra's improved agent orchestration with AI SDK v5 supportSam Bhagwat, founder and CEO of Mastra (Mastra, a TypeScript agent framework that has used the AI SDK for model routing and streaming), Engineering blog post, Mastra blog, published Aug 26, 2025
  78. Azure OpenAI is still Slow To Streamkollerp, GitHub user (self-described: Uses AI SDK 5 with Azure OpenAI GPT-5), GitHub issue, published Aug 17, 2025
  79. Comment on: Best Practices for Building Agentic AI Systemsmatt_cogito, Hacker News commenter (self-described: Building agentic systems), Hacker News comment, published Aug 16, 2025
  80. In useChat in @ai-sdk/react, state sent via transport#body is always stalemattpocock, Matt Pocock, TypeScript educator (self-described: TypeScript educator building Total TypeScript, company AI Hero), GitHub issue, published Aug 6, 2025
  81. Comment on: Show HN: Sourcebot - Self-hosted Perplexity for your codebasebshzzle, Hacker News commenter on the Sourcebot team (self-described: Sourcebot, self-hosted code search with AI answers), Hacker News comment, published Jul 31, 2025
  82. Comment on: Launch HN: Hyprnote (YC S25) - An open-source AI meeting notetakeryujonglee, Hacker News commenter on the Hyprnote team (self-described: Hyprnote, open-source AI meeting notes app (YC S25)), Hacker News comment, published Jul 29, 2025
  83. Comment on: ChatGPT agent: bridging research and actiongorbypark, Hacker News commenter (self-described: Rebuilt ChatGPT agent's tools for testing), Hacker News comment, published Jul 25, 2025
  84. Migrating to AI SDK v5: A Story of Tool Streaming, Caching, and Type SafetyFelipe Cadavid, Software engineer at BrainGrid (self-described: BrainGrid agent platform, 14 tools), Engineering blog post, BrainGrid blog, published Jul 24, 2025
  85. AI sdk v5 has insanely slow TypeScript performanceniels-bosman, GitHub user (self-described: Senior product engineer building Gardenly), GitHub issue, published Jul 21, 2025
  86. Memory leak with aisdk 5.19-5.20 and zod 4nanolookc, GitHub user (self-described: AI and design work at moni.ai), GitHub issue, published Jul 16, 2025
  87. Comment on: Building Real-Time AI Streaming Services with AWS Lambda and Architectpgte, Hacker News commenter, author of the post (self-described: Streaming AI service on AWS Lambda), Hacker News comment, published Jul 11, 2025
  88. Type instantiation is excessively deep and possibly infinite.SirCameron, GitHub user, self-described, GitHub issue, published Jul 9, 2025
  89. Item 'rs_...' of type 'reasoning' was provided without its required following itemiborqe, GitHub user (self-described: Developer at Borq), GitHub issue, published Jul 7, 2025
  90. Comment on: Show HN: Pickaxe - A TypeScript library for building AI agentsgabrielruttner, Hacker News commenter, Hatchet co-founder (self-described: Hatchet's Pickaxe agent library), Hacker News comment, published Jun 23, 2025
  91. AI Framework Comparison: Vercel AI SDK, Mastra, Langchain and GenkitKonstantin Komelin, Independent developer (self-described: Code examples across four frameworks), Personal blog post, komelin.com, published Jun 19, 2025
  92. Vercel AI SDK silent failure - mismatched maxSteps between useChat and streamText breaks tool executioncaleb-russel, Reddit user (self-described: Agent feature in a Next.js app), Reddit post, r/nextjs, published Jun 5, 2025
  93. @ai-sdk/google stopped working with function calling in productionyonatanlavy, GitHub user (self-described: Builds Dotallio, an all-in-one AI app), GitHub issue, published Jun 2, 2025
  94. What I learned building my first AI agent, part 1Rafael Saraceni, Independent developer (self-described: RAG agent for Figma documentation), Personal blog post, saraceni.me, published May 6, 2025
  95. Comment on: Is Vercel AI SDK's vision to compete with LangGraph?aron_snow, Reddit user (self-described: Own multi-agent experiments after using the SDK for prototypes), Reddit comment, r/vercel, published Apr 15, 2025
  96. The Vercel AI SDK: A worthwhile investment in bleeding edge GenAIZachary Proser, Applied AI at WorkOS (self-described: GenAI applications), Personal blog post, zackproser.com, published Apr 14, 2025
  97. Comment on: Use the Gemini API with OpenAI Fallback in TypeScriptbearjaws, Hacker News commenter (self-described: Own apps that switch between models), Hacker News comment, published Apr 6, 2025
  98. Writing an LLM Eval with Vercel's AI SDK and VitestRichard Gill, Engineer at Xata (self-described: Xata Agent, open-source PostgreSQL diagnosis agent), Engineering blog post, Xata blog, published Apr 2, 2025
  99. Poor performance when using Gemini image output with streamTextwong2, GitHub user, self-described, GitHub issue, published Mar 22, 2025
  100. Comment on: Mayo Clinic's secret weapon against AI hallucinations: Reverse RAG in actionsocial_quotient, Hacker News commenter (self-described: Product with a guardrail check before answers reach users), Hacker News comment, published Mar 15, 2025
  101. Comment on: Show HN: I wrote a browser AI assistant without requiring logindjyde, Hacker News commenter (self-described: Indie browser extension AI assistant), Hacker News comment, published Mar 12, 2025
  102. Introducing xsAI, a < 6KB Vercel AI SDK alternativeNeko Ayaka, Open-source developer at Moeru AI (self-described: Built a smaller alternative library), Personal blog post, Moeru AI Blog, published Mar 3, 2025
  103. Comment on: Show HN: Mastra - Open-source JS agent framework, by the developers of GatsbySparkyMcUnicorn, Hacker News commenter (self-described: Uses the AI SDK without Vercel hosting), Hacker News comment, published Feb 20, 2025
  104. Comment on: Show HN: Mastra - Open-source JS agent framework, by the developers of Gatsbyjerrygoyal, Hacker News commenter (self-described: Production app), Hacker News comment, published Feb 20, 2025
  105. Comment on: Show HN: Mastra - Open-source JS agent framework, by the developers of Gatsbynetcraft, Hacker News commenter (self-described: Evaluating Mastra and the AI SDK), Hacker News comment, published Feb 19, 2025
  106. useChat: Infinite re-renders when using messages as useEffect dependencysebaFP, GitHub user (self-described: React 19 application using Vercel AI SDK 4.1.24), GitHub issue, published Feb 6, 2025

Feb 2025 to Oct 2026.

94 sources from practitioners, by month and sentiment.

The full readExplore all AI SDK Signals6 praise themes, 6 concerns, 5 points of agreement and 2 disagreements across all three groups, with all 106 sources open to inspect.

Where It Fits

Where does AI SDK belong in the stack?

AI SDK is Core across Build, supports Model, Data, and Operate, and touches Evaluate.

Business area
Product & Engineering
Function
Software Development
Operating stack
AI Application Platform
Primary role
TypeScript Agent & AI App Toolkit
AI SDK beside the rest of its stackThe Stack Field, every product on every layer
FootprintAI SDK across the AI Application Platform stack. Bar height is its role on each layer.
  1. Model

    1. Model APIs: Touches

      Model APIs, touches. Provider packages call OpenAI, Anthropic, Google, Amazon Bedrock, Azure, and 40 more first-party integrations. The AI SDK supplies no models. Each provider bills the tokens.

    2. Model gateway: Supports

      Model gateway, supports. Vercel AI Gateway resolves plain model-id strings as the default global provider. The separate paid service adds budgets and fallbacks at zero token markup. The SDK itself switches providers in code.

  2. Build

    1. Orchestration: Core

      Orchestration, core. generateText and streamText run multi-step tool loops. ToolLoopAgent packages agents, while WorkflowAgent adds durability through Workflow DevKit. HarnessAgent runs Claude Code, Codex, or Pi through the same interface.

    2. Tool use: Core

      Tool use, core. Tools accept Zod or JSON Schema inputs and per-tool context. The SDK supports provider-executed tools and an MCP client with MCP Apps. Approvals pause tools for a human or an approval function.

  3. Data

    1. Retrieval: Supports

      Retrieval, supports. embed and embedMany call embedding models across providers, while rerank calls reranking models. A vector store handles retrieval because the SDK stores and searches no documents.

  4. Evaluate

    1. Evaluation: Touches

      Evaluation, touches. ai/test supplies model helpers, and response objects record every step. Teams such as Xata use them in Vitest evals. An evaluation tool owns datasets and scoring.

  5. Operate

    1. Observability: Supports

      Observability, supports. AI SDK 7 registers OpenTelemetry once for all calls. It emits Node.js tracing-channel events and per-step timing. Datadog, Langfuse, Braintrust, Sentry, and LangSmith integrations provide trace storage and analysis.

    2. Cloud deployment: Touches

      Cloud deployment, touches. The SDK runs on Node.js 22 or later, on Vercel or another cloud. The provider or AI Gateway controls model capacity and quotas. Host function timeouts limit long runs.

    3. Guardrails: Touches

      Guardrails, touches. AI SDK language model middleware intercepts and modifies model calls and provides a place to add guardrails. The SDK does not supply a built-in prompt or response screening service.

Market mapThe layers AI SDK covers, and who else owns each one.

  1. Orchestration & agent frameworks

    CoreBuild

  2. Tool use & integrations

    CoreBuild

  3. Model gateways & routing

    SupportsModel

  4. Retrieval & grounding

    SupportsData

  5. Observability & tracing

    SupportsOperate

4 more layers on the full map. Core, Supports and Touches describe coverage. They say nothing about quality.

More on AI SDK

  1. GILD ReviewGILD's evaluation, with the buying facts
  2. Research2 pieces
  3. Guides3 guides
  4. Operator Insights7 operator accounts
  5. Where It FitsOn the AI Application Platform stack
  6. Related Products7 products