Skip to content
PluginStats

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

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

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

View on npm Fresh · Oct 18, 2026

ai-sdk-provider-claude-code has 31,331 recorded weekly downloads on npm, a decrease of 24.0% over the past 30 days, ranking #678 of 2,322 tracked listings.

Weekly downloads
31,331
Official API · Oct 18, 2026
7-day growth
-31.6%
-14.5K weekly downloads
30-day growth
-24.0%
-9.9K weekly downloads
90-day growth
-85.0%
-178.2K weekly downloads
Rank
#678
Among tracked npm listings

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: 31,331 weekly downloads as of Oct 18, 2026, -85.0% over 90 days.ai-sdk-provider-claude-codeWeekly downloads on npm · Last 90 days31,331downloads / week-85.0% over 90 days020K40K60K80K100K120K140K160K180KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
ai-sdk-provider-claude-code weekly downloads on npm, last 90 days: 31,331 weekly downloads as of Oct 18, 2026, -85.0% over 90 days.

7/30/90-day growth

ai-sdk-provider-claude-code weekly downloads growth on npm: -31.6% over 7 days, -24.0% over 30 days, -85.0% over 90 days.ai-sdk-provider-claude-codeWeekly downloads growth on npm31,331downloads / week now7-day growth-14,501 weekly downloads-31.6%30-day growth-9,904 weekly downloads-24.0%90-day growth-178,185 weekly downloads-85.0%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
ai-sdk-provider-claude-code weekly downloads growth on npm: -31.6% over 7 days, -24.0% over 30 days, -85.0% over 90 days.

Ranking history

ai-sdk-provider-claude-code npm ranking history: currently #678 (by weekly downloads).ai-sdk-provider-claude-codenpm ranking · by weekly downloads · Last 90 days#678current rank#670#680#690#700#710#720Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
ai-sdk-provider-claude-code npm ranking history: currently #678 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 34, #18 (overall #678)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 3, #3 (overall #43)
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 (122)
Recent weekly downloads observations for ai-sdk-provider-claude-code
Date (UTC)Weekly downloadsChange vs. previous
31,331+7.4K
23,970-5.1K
29,103+1.1K
28,016-9K
36,987-9K
45,9730
45,973+141
45,832-1.8K
47,677-2.3K
50,007-3.1K
53,136-2.2K
55,330-2K
57,331-10.6K
67,913—

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 Oct 20, 2026. See the methodology.