← Tracker · Agent framework

AI SDK

Updated

TL;DR: AI SDK (by Vercel; category: Agent framework). Vercel's free, open-source TypeScript toolkit for building AI features and agents in React, Next.js, Vue, Svelte or plain Node.js. AI SDK Core gives one API for text, structured output, tool calls and agents across many model providers, so switching providers is mostly a one-line change. AI SDK UI adds hooks for chat and generated interfaces. A newer harness layer (HarnessAgent) runs established agent harnesses such as Claude Code, Codex and Pi through the same interface. Pricing: Free and open source under Apache 2.0 (GitHub LICENSE, checked Nov 26, 2026). You pay only your model providers, plus hosting if you deploy on Vercel or elsewhere.. Best for: TypeScript and Next.js developers adding AI features.

BuildersAgent frameworkVercel

Vercel's free, open-source TypeScript toolkit for building AI features and agents in React, Next.js, Vue, Svelte or plain Node.js. AI SDK Core gives one API for text, structured output, tool calls and agents across many model providers, so switching providers is mostly a one-line change. AI SDK UI adds hooks for chat and generated interfaces. A newer harness layer (HarnessAgent) runs established agent harnesses such as Claude Code, Codex and Pi through the same interface.

Features and pricing are based on Vercel's official site and docs (vendor claims), not our own testing. Our take is labeled separately below.

The Builder Brief Take

Who it's for

  • TypeScript and Next.js developers adding AI features
  • Teams that want to switch model providers easily
  • Apps that need streaming chat or typed output

Who should skip it

  • Python teams
  • Anyone wanting built-in memory, evals and hosting (look at Mastra)
  • People who do not write code

Where it works

  1. Chat feature: Add a streaming assistant to a web app.
  2. Structured output: Get typed fields your code can check and act on.
  3. Provider swap: Move a feature to a cheaper model without a rewrite.

Pros and cons

Pros

  • Free, Apache 2.0
  • One API across many providers
  • Strong streaming and UI hooks
  • Harness support for Claude Code, Codex and Pi

Cons

  • Not a full agent platform
  • Major-version upgrades can need code changes
  • TypeScript only
  • We have not tested it

The move: getting started with AI SDK

  1. Build one feature
  2. Use structured output
  3. Add tools one at a time
  4. Compare a cheaper provider
  5. Pin the major version

How it helps

Who: A TypeScript developer adding a chat, summary or agent feature to a web app who wants to stay free to change model providers.

  1. Build one feature with AI SDK Core and your current provider, such as a support answer drafted from your docs.
  2. Use structured output for anything your code acts on, so you get fields you can check rather than free text.
  3. Add tools one at a time, and require a confirmation step before any tool that sends, refunds or deletes.
  4. Swap in a cheaper provider for the same feature and compare quality and cost on twenty real inputs.
  5. Pin the major version; upgrades between majors can need code changes.

Result: An AI feature in your own app that you can move between model providers without a rewrite.

Why it matters

Editorial assessment: for TypeScript teams this is the lightest sensible default. It does the boring parts well, provider switching, streaming and typed output, and stays out of the way. It is not an agent platform: memory, evals and hosting are yours to add, or look at Mastra if you want them built in. Python teams should look at LangChain, LangGraph or Pydantic AI instead.

AI SDK alternatives

Recent changes

Putting it to work? Get a starter stack for your job in about a minute with the Stack Picker, or see how done-with-you setup works if you want help.

Get changes in your inbox

New AI tools, honest reviews and playbooks. One email a week.

Free. Unsubscribe anytime.

Make an AI tool? List your tool on Builder Brief. Free listings get the same editorial review as paid ones.