📄 claude/api/client-sdks

File: client-sdks.md | Updated: 11/15/2025

Source: https://docs.claude.com/en/api/client-sdks

Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .

Claude Docs home pagelight logodark logo

US

English

Search...

Ctrl K

Search...

Navigation

Using the API

Client SDKs

Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes

On this page

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 For detailed usage instructions, refer to each SDK’s GitHub repository.

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 .

Python

Python library GitHub repo Requirements: Python 3.8+ Installation:

Copy

pip install anthropic

TypeScript

TypeScript library GitHub repo

While this library is in TypeScript, it can also be used in JavaScript libraries.

Installation:

Copy

npm install @anthropic-ai/sdk

Java

Java library GitHub repo Requirements: Java 8 or later Installation: Gradle:

Copy

implementation("com.anthropic:anthropic-java:2.10.0")

Maven:

Copy

<dependency>
    <groupId>com.anthropic</groupId>
    <artifactId>anthropic-java</artifactId>
    <version>2.10.0</version>
</dependency>

Go

Go library GitHub repo Requirements: Go 1.22+ Installation:

Copy

go get -u 'github.com/anthropics/anthropic-sdk-go@v1.17.0'

C#

C# library GitHub repo

The C# SDK is currently in beta.

Requirements: .NET 8 or later Installation:

Copy

git clone git@github.com:anthropics/anthropic-sdk-csharp.git
dotnet add reference anthropic-sdk-csharp/src/Anthropic.Client

Ruby

Ruby library GitHub repo Requirements: Ruby 3.2.0 or later Installation: Add to your Gemfile:

Copy

gem "anthropic", "~> 1.13.0"

Then run:

Copy

bundle install

PHP

PHP library GitHub repo

The PHP SDK is currently in beta.

Requirements: PHP 8.1.0 or higher Installation:

Copy

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 to access these features. Refer to each SDK’s GitHub repository for specific usage examples.

Was this page helpful?

YesNo

Features overview Beta headers

Assistant

Responses are generated using AI and may contain mistakes.