AI SDK
Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more.
Model SDKs npm Apache-2.0
Used in agent projects
328
2.6% of 12,697 public repos built with AI coding agents
Rank in model sdks
#2 of 15
by use in those projects
Downloads
29.8M
npm, last 7 days, ai
GitHub stars
27.2K
last push Oct 10, 2026
How AI SDK is used
AI SDK is a dependency in 328 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (2.6%), #2 of 15 in model sdks. The most used alternative there is OpenAI. Projects that use it most often also use Zod (80.5%), Class Variance Authority (54.9%), Tailwind Merge (58.8%). It is more common in projects set up for Kiro (8.2%) than for GitHub Copilot (4.1%).
Often used with AI SDK
| Zod | 80.5% of AI SDK projects · 4.7× more than average |
|---|---|
| Class Variance Authority | 54.9% of AI SDK projects · 3.9× more than average |
| Tailwind Merge | 58.8% of AI SDK projects · 3.5× more than average |
| clsx | 58.8% of AI SDK projects · 3.3× more than average |
| Radix UI | 47.0% of AI SDK projects · 3.9× more than average |
| Lucide React | 58.2% of AI SDK projects · 2.9× more than average |
| Next.js | 60.4% of AI SDK projects · 2.7× more than average |
| TypeScript | 91.8% of AI SDK projects · 1.6× more than average |
By coding agent
| Claude Code | 4.5% of projects set up for it |
|---|---|
| Cursor | 5.6% of projects set up for it |
| GitHub Copilot | 4.1% of projects set up for it |
| Gemini CLI | 7.3% of projects set up for it |
| OpenAI Codex | 5.6% of projects set up for it |
| OpenCode | 7.5% of projects set up for it |
| Devin Desktop | 5.1% of projects set up for it |
| Kiro | 8.2% of projects set up for it |
Share of public repos configured for each agent that list AI SDK as a dependency.
Install
| Package | npm install ai |
|---|---|
| Packages counted | ai, @ai-sdk/openai, @ai-sdk/react, @ai-sdk/google, @ai-sdk/anthropic, @ai-sdk/openai-compatible, @ai-sdk/groq, @ai-sdk/provider |
| Main stacks | Next.js (194), TypeScript / JavaScript (127), Python (3), React Native / Expo (3) |
| Example projects | nuxt/nuxt.com, NeurProjects/neur-app, inboundemail/inbound, 1600822305/AetherLink, nirholas/three.ws |
Alternatives to AI SDK
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| OpenAI npm Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings. |
362 (2.9%) | 43.2M | 11.2K | Apache-2.0 |
| Google Generative AI npm Official SDK for Google Gemini API to build AI-powered applications. |
258 (2.0%) | 25.3M | 1,686 | Apache-2.0 |
| OpenAI Python Library pypi Official Python SDK to call OpenAI APIs including GPT models and embeddings. |
244 (1.9%) | 75.1M | 31.8K | — |
| Anthropic SDK npm Official TypeScript SDK for calling Claude API and building agent applications. |
211 (1.7%) | 46.5M | 2,136 | MIT |
| Anthropic Python SDK pypi Official Python library for calling Claude via the Anthropic API. |
115 (0.9%) | 40.9M | 3,954 | MIT |
| Google GenAI Python SDK pypi Official Python SDK for Google's generative AI models including Gemini. |
111 (0.9%) | 34.1M | 4,013 | — |
| Hugging Face Hub pypi Python client library for downloading and publishing models and datasets on Hugging Face. |
59 (0.5%) | 60M | 3,974 | Apache-2.0 |
| Transformers.js npm Run Hugging Face transformer models directly in browser without servers. |
34 (0.3%) | 3.9M | 16.3K | Apache-2.0 |