Skip to content
PluginStats

ai-sdk-provider-claude-code weekly downloads statistics

By ben-vargas (4 listings) · npm · AI SDKs

AI SDK v7 provider for Claude via Claude Agent SDK (use Pro/Max subscription)

View on npm Fresh · Dec 6, 2026

ai-sdk-provider-claude-code has 66,507 recorded weekly downloads on npm, a decrease of 3.1% over the past 30 days, ranking #715 of 3,247 tracked listings.

Weekly downloads
66,507
Official API · Dec 5, 2026
7-day growth
+12.5%
+7.4K weekly downloads
30-day growth
-3.1%
-2.1K weekly downloads
90-day growth
+80.3%
+29.6K weekly downloads
Rank
#715
▲ 14 in 7 days

About ai-sdk-provider-claude-code

<p align="center"> <img src="https://img.shields.io/badge/status-stable-00A79E" alt="stable status"> <a href="https://www.npmjs.com/package/ai-sdk-provider-claude-code"><img src="https://img.shields.io/npm/v/ai-sdk-provider-claude-code?color=00A79E" alt="npm version" /></a> <a href="https://www.npmjs.com/package/ai-sdk-provider-claude-code"><img src="https://img.shields.io/npm/unpacked-size/ai-sdk-provider-claude-code?color=00A79E" alt="install size" /></a> <a href="https://www.npmjs.com/package/ai-sdk-provider-claude-code"><img src="https://img.shields.io/npm/dy/ai-sdk-provider-claude-code.svg?color=00A79E" alt="npm downloads" /></a> <a href="https://nodejs.org/en/about/releases/"><img src="https://img.shields.io/badge/node-%3E%3D22-00A79E" alt="Node.js ≥ 22" /></a> <a href="https://www.npmjs.com/package/ai-sdk-provider-claude-code"><img src="https://img.shields.io/npm/l/ai-sdk-provider-claude-code?color=00A79E" alt="License: MIT" /></a> </p>

AI SDK Provider for Claude Agent SDK

Latest Release: Version 4.x supports AI SDK v7 stable with the Claude Agent SDK. Version 3.x moves to maintenance for AI SDK v6 under the ai-sdk-v6 tag.

ai-sdk-provider-claude-code lets you use Claude via the Vercel AI SDK through the official @anthropic-ai/claude-agent-sdk and the Claude Code CLI.

Version Compatibility

Provider VersionAI SDK VersionUnderlying SDKNPM TagStatusBranch
4.x.xv7@anthropic-ai/claude-agent-sdklatestStablemain
3.x.xv6@anthropic-ai/claude-agent-sdkai-sdk-v6Maintenanceai-sdk-v6
2.x.xv5@anthropic-ai/claude-agent-sdkai-sdk-v5Legacyai-sdk-v5
1.x.xv5@anthropic-ai/claude-codev1-claude-code-sdkLegacyv1
0.x.xv4@anthropic-ai/claude-codeai-sdk-v4Legacyai-sdk-v4

Claude Code CLI: provider 4.3.3 bundles Claude Code CLI 2.1.283, the latest CLI release (2026-09-25), through its exact @anthropic-ai/claude-agent-sdk@0.3.283 pin. If you run your own binary via pathToClaudeCodeExecutable, check the minimum Claude Code version noted on individual settings.

Install commands for each line are listed under Installation below.

Zod Compatibility

The 4.x line requires Zod ^4.1.8. Version 3.x remains available for AI SDK v6 under the ai-sdk-v6 tag.

npm install ai-sdk-provider-claude-code ai zod@^4.1.8

Note: Zod 3 support was dropped in v3.2.0 due to the underlying @anthropic-ai/claude-agent-sdk@0.2.x requiring Zod 4. If you need Zod 3 support, use ai-sdk-provider-claude-code@3.1.x.

Installation

1. Install and authenticate the CLI

See the official docs for platform-specific options.

curl -fsSL https://claude.ai/install.sh | bash
claude auth login
2. Add the provider
# For AI SDK v7 (4.x; current latest tag)
npm install ai-sdk-provider-claude-code ai

# For AI SDK v6 maintenance (3.x)
npm install ai-sdk-provider-claude-code@ai-sdk-v6 ai@^6.0.0

# For AI SDK v5
npm install ai-sdk-provider-claude-code@ai-sdk-v5 ai@^5.0.0

