Anthropic SDK
Official Anthropic SDK to call Claude from your code. Available in Python, TypeScript / JavaScript, Java, Go, Ruby. REST wrapper around the messages API with ergonomic helpers (streaming, tool use, vision, prompt caching, batches, files). The direct counterpart of the OpenAI SDK for Claude.
Strengths
- Strict TypeScript typings, autocomplete and type checking everywhere
- Helpers for SSE streaming, tool_use, vision, prompt caching, batches, files
- Automatic retry on 429 (rate limit) with exponential backoff
- Available in Python, TypeScript, Java, Go, Ruby, broad stack coverage
Limitations
- Anthropic API key required (usage-based billing, no API free tier)
- No native AWS Bedrock / Vertex AI layer, separate SDK needed for these providers
Best for
- Integrate Claude into a Node or Python app
- Build a tool-use agent with retry and streaming properly
- Quick prototype calling Claude from a CLI script