Anthropic's official TypeScript SDK: thin wrapper, clear purpose
It's the official Claude API client for Node.js, and it knows exactly what it is.
What it does
@anthropic-ai/sdk is Anthropic’s first-party TypeScript client for the Claude API. Install it, instantiate with an API key, call client.messages.create(). The README is almost aggressively minimal—install, one code block, done.
The interesting bit
The SDK auto-reads ANTHROPIC_API_KEY from env by default, so the config object can literally be empty. That’s a small courtesy that saves a line in every serverless function. Also notable: it requires Node 18+, which means no polyfill baggage for modern fetch.
Key highlights
- First-party SDK from Anthropic (not community-maintained)
- TypeScript-native with server-side JS/TS support
- Auto-discovers
ANTHROPIC_API_KEYenvironment variable - Targets Claude’s Messages API (
client.messages.create) - MIT licensed
Caveats
- README is bare-bones; actual docs live on platform.claude.com
- No mention of streaming, retries, or error handling in the README
- Model name
claude-opus-4-6in the example looks like a placeholder or typo
Verdict
Use this if you want the official, maintained path to Claude from Node.js. Skip it if you need a client with bells and whistles already documented—though the SDK likely has them, you’ll need to dig into the external docs to find out.