📦
Anthropic SDK Typescript
Access to Anthropic's safety-first language model APIs in TypeScript
0 installs
1.7K stars
228 forks
Trust: 92 — Excellent
Devtools
Installation
npx anthropic-sdk-typescriptAsk AI about Anthropic SDK Typescript
Powered by Claude · Grounded in docs
I know everything about Anthropic SDK Typescript. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
Claude SDK for TypeScript
The Claude SDK for TypeScript provides access to the Claude API from server-side TypeScript or JavaScript applications.
Documentation
Full documentation is available at platform.claude.com/docs/en/api/sdks/typescript.
Installation
npm install @anthropic-ai/sdk
Getting started
import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({
apiKey: process.env['ANTHROPIC_API_KEY'], // This is the default and can be omitted
});
const message = await client.messages.create({
max_tokens: 1024,
messages: [{ role: 'user', content: 'Hello, Claude' }],
model: 'claude-opus-4-6',
});
console.log(message.content);
Requirements
Node.js 18+
Contributing
See CONTRIBUTING.md.
License
This project is licensed under the MIT License. See the LICENSE file for details.
