Additional configuration is needed to use Anthropic’s Client SDKs through a partner platform. If you are using Amazon Bedrock, see this guide; if you are using Google Cloud Vertex AI, see this guide; if you are using Microsoft Foundry, see this guide.
Python
Python library GitHub repo Requirements: Python 3.8+ Installation:TypeScript
TypeScript library GitHub repoWhile this library is in TypeScript, it can also be used in JavaScript libraries.
Java
Java library GitHub repo Requirements: Java 8 or later Installation: Gradle:Go
Go library GitHub repo Requirements: Go 1.22+ Installation:C#
C# library GitHub repoThe C# SDK is currently in beta.
Ruby
Ruby library GitHub repo Requirements: Ruby 3.2.0 or later Installation: Add to your Gemfile:PHP
PHP library GitHub repoThe PHP SDK is currently in beta.
Beta namespace in client SDKs
Every SDK has abeta namespace that is available for accessing new features that Anthropic releases in beta versions. Use this in conjunction with beta headers to access these features. Refer to each SDK’s GitHub repository for specific usage examples.