ai-sdk

Official

AI SDK documentation and guidance for building AI-powered features with Vercel's framework.

vercel ↓ 43k
Claude Code
View source ↗

What it does

  • Repository: https://github.com/vercel/ai
  • Documentation: https://ai-sdk.dev/docs
  • Installed: the version field in nodemodules/ai/package.json.
  • Latest: run npm view ai version.

Requirements & configuration

  • 1. Authenticate with OIDC (for Vercel deployments) or get an AI Gateway API key.

Configuration: AI_GATEWAY_API_KEY

Derived from the skill's own SKILL.md documentation · extracted 2026-07-23

AI SDK documentation and guidance for building AI-powered features with Vercel's framework.

Source

Repository: https://github.com/vercel/ai

ai-sdk FAQ

What does the ai-sdk skill do?

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat". Repository: https://github.com/vercel/ai Documentation: https://ai-sdk.dev/docs

What does ai-sdk require?

1. Authenticate with OIDC (for Vercel deployments) or get an AI Gateway API key. Configuration keys: AI_GATEWAY_API_KEY.

How do I install ai-sdk?

Run: npx -y skills add https://github.com/vercel/ai --skill ai-sdk --agent claude-code — the source lives at github.com/vercel/ai.

Maintain ai-sdk?

Let people know it's listed here — add the badge (live metrics, light/dark aware) or a plain link to your README or docs.

ai-sdk on getagentictools
[![ai-sdk on getagentictools](https://getagentictools.com/badge/skills/vercel-ai-ai-sdk.svg)](https://getagentictools.com/skills/vercel-ai-ai-sdk?ref=badge)
npx agentictools info skills/vercel-ai-ai-sdk

The second line is the CLI lookup for this page — handy in READMEs and docs.