← Back to daily report
+2 lines added
-0 lines removed
# Client SDKs¶
¶
We provide client libraries in a number of popular languages that make it easier to work with the Claude API.¶
¶
---¶
¶
This page includes brief installation instructions and links to the open-source GitHub repositories for Anthropic's Client SDKs. For basic usage instructions, see the [API reference](/docs/en/api/overview) For detailed usage instructions, refer to each SDK's GitHub repository. ¶
¶
<Note>¶
Additional configuration is needed to use Anthropic's Client SDKs through a partner platform. If you are using Amazon Bedrock, see [this guide](/docs/en/build-with-claude/claude-on-amazon-bedrock); if you are using Google Cloud Vertex AI, see [this guide](/docs/en/build-with-claude/claude-on-vertex-ai); if you are using Microsoft Foundry, see [this guide](/docs/en/build-with-claude/claude-in-microsoft-foundry).¶
</Note>¶
¶
## Python¶
¶
[Python library GitHub repo](https://github.com/anthropics/anthropic-sdk-python)¶
¶
**Requirements:** Python 3.8+¶
¶
**Minimum SDK version:** 0.22.0¶
¶
**Installation:**¶
¶
```bash¶
pip install anthropic¶
```¶
¶
---¶
¶
## TypeScript¶
¶
[TypeScript library GitHub repo](https://github.com/anthropics/anthropic-sdk-typescript)¶
¶
<Info>¶
While this library is in TypeScript, it can also be used in JavaScript libraries.¶
</Info>¶
¶
**Minimum SDK version:** 0.37.0¶
¶
**Installation:**¶
¶
```bash¶
npm install @anthropic-ai/sdk¶
```¶
¶
---¶
¶
## Java¶
¶
[Java library GitHub repo](https://github.com/anthropics/anthropic-sdk-java)¶
¶
**Requirements:** Java 8 or later¶
¶
**Installation:**¶
¶
Gradle:¶
```groovy¶
implementation("com.anthropic:anthropic-java:2.10.0")¶
```¶
¶
Maven:¶
```xml¶
<dependency>¶
<groupId>com.anthropic</groupId>¶
<artifactId>anthropic-java</artifactId>¶
<version>2.10.0</version>¶
</dependency>¶
```¶
¶
---¶
¶
## Go¶
¶
[Go library GitHub repo](https://github.com/anthropics/anthropic-sdk-go)¶
¶
**Requirements:** Go 1.22+¶
¶
**Installation:**¶
¶
```bash¶
go get -u 'github.com/anthropics/anthropic-sdk-go@v1.17.0'¶
```¶
¶
---¶
¶
## C#¶
¶
[C# library GitHub repo](https://github.com/anthropics/anthropic-sdk-csharp)¶
¶
<Info>¶
The C# SDK is currently in beta.¶
</Info>¶
¶
**Requirements:** .NET 8 or later¶
¶
**Installation:**¶
¶
```bash¶
dotnet add package Anthropic¶
```¶
¶
---¶
¶
## Ruby¶
¶
[Ruby library GitHub repo](https://github.com/anthropics/anthropic-sdk-ruby)¶
¶
**Requirements:** Ruby 3.2.0 or later¶
¶
**Installation:**¶
¶
Add to your Gemfile:¶
```ruby¶
gem "anthropic", "~> 1.13.0"¶
```¶
¶
Then run:¶
```bash¶
bundle install¶
```¶
¶
---¶
¶
## PHP¶
¶
[PHP library GitHub repo](https://github.com/anthropics/anthropic-sdk-php)¶
¶
<Info>¶
The PHP SDK is currently in beta.¶
</Info>¶
¶
**Requirements:** PHP 8.1.0 or higher¶
¶
**Installation:**¶
¶
```bash¶
composer require "anthropic-ai/sdk 0.3.0"¶
```¶
¶
---¶
¶
## Beta namespace in client SDKs¶
¶
Every SDK has a `beta` namespace that is available for accessing new features that Anthropic releases in beta versions. Use this in conjunction with [beta headers](/docs/en/api/beta-headers) to access these features. Refer to each SDK's GitHub repository for specific usage examples.
Unified Diff
--- a/api/client-sdks.md
+++ b/api/client-sdks.md
@@ -16,6 +16,8 @@
**Requirements:** Python 3.8+
+**Minimum SDK version:** 0.22.0
+
**Installation:**
```bash
@@ -31,6 +33,8 @@
<Info>
While this library is in TypeScript, it can also be used in JavaScript libraries.
</Info>
+
+**Minimum SDK version:** 0.37.0
**Installation:**