• Messages
  • Managed Agents
  • Admin
Search...
⌘K
CLI, SDKs, and libraries
Overview
ant CLI
QuickstartAuthentication optionsUsing the CLIScripting and automation
Client SDKs
PythonTypeScriptC#GoJavaPHPRuby
Libraries and integrations
OpenAI SDK compatibility
Log in
Overview
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Solutions

  • AI agents
  • Code modernization
  • Coding
  • Customer support
  • Education
  • Financial services
  • Government
  • Life sciences

Partners

  • Amazon Bedrock
  • Google Cloud's Vertex AI

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Company

  • Anthropic
  • Careers
  • Economic Futures
  • Research
  • News
  • Responsible Scaling Policy
  • Security and compliance
  • Transparency

Learn

  • Blog
  • Courses
  • Use cases
  • Connectors
  • Customer stories
  • Engineering at Anthropic
  • Events
  • Powered by Claude
  • Service partners
  • Startups program

Help and security

  • Availability
  • Status
  • Support
  • Discord

Terms and policies

  • Privacy policy
  • Responsible disclosure policy
  • Terms of service: Commercial
  • Terms of service: Consumer
  • Usage policy
CLI, SDKs, and libraries

CLI, SDKs, and libraries

Official tools for building with the Claude API: the ant CLI, client SDKs in seven languages, and framework-specific libraries.

Anthropic provides three kinds of official tooling for building with the Claude API:

  • CLI: The ant command-line tool for shell scripting and interactive use.
  • Client SDKs: General-purpose Messages API clients for Python, TypeScript, C#, Go, Java, PHP, and Ruby. Each SDK provides idiomatic interfaces, type safety, and built-in support for streaming, retries, and error handling.
  • Libraries and integrations: Packages and compatibility layers that expose Claude inside another framework's API surface rather than the Messages API directly.

For the full API specification, see the API reference.

CLI

ant CLI

Shell scripting, typed flags, response transforms

Client SDKs

Python

Sync and async clients, Pydantic models

TypeScript

Node.js, Deno, Bun, and browser support

C#

.NET Standard 2.0+, IChatClient integration

Go

Context-based cancellation, functional options

Java

Builder pattern, CompletableFuture async

PHP

Value objects, builder pattern

Ruby

Sorbet types, streaming helpers

Libraries and integrations

Libraries and integrations expose Claude through another framework's API surface. They are not general-purpose Messages API clients.

OpenAI SDK compatibility

Use Claude through the OpenAI SDK surface

Was this page helpful?

  • CLI
  • Client SDKs
  • Libraries and integrations