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.
- Audience: people building software and AI agents
- Pricing (vendor's published price): 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.. Prices change, so verify on the official site.
- Official site: https://ai-sdk.dev
- Source / changelog: https://ai-sdk.dev/docs/introduction
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
- Chat feature: Add a streaming assistant to a web app.
- Structured output: Get typed fields your code can check and act on.
- 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
- Build one feature
- Use structured output
- Add tools one at a time
- Compare a cheaper provider
- 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.
- Build one feature with AI SDK Core and your current provider, such as a support answer drafted from your docs.
- Use structured output for anything your code acts on, so you get fields you can check rather than free text.
- Add tools one at a time, and require a confirmation step before any tool that sends, refunds or deletes.
- Swap in a cheaper provider for the same feature and compare quality and cost on twenty real inputs.
- 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
- OpenAI Agents SDK: OpenAI's open-source framework for building agents in Python (Python 3.10+) or TypeScript: agents with instructions, tools, guardrails and handoffs, plus sandbox agents that work in a container over long jobs, realtime and voice agents, sessions for conversation history, human-in-the-loop approvals and built-in tracing. Provider-agnostic: works with OpenAI's Responses and Chat Completions APIs and, per the README, 100+ other LLMs.
- LangGraph: Open-source library from LangChain for building stateful, long-running agents as graphs: you define the steps, the state passed between them, checkpoints that let a run pause and resume, and points where a human approves before the agent continues. LangChain's paid LangSmith platform adds tracing, evaluation and hosted Agent Servers for running LangGraph agents in production.
- CrewAI: Open-source Python framework for orchestrating role-based teams of agents (for example a researcher, a writer and a reviewer) that work through tasks together, plus a hosted platform with a visual editor, an AI copilot, tracing, guardrails and human-in-the-loop steps for running those workflows.
- LangChain: The most widely used open-source framework for building LLM apps and agents, in Python and JavaScript, with integrations for hundreds of model providers, databases and tools. Its agent layer is built on LangGraph, the same company's lower-level runtime for long-running, stateful agents. Around the free framework LangChain sells LangSmith: tracing and evals to see what each agent run did, hosted Agent Servers, Fleet (agents built in plain language, no code) and Engine, which scans traces for failures and proposes fixes.
- LlamaIndex: Open-source Python and TypeScript framework for building agents and question-answering apps over your own documents and data, with connectors for many file types, databases and model providers. The same company runs LlamaParse, a paid cloud service for parsing and extracting data from complex documents, and LiteParse, a free local parser for simpler ones.
- AutoGen: Open-source framework from Microsoft for multi-agent applications.
Recent changes
- 2026-11-26: Current major line is AI SDK 7 (ai@7.0.183 released Nov 26), with patch releases still shipping for versions 5 and 6. Docs now describe harness support for running Claude Code, Codex and Pi through HarnessAgent. Vendor-documented. Source
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.
Almost done. Confirm your email in the beehiiv tab we just opened.
That email does not look right. Try again.
Free. Unsubscribe anytime.Make an AI tool? List your tool on Builder Brief. Free listings get the same editorial review as paid ones.