ClaudeMap

Vercel AI SDK

The TypeScript toolkit for AI apps and agents — with first-class Anthropic/Claude support.

SDKs & Toolingtypescriptsdknextjsstreaming

Vercel's AI SDK (26k+ stars) is the most popular TypeScript layer for building AI-powered applications: unified generateText/streamText APIs, tool calling, agent loops, and UI hooks for React/Next.js streaming. Claude is supported through the official @ai-sdk/anthropic provider. The standard choice for Next.js apps that talk to Claude.

What it does

  • Vercel AI SDK (`ai` package): unified TypeScript API across OpenAI/Anthropic/Google and more providers
  • Streaming-first APIs (`streamText`, `generateText`, `generateObject`) plus tool calling
  • `npx skills add vercel/ai` installs a coding-agent skill for AI SDK usage

When to use it

The pragmatic choice for TS apps that call multiple model providers — swap providers without rewriting call sites, and stream UI updates natively in Next.js/React.

Getting started

Requires Node.js 22+:

npm install ai

For coding agents:

npx skills add vercel/ai

Things to know

Provider coverage is broad but not uniform — provider-specific features (e.g. Anthropic prompt caching knobs) vary per adapter. It abstracts chat/tool APIs, not every vendor-specific endpoint.

Repository

vercel/ai

Charted

Related on the map

  • Harness Bridge

    SDK / Tool

    A local launcher that points Claude Code and seven other coding harnesses at any OpenAI-, Anthropic- or Responses-compatible endpoint — without editing a single config file.

    • launcher
    • local-models
    • cli
    • menu-bar
  • Claude for Siri

    SDK / Tool

    Answers macOS Spotlight and Siri prompts with your signed-in Claude Code account — an experimental macOS 27 model-delegation provider.

    • macos
    • siri
    • spotlight
    • model-delegation
  • Extract your own local chat history from ten AI coding assistants into one normalized JSONL — for fine-tuning, analytics, or backing up years of conversations. Standard library only.

    • cli
    • data-export
    • jsonl
    • backup