Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

Claude SDK for TypeScript

NPM version

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.

关于 About

Access to Anthropic's safety-first language model APIs in TypeScript

语言 Languages

TypeScript97.4%
Shell1.7%
JavaScript0.8%
Ruby0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
358
Total Commits
峰值: 40次/周
Less
More

核心贡献者 Contributors