anthropics/anthropic-sdk-typescript
Access to Anthropic's safety-first language model APIs in TypeScript
What it is
The Anthropic SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications. Full documentation is available at platform.claude.com/docs/en/api/sdks/typescript. Node.js 20 LTS or later (non-EOL) versions. Deno v1.28.0 or higher. Bun 1.0 or later. Cloudflare Workers. Vercel Edge Runtime. Jest 28 or greater with the "node" environment ("jsdom" is not supported at this time). Nitro v2.6 or greater. Web browsers: disabled by default to avoid exposing your secret API credentials (see API key best practices). Enable browser support by explicitly setting dangerouslyAllowBrowser to true.
When to use it
Reach for anthropic-sdk-typescript when you need to call, serve, run locally, fine-tune or chat with a language model — it's written in TypeScript and fits stacks tagged claude, llm.