Ai Sdk
Vercel AI SDK guidance for chat, streaming, tool calling, agents, and structured output across providers.
- CCM score
- 57 of 100
- skills.sh installs
- 544
- GitHub stars
- 353
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers chat interfaces, text generation, structured output, tool calling, agents, MCP integration, embeddings, reranking, and image generation
- Guides building AI features with
useChat,streamText,generateText, andToolLoopAgentfor streaming responses - Flags direct OpenAI and Anthropic SDK imports and routes model selection through AI Gateway for failover and cost tracking
- Designed for app code in
app/api/chat/**,lib/ai/**, and similar paths, and for projects usingaior@ai-sdk/*packages
Install
$ npx -y skills add vercel/vercel-plugin --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/vercel-plugin
- Categories
- AI Agents & LLM Apps, Frontend & UI Code
- First seen
- Jun 3, 2026
More from vercel/vercel-plugin
All 25- React Best Practices491
- Deployments Cicd484
- Vercel Cli432
- Ai Gateway423
- Env Vars422
- Vercel Functions410
- Routing Middleware338
- Auth326
- Vercel Storage326
- Vercel Agent317
- Bootstrap315
- Chat Sdk315
- Verification315
- Workflow313
- Runtime Cache312
- Vercel Sandbox308
- Knowledge Update301
- Marketplace300
- Vercel Plugin Eval206
- Plugin Audit198
- Benchmark Agents197
- Release194
- Benchmark Testing193
- Benchmark E2e187
Similar to Ai Sdk
More AI Agents & LLM Appsvercel-ai-sdkSkillwsimmonds/claude-nextjs-skills351 installsImplementation guide for Vercel AI SDK v5 covering chat, streaming, tool calling, embeddings, and MCP integration.
vercel-aiSkillbobmatnyc/claude-mpm-skills351 installsUmbrella guide to Vercel's AI platform: AI SDK, AI Gateway, Vercel Agent, and MCP integrations.
ai-gatewaySkillvercel/vercel-plugin423 installsVercel's AI Gateway skill: model discovery, routing, fallbacks, budgets, and CLI-managed gateway resources for AI SDK apps.
openai-agents-sdkSkilllaguagu/claude-code-nextjs-skills2.6K installsPython SDK guide for building agents with handoffs, function tools, guardrails, sessions, streaming, and tracing.
tanstack-aiPluginsecondsky/claude-skills254 starsTanStack AI (alpha) provider-agnostic type-safe chat with streaming for OpenAI, Anthropic, Gemini, Ollama. Use for chat APIs, React/Solid frontends with useChat