
Ai Sdk
Official toolkit for building AI features with generateText, streamText, agents, tools, and embeddings across model providers.
- skills.sh installs
- 70.5K
- GitHub stars
- 28.1K
- last updated
- Aug 21, 2026
What it does
- Covers text generation, streaming, structured output, tool calling, agents, embeddings, and React hooks such as
useChatanduseCompletion - Points to version-matched docs and source bundled in
node_modules/ai/so code reflects the installed release rather than memory - Enforces verification of every API and model ID against bundled docs or the AI Gateway model list before writing code
- Designed for developers adding AI to a TypeScript app, with AI Gateway setup, agent guidance, DevTools, and a version-currency check
Install
$ npx -y skills add vercel/ai --skill ai-sdk -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
What the AI SDK Is
The AI SDK by Vercel (the ai package on npm) is a TypeScript toolkit for building AI applications. It provides a unified API across model providers for text generation, structured output, tool calling, agents, embeddings, and framework UI integrations.
- Repository: https://github.com/vercel/ai
- Documentation: https://ai-sdk.dev/docs
Critical: Do Not Trust Your Own Memory
Whatever you remember about the AI SDK is likely outdated. The SDK changes frequently across versions - APIs are renamed, removed, and added. Your training data almost certainly contains obsolete APIs, deprecated patterns, and model IDs that no longer exist. UI hooks like useChat are among the most frequently changed APIs, so be especially careful with client code.
Never write AI SDK code from memory. Always verify every API, option, and pattern against the documentation and source code for the version that is actually installed in the project.
Use the Bundled, Version-Matched Docs
The ai package ships its full documentation and source code inside node_modules. These always match the installed version, so trust them over anything you remember.
Details
- Repository
- github.com/vercel/ai
- Categories
- AI Agents & LLM Apps, Frontend & UI Code
More from vercel/ai
All 8Similar to Ai Sdk
More AI Agents & LLM Apps
vercel-ai-sdkwsimmonds/claude-nextjs-skills345 installsImplementation guide for Vercel AI SDK v5 covering chat, streaming, tool calling, embeddings, and MCP integration.
tanstack-aitanstack-skills/tanstack-skills1.6K installsProvider-agnostic, type-safe AI SDK with streaming, tool approvals, and React and Solid hooks.
ai-elementsvercel/ai-elements21K installsPre-built React chat UI components for AI assistants, installed as editable code on top of shadcn/ui.
langchainorchestra-research/ai-research-skills1.1K installsOpen-source framework for building LLM agents, RAG pipelines, and chatbots with swappable model providers.
develop-ai-functions-examplevercel/ai1.9K installsGuide for writing AI SDK function examples in examples/ai-functions/src, organized by function and provider.