Skip to content
Agents tracked: 378 Downloads (7d): 244M down 5.7% GitHub stars: 8.4M VS Code installs: 151M Releases (7d): 407 Agent status: 1 with issues Updated Oct 10, 2026

Anthropic SDK

Official TypeScript SDK for calling Claude API and building agent applications.

Model SDKs npm MIT

Used in agent projects
211
1.7% of 12,697 public repos built with AI coding agents
Rank in model sdks
#5 of 15
by use in those projects
Downloads
46.5M
npm, last 7 days, @anthropic-ai/sdk
GitHub stars
2,136
last push Oct 9, 2026

How Anthropic SDK is used

Anthropic SDK is a dependency in 211 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (1.7%), #5 of 15 in model sdks. The most used alternative there is OpenAI. Projects that use it most often also use Zod (56.4%), tsx (42.2%), Vitest (42.2%). It is more common in projects set up for Devin Desktop (6.6%) than for GitHub Copilot (2.3%).

Often used with Anthropic SDK

Zod56.4% of Anthropic SDK projects · 3.3× more than average
tsx42.2% of Anthropic SDK projects · 4.2× more than average
Vitest42.2% of Anthropic SDK projects · 3.5× more than average
OpenAI34.1% of Anthropic SDK projects · 12.0× more than average
dotenv46.4% of Anthropic SDK projects · 2.9× more than average
TypeScript85.8% of Anthropic SDK projects · 1.5× more than average
Playwright (JavaScript)31.3% of Anthropic SDK projects · 3.6× more than average
Express28.0% of Anthropic SDK projects · 4.3× more than average

By coding agent

Claude Code4.5% of projects set up for it
Cursor3.1% of projects set up for it
GitHub Copilot2.3% of projects set up for it
Gemini CLI4.1% of projects set up for it
Devin Desktop6.6% of projects set up for it
OpenAI Codex3.8% of projects set up for it
OpenCode2.8% of projects set up for it
Kiro5.5% of projects set up for it

Share of public repos configured for each agent that list Anthropic SDK as a dependency.

Install

Packagenpm install @anthropic-ai/sdk
Packages counted@anthropic-ai/sdk, @anthropic-ai/claude-agent-sdk, @anthropic-ai/claude-code, @anthropic-ai/mcpb, @anthropic-ai/sandbox-runtime, @anthropic-ai/bedrock-sdk, @anthropic-ai/tokenizer, @anthropic-ai/dxt
Main stacksTypeScript / JavaScript (115), Next.js (77), Python (13), React Native / Expo (3)
Example projectsapify/apify-mcp-server, Doist/todoist-mcp, narnia-sh/layrr, 5pyj29s7cm-tech/LumiCore, timothywarner-org/claude-code

Alternatives to Anthropic SDK

All model sdks

Tool Used in agent projectsDownloads / wk GitHub starsLicense
OpenAI npm
Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.
362 (2.9%) 43.2M 11.2K Apache-2.0
AI SDK npm
Vercel's unified SDK for building AI apps with OpenAI, Anthropic, Google and more.
328 (2.6%) 29.8M 27.2K Apache-2.0
Google Generative AI npm
Official SDK for Google Gemini API to build AI-powered applications.
258 (2.0%) 25.3M 1,686 Apache-2.0
OpenAI Python Library pypi
Official Python SDK to call OpenAI APIs including GPT models and embeddings.
244 (1.9%) 75.1M 31.8K —
Anthropic Python SDK pypi
Official Python library for calling Claude via the Anthropic API.
115 (0.9%) 40.9M 3,954 MIT
Google GenAI Python SDK pypi
Official Python SDK for Google's generative AI models including Gemini.
111 (0.9%) 34.1M 4,013 —
Hugging Face Hub pypi
Python client library for downloading and publishing models and datasets on Hugging Face.
59 (0.5%) 60M 3,974 Apache-2.0
Transformers.js npm
Run Hugging Face transformer models directly in browser without servers.
34 (0.3%) 3.9M 16.3K Apache-2.0
Is Anthropic SDK right for your project? Ask AgentGid →