Anthropic SDK TypeScript — AI skill for Claude Code
Access to Anthropic's safety-first language model APIs in TypeScript.
How to install Anthropic SDK TypeScript
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anthropics/anthropic-sdk-typescript and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Anthropic SDK TypeScript does
Access to Anthropic's safety-first language model APIs in TypeScript.
Alternatives in AI
- WindsurfAPI — Turn Windsurf / Devin Desktop's 100+ AI models (Claude, GPT, Gemini, DeepSeek, Kimi, GLM, SWE) into OpenAI-, A 3k ★
- Anthropic SDK Csharp — Access to Anthropic's safety-first language model APIs in C# 317 ★
- Claude Code 2.1.88 — Source code of @anthropic-ai/claude-code v2.1.88, extracted from the npm package's source map (cli.js.map) 169 ★
README
Claude SDK for TypeScript
[](https://npmjs.org/package/@anthropic-ai/sdk)
The Claude SDK for TypeScript provides access to the [Claude API](https://docs.anthropic.com/en/api/) from server-side TypeScript or JavaScript applications.
Documentation
Full documentation is available at **[platform.claude.com/docs/en/api/sdks/typescript](https://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
TypeScript >= 4.9 is supported.
The following runtimes are supported:
- 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
dangerouslyAllowBrowsertotrue.
Note that React Native is not supported at this time.
If you are interested in other runtime environments, please open or upvote an issue.
Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md).
License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Related Skills
Anthropic SDK Go
Access to Anthropic's safety-first language model APIs via Go
Awareness SDK
Local-first AI agent memory — one command, 13+ IDEs, works offline. Persistent memory for Claude Code, Cursor,
CodeBrew
A terminal-based AI coding agent built on the Anthropic Claude Agent SDK — chat with Claude to read, edit, and
Fxapis MCP Examples
Connect Claude, Cursor, VS Code, the OpenAI API and the Anthropic API to fxapis's hosted MCP server for MetaTr
Gearbox Routing
A toolkit for running AI coding agents well: model and effort routing across Anthropic, OpenAI, Gemini and Z.a
Base Harness
A minimal, reliable, provider-agnostic AI agent harness in TypeScript — the agentic loop, tools, permissions,
Related Agents
LLM Expert
Use this agent for AI SDK integration, LLM provider configuration, prompt template management, error handling
Engineering API Platform Engineer
Expert API platform engineer for public and partner APIs — contract-first design (OpenAPI/gRPC), versioning an
Fec TypeScript Reviewer
TypeScript/JavaScript special review: type safety, async correctness, Node/Web safety, idioms. Run the project