OpenAI vs Anthropic SDK
In 4,864 JavaScript/TypeScript projects set up for AI coding agents, OpenAI is a dependency in 287 (5.9%) and Anthropic SDK in 239 (4.9%): OpenAI is 1.2× as common. Among repos created in the last 90 days that use a model sdks tool, OpenAI is in 13.8% and Anthropic SDK in 27.6%, against 35.5% and 29.0% of older ones. 89 projects list both, often a sign of a migration or of a monorepo with several apps.
Model SDKs npm Updated Nov 17, 2026
| OpenAI | 5.9% | |
|---|---|---|
| Anthropic SDK | 4.9% |
Share of 4,864 JavaScript/TypeScript projects set up for AI coding agents that list each one as a dependency.
Side by side
| OpenAI | Anthropic SDK | |
|---|---|---|
| Agent projects that use it | 287 | 239 |
| Rank in model sdks | #1 | #4 |
| In new repos with a model sdks tool (last 90 days) | 13.8% | 27.6% |
| In older repos with one | 35.5% | 29.0% |
| Downloads, last 7 days | 58.8M | 70.7M |
| GitHub stars | 11.3K | 2,179 |
| Last push to its repo | Nov 16, 2026 | Nov 16, 2026 |
| License | Apache-2.0 | Apache-2.0 |
| Funding | — | — |
| Projects that list both | 89 | |
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 | OpenAI | Anthropic SDK |
|---|---|---|---|
| Claude Code | 2,617 | 5.8% | 7.2% |
| GitHub Copilot | 2,350 | 4.6% | 3.4% |
| Cursor | 1,990 | 7.2% | 4.1% |
| Gemini CLI | 422 | 5.7% | 4.7% |
| OpenAI Codex | 409 | 2.4% | 4.4% |
| OpenCode | 304 | 2.6% | 3.3% |
| OpenClaw | 241 | 11.2% | 12.4% |
| Devin Desktop | 231 | 12.6% | 8.2% |
| Kiro | 125 | 5.6% | 6.4% |
| Roo-Code | 90 | 8.9% | 0% |
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.
OpenAI
Official TypeScript SDK for accessing OpenAI APIs including GPT and embeddings.
Most often used with it:
| dotenv | 57.8% of its projects |
|---|---|
| Zod | 61.0% of its projects |
| TypeScript | 88.9% of its projects |
| tsx | 45.3% of its projects |
| React | 65.2% of its projects |
npm install openai
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
More matchups
Anthropic SDK vs Google Generative AIOpenAI 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.