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
You install the official Anthropic Node.js/TypeScript SDK with npm install @anthropic-ai/sdk. It’s scoped under the @anthropic-ai npm organization, so that’s the package you want.
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. The 'npm install openai' package installs OpenAI's SDK, a different company's product. The 'npm install claude-api' package is not the official Anthropic package — it could be a third-party or impersonator package. The 'npm install anthropic-node' package is also not the official package name. Always use the official @anthropic-ai/sdk to ensure you're getting the maintained, secure package.