Claude API · Setup and first request
Install the TypeScript SDK
Install the official SDK for TypeScript and JavaScript.
npm install @anthropic-ai/sdk
Official Claude API documentation
More setup and first request commands
- Install the Python SDK
- Set your API key
- Send your first message (Python)
- Send your first message (TypeScript)
- Send your first message (curl)
- Pick a model
All setup and first request commands · Claude API cheatsheet