# Anthropic SDK: 7.8 out of 10

A strong pick. 3rd of 9 in [AI SDKs and agent frameworks](https://elestia.ai/opensource/ai-sdks/index.md).

@anthropic-ai/sdk is Anthropic's official TypeScript client for Claude. It is well typed, released often, and the first to support new Claude features such as prompt caching, extended thinking, and server and client tools. It is a strong pick when you build on Claude alone. If you want one API across providers or React UI hooks, a provider-neutral SDK such as the AI SDK fits better.

**Best for:** Server-side TypeScript projects that build on Claude and want every API feature as soon as it ships.

## Scores

- **Overall: 7.8** (likely 6.8 to 8.8)
  - Claude Opus 5.5 (7.5): This is the best way to use the full Claude API from TypeScript. It is actively maintained by Anthropic, light on dependencies, and growing fast. It covers only one provider and has no UI layer, so for most new apps that want flexibility, the AI SDK is the better default, with this SDK used underneath or beside it. The 1.0 breaking changes are a cost to plan for.
  - GPT-6.2 Sol (8.1): This is a strong first choice for a new Claude-first project because its typed API coverage is deep and Anthropic updates it frequently. Vercel AI SDK is the stronger default for teams that expect to switch model providers, and LangGraph.js fits workflows that need durable execution. Beta agent interfaces and uncertainty about direct adoption leave room in the range.
- **Needed by many: 5.2** (likely 4.1 to 6.6)
  - Claude Opus 5.5 (5.0): Many JS/TS developers now call language models. Claude is one of the two or three main providers, so a large group needs this client. It serves only one provider, which makes it narrower than the category as a whole.
  - GPT-6.2 Sol (5.3): The SDK serves JavaScript and TypeScript teams building Claude features on Node.js, Deno, Bun, and edge runtimes. The single-provider scope limits who needs it because teams can also reach Claude through a multi-provider SDK. The developer survey measures interest in Claude models, so the share of projects that need this client directly is uncertain.
- **Helps a lot: 8.1** (likely 7.1 to 9.1)
  - Claude Opus 5.5 (8.0): It covers the full Claude API, with excellent types, typed errors, retries, streaming helpers and a tool runner. AI coding agents also know it well. It has no multi-provider abstraction and no UI hooks, and independent guides say streaming to a frontend is more verbose than with the AI SDK.
  - GPT-6.2 Sol (8.2): Version 1.12.0 provides typed requests and responses, two streaming interfaces, automatic retries, and tool helpers. Anthropic supplies TypeScript examples and an API skill for coding agents, with limited independent evidence on generated code quality. In-stream overload errors still lack an HTTP status, and the hosted agent interface is in beta. One independent benchmark found lower latency on small prompts via the direct client, but it compared end-to-end network paths.
- **Holds up over time: 8.5** (likely 7.4 to 9.4)
  - Claude Opus 5.5 (8.5): A large, funded model provider backs it, with 846 commits and 247 GitHub releases in a year, and the issue backlog is small. The 1.0 release follows API version 2026-10-21 and removed sampling parameters and changed auth, so upgrades can break code. The SDK still exists only as long as Anthropic supports its API.
  - GPT-6.2 Sol (8.4): Anthropic maintains the official client, and the npm package published 98 versions in the past year. Repository activity also covers sibling cloud SDKs, and issue handling varies. One reported tool-runner bug took about seven weeks to close. The recent 1.0 upgrade required changes for some apps, and the number of people with publishing access is unclear.
- **Used widely: 7.1** (likely 5.9 to 8.3)
  - Claude Opus 5.5 (8.0): Downloads rose from 11M to 273M per 4 weeks, a ratio of about 25 against a median of 4.1, which is the fastest growth among the major peers. Much of that is transitive, because LangChain adapters and many agent tools install it. Its 1,986 dependent repos trail the AI SDK (2,455) and are far below the OpenAI SDK (19,804), so the number of direct choices is smaller than the downloads suggest.
  - GPT-6.2 Sol (6.1): Four-week npm downloads rose 24.7× year over year, well above the 4.1× catalog baseline and the fastest growth among the listed peers. The collector found 1,986 dependent repositories and 148 npm packages, with fewer tracked repositories than Vercel AI SDK, LangChain.js, or the OpenAI SDK. Automated builds and indirect installs through packages such as LangChain's Anthropic integration make the number of projects choosing the client directly hard to estimate. GitHub stars and Bluesky links are modest beside the category leaders.
- **Vouched for: 7.0** (likely 5.7 to 8.3)
  - Claude Opus 5.5 (6.5): It is the vendor's own client, and agent frameworks build on it through their Anthropic adapters. Independent guides recommend it for Claude-only server work. Little community discussion of it shows up on HN or Bluesky, and it does not appear in developer surveys, so most of the endorsement comes from the vendor and from tutorials.
  - GPT-6.2 Sol (7.5): LangChain.js uses the SDK for its Anthropic integration, and Datadog and OpenPanel support tracing its calls. An independent team benchmarked the client against Vercel AI Gateway and reported a latency advantage for short prompts in its setup. The developer survey measures Claude model interest, and public evidence on SDK-specific satisfaction and retention is sparse.
- **Safe: 8.0** (likely 6.9 to 9.0)
  - Claude Opus 5.5 (8.0): It has 3 dependencies, an Apache-2.0 licence, and releases published by the vendor's automated pipeline. The two moderate 2026 advisories hit only the optional local memory tool and were fixed quickly (for example, 0.81.0 fixed the sibling-directory escape). There is no Scorecard data, which leaves some uncertainty.
  - GPT-6.2 Sol (8.0): The package has three declared dependencies and a permissive Apache-2.0 license. Both known moderate advisories affected the local filesystem memory helper, and patched versions shipped on the dates of the repository disclosures. The project documents automated npm publishing and a manual token-based path. OpenSSF Scorecard data was unavailable, and publishing access and provenance were unverified.

## Good

- It is the official client, so new Claude features land here first, including prompt caching, thinking, citations, batches, files and beta tools.
- It is generated from the API spec, with precise discriminated-union types for content blocks and typed error classes such as OverloadedError.
- It needs only 3 dependencies and runs on Node, Deno, Bun, Cloudflare Workers and Vercel Edge.
- Anthropic maintains it full-time, with 846 commits and 98 npm versions in the last year.

## Bad

- It only talks to Claude, so switching or mixing providers means rewriting tool and message code.
- It has no React or UI streaming hooks, and streaming to a frontend takes more boilerplate than with the AI SDK.
- Version 1.0 (October 2026) removed temperature, top_p and top_k, removed text completions, and changed the auth header. Some of these fail only at runtime.
- Its built-in local memory tool had two path and permission advisories in 2026.

## The numbers

- Downloads, 4 weeks: 273M
- In a year: ×25
- GitHub stars: 2.2k
- Commits, 12 months: 846
- Last npm release: Nov 2026
- Advisories, 24 months: 2
- Licence: Apache-2.0
- GitHub: https://github.com/anthropics/anthropic-sdk-typescript
- npm: https://www.npmjs.com/package/@anthropic-ai/sdk

The SDK of one model provider.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
