Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Anthropic SDKs - 10 languages recorded

Anthropic SDKs by language

Anthropic ships official SDKs for Python, TypeScript, Go, Java, C# and Ruby. Its PHP and Swift SDKs are labelled beta. Its docs list no SDK for Rust and Kotlin.

Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.

Anthropic's SDK docs: platform.claude.com/docs/en/cli-sdks-libraries/overview. Compare every provider in the SDK grid.

Official
the provider's own SDK.
Beta
the provider's own SDK, which it labels beta (Fireworks AI says alpha).
OpenAI SDK
the provider's docs point to the OpenAI SDK for this language.
Community
a library the provider's docs link but do not ship. Not official.
None
the provider's SDK docs list no SDK for this language.
-
Not recorded: no entry in the data for this language.

TypeScript and JavaScript

Official SDK
Package
@anthropic-ai/sdk
Install
Install
npm install @anthropic-ai/sdk
Repo
github.com/anthropics/anthropic-sdk-typescript
Docs
platform.claude.com/docs/en/cli-sdks-libraries/sdks/typescript

From the docs

Anthropic provides three kinds of official tooling for building with the Claude API ... Client SDKs: General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby.
platform.claude.com/docs/en/cli-sdks-libraries/overview
TypeScript SDKs from every provider

Go

Official SDK
Package
github.com/anthropics/anthropic-sdk-go
Install
Install
go get github.com/anthropics/anthropic-sdk-go
Repo
github.com/anthropics/anthropic-sdk-go
Docs
platform.claude.com/docs/en/cli-sdks-libraries/sdks/go

From the docs

Anthropic provides three kinds of official tooling for building with the Claude API ... Client SDKs: General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby.
platform.claude.com/docs/en/cli-sdks-libraries/overview
Go SDKs from every provider

Java

Official SDK
Package
com.anthropic:anthropic-java
Install
Install
implementation("com.anthropic:anthropic-java:VERSION")

VERSION stands for the version the docs pin. Pin the current release from the package registry.

Repo
github.com/anthropics/anthropic-sdk-java
Docs
platform.claude.com/docs/en/cli-sdks-libraries/sdks/java
Notes
Gradle line verbatim except the pinned version, replaced with VERSION; a Maven tab is also given (groupId com.anthropic, artifactId anthropic-java).

From the docs

Anthropic provides three kinds of official tooling for building with the Claude API ... Client SDKs: General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby.
platform.claude.com/docs/en/cli-sdks-libraries/overview
Java SDKs from every provider

C# and .NET

Official SDK
Package
Anthropic
Install
Install
dotnet add package Anthropic
Repo
github.com/anthropics/anthropic-sdk-csharp
Docs
platform.claude.com/docs/en/cli-sdks-libraries/sdks/csharp

From the docs

As of version 10+, the `Anthropic` package is now the official Anthropic SDK for C#. Package versions 3.X and below were previously used for the tryAGI community-built SDK, which has moved to `tryAGI.Anthropic`.
platform.claude.com/docs/en/cli-sdks-libraries/sdks/csharp
C# SDKs from every provider

Swift

Official, labelled beta

Not a full Messages API client. This is a Foundation Models integration: it plugs Claude into Apple's Foundation Models API, and Anthropic files it under libraries and integrations, not client SDKs.

Package
ClaudeForFoundationModels
Install
Install
.package(url: "https://github.com/anthropics/ClaudeForFoundationModels.git", from: "VERSION")

VERSION stands for the version the docs pin. Pin the current release from the package registry.

Repo
github.com/anthropics/ClaudeForFoundationModels
Docs
platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
Notes
Not a general-purpose Messages API client: the overview files it under 'Libraries and integrations', which 'expose Claude through another framework's API surface. They are not general-purpose Messages API clients.' It plugs Claude into Apple's Foundation Models LanguageModelSession API. Version replaced with VERSION.

From the docs

Beta. This package targets the Foundation Models server-side language model API introduced in the OS 27 betas. APIs might change during the beta.
platform.claude.com/docs/en/cli-sdks-libraries/libraries/apple-foundation-models
Swift SDKs from every provider

No SDK in the docs

Anthropic's SDK docs list no SDK for these languages. The quote shows what they do list.

More on Anthropic

Newsletter

Know when a provider ships a new SDK

One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.