# For AI SDK v4 (legacy)
npm install ai-sdk-provider-claude-code@ai-sdk-v4 ai@^4.3.16
# or use a specific version: npm install ai-sdk-provider-claude-code@^0.2.2

Disclaimer

This is an unofficial community provider and is not affiliated with or endorsed by Anthropic or Vercel. By using this provider:

  • You understand that your data will be sent to Anthropic's servers through the Claude Agent SDK
  • You agree to comply with Anthropic's Terms of Service
  • You acknowledge this software is provided "as is" without warranties of any kind

Please ensure you have appropriate permissions and comply with all applicable terms when using this provider.

Quick Start

AI SDK v7 (latest)
// npm install ai-sdk-provider-claude-code ai
import { streamText } from 'ai';
import { claudeCode } from 'ai-sdk-provider-claude-code';

const result = streamText({
  model: claudeCode('haiku'),
  prompt: 'Hello, Claude!',
});

const text = await result.text;
console.log(text);
AI SDK v6 (maintenance)
// npm install ai-sdk-provider-claude-code@ai-sdk-v6 ai@^6.0.0
import { streamText } from 'ai';
import { claudeCode } from 'ai-sdk-provider-claude-code';

const result = streamText({
  model: claudeCode('haiku'),
  prompt: 'Hello, Claude!',
});

const text = await result.text;
console.log(text);
AI SDK v5
// npm install ai-sdk-provider-claude-code@ai-sdk-v5 ai@^5.0.0
import { streamText } from 'ai';
import { claudeCode } from 'ai-sdk-provider-claude-code';

const result = streamText({
  model: claudeCode('haiku'),
  prompt: 'Hello, Claude!',
});

const text = await result.text;
console.log(text);

Breaking Changes

Version 4.0.0 (AI SDK v7)

This release ports the provider to AI SDK v7 / LanguageModelV4, adds first-class Claude Agent SDK callback, query-controller, MCP, and image support, and keeps the v7 support boundaries explicit:

  • Requires Node.js ≥ 22 and Zod ^4.1.8
  • ESM-only package output; CommonJS require() is no longer available
  • Tool failures now use spec tool-result parts/events with isError: true instead of the provider-specific tool-error stream extension
Optional AI SDK v7 surfaces not implemented

Version 4.0.0 intentionally keeps optional provider surfaces absent unless the Claude Agent SDK has a durable provider-reference mapping:…

Description from the npm listing.

  • ai-sdk
  • claude-agent-sdk
  • anthropic
  • cli
  • language-model
  • llm

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

ai-sdk-provider-claude-code weekly downloads on npm, last 90 days: 66,507 weekly downloads as of Dec 5, 2026, +80.3% over 90 days.ai-sdk-provider-claude-codeWeekly downloads on npm · Last 90 days66,507downloads / week+80.3% over 90 days020K40K60K80KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
ai-sdk-provider-claude-code weekly downloads on npm, last 90 days: 66,507 weekly downloads as of Dec 5, 2026, +80.3% over 90 days.

7/30/90-day growth

ai-sdk-provider-claude-code weekly downloads growth on npm: +12.5% over 7 days, -3.1% over 30 days, +80.3% over 90 days.ai-sdk-provider-claude-codeWeekly downloads growth on npm66,507downloads / week now7-day growth+7,389 weekly downloads+12.5%30-day growth-2,114 weekly downloads-3.1%90-day growth+29,614 weekly downloads+80.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
ai-sdk-provider-claude-code weekly downloads growth on npm: +12.5% over 7 days, -3.1% over 30 days, +80.3% over 90 days.

Ranking history

ai-sdk-provider-claude-code npm ranking history: currently #715 (by weekly downloads).ai-sdk-provider-claude-codenpm ranking · by weekly downloads · Last 90 days#715current rank#660#680#700#720#740Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
ai-sdk-provider-claude-code npm ranking history: currently #715 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 36, #15 (overall #715)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 3, #5 (overall #45)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (170)
Recent weekly downloads observations for ai-sdk-provider-claude-code
Date (UTC)Weekly downloadsChange vs. previous
66,507+2.6K
63,882+737
63,145+2.8K
60,385+2.6K
57,779+1.5K
56,254-2.1K
58,332-786
59,118+101
59,017-1.9K
60,935-2K
62,920-3.6K
66,518-2.4K
68,896+1.3K
67,590—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/ai-sdk-provider-claude-code. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.