Anthropic provides an official Node.js/TypeScript SDK for Claude. What package would a developer install?
Select an answer to reveal the explanation.
Short Explanation and Infographic
The official Anthropic Node.js/TypeScript SDK package name is @anthropic-ai/sdk — scoped under the @anthropic-ai npm organization.
Full explanation below image
Full Explanation
Anthropic's official JavaScript/TypeScript SDK is published as '@anthropic-ai/sdk' on npm. Install with 'npm install @anthropic-ai/sdk'. It provides TypeScript types, async/await support, streaming, automatic retries, and all the same features as the Python SDK. Option A (openai) installs OpenAI's SDK, a different company's product. Option C (claude-api) is not the official Anthropic package — could be a third-party or impersonator package. Option D (anthropic-node) is also not the official package name. Always use the official @anthropic-ai/sdk to ensure you're getting the maintained, secure package.