Anthropic SDK vs Google Generative AI
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, Anthropic SDK is a dependency in 239 (4.9%) and Google Generative AI in 172 (3.5%): Anthropic SDK is 1.4× as common. Among repos created in the last 90 days that use a model sdks tool, Anthropic SDK is in 27.6% and Google Generative AI in 20.7%, against 29.0% and 20.8% of older ones. 43 projects list both, often a sign of a migration or of a monorepo with several apps.
Model SDKs npm Updated Nov 17, 2026
| Anthropic SDK | 4.9% | |
|---|---|---|
| Google Generative AI | 3.5% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| Anthropic SDK | Google Generative AI | |
|---|---|---|
| Agent projects that use it | 239 | 172 |
| Rank in model sdks | #4 | #5 |
| In new repos with a model sdks tool (last 90 days) | 27.6% | 20.7% |
| In older repos with one | 29.0% | 20.8% |
| Downloads, last 7 days | 70.7M | 30.3M |
| GitHub stars | 2,179 | 1,715 |
| Last push to its repo | Nov 16, 2026 | Nov 17, 2026 |
| License | Apache-2.0 | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 43 | |
Downloads include CI runs and installs as a dependency of other packages. Stars and pushes are from GitHub's API; downloads from npm.
By coding agent
| Projects set up for | JavaScript/TypeScript repos | Anthropic SDK | Google Generative AI |
|---|---|---|---|
| Claude Code | 2,617 | 7.2% | 4.4% |
| GitHub Copilot | 2,350 | 3.4% | 3.5% |
| Cursor | 1,990 | 4.1% | 4.2% |
| Gemini CLI | 422 | 4.7% | 6.4% |
| OpenAI Codex | 409 | 4.4% | 3.4% |
| OpenCode | 304 | 3.3% | 4.3% |
| OpenClaw | 241 | 12.4% | 6.2% |
| Devin Desktop | 231 | 8.2% | 6.9% |
| Kiro | 125 | 6.4% | 0% |
| Roo-Code | 90 | 0% | 5.6% |
Share of the JavaScript/TypeScript repos configured for each agent (its config file in the repo) that list the tool. A repo set up for two agents counts for both.
Anthropic SDK
Official TypeScript SDK for calling Claude API and building agent applications.
Most often used with it:
| OpenAI | 37.2% of its projects |
|---|---|
| Zod | 60.3% of its projects |
| Express | 33.5% of its projects |
| tsx | 43.9% of its projects |
| TypeScript | 84.1% of its projects |
npm install @anthropic-ai/sdk
Google Generative AI
Official SDK for Google Gemini API to build AI-powered applications.
Most often used with it:
| dotenv | 56.4% of its projects |
|---|---|
| Lucide React | 58.1% of its projects |
| React | 72.1% of its projects |
| TypeScript | 89.0% of its projects |
| tsx | 45.9% of its projects |
npm install @google/genai
More matchups
OpenAI vs Anthropic SDKOpenAI vs Google Generative AIOpenAI Python Library vs Anthropic Python SDKAnthropic Python SDK vs Google GenAI Python SDKOpenAI Python Library vs Google GenAI Python SDK
How we count
Projects are public GitHub repos our weekly scan finds through coding-agent config files (CLAUDE.md, AGENTS.md, .cursor/mcp.json and others); a project uses a tool when its package.json, requirements.txt or pyproject.toml lists it. "Same job" was checked for every pair, so add-ons and companions are never paired. Shares by repo age compare repos created in the last 90 days with older ones in the same scan. More on the method.