[metadata]
apple-mobile-web-app-status-bar-style: default
description: Official tools for building with the Claude API: the ant CLI, client SDKs in seven languages, and framework-specific libraries.
mobile-web-app-capable: yes
og:description: Official tools for building with the Claude API: the ant CLI, client SDKs in seven languages, and framework-specific libraries.
og:image: https://platform.claude.com/docs/og?locale=en&path=cli-sdks-libraries/overview&design-rev=1
og:image:alt: CLI, SDKs, and libraries
og:image:height: 630
og:image:type: image/png
og:image:width: 1200
og:locale: en
og:site_name: Claude Platform Docs
og:title: CLI, SDKs, and libraries
og:type: article
og:url: https://platform.claude.com/docs/en/cli-sdks-libraries/overview
twitter:card: summary_large_image
twitter:description: Official tools for building with the Claude API: the ant CLI, client SDKs in seven languages, and framework-specific libraries.
twitter:image: https://platform.claude.com/docs/og?locale=en&path=cli-sdks-libraries/overview&design-rev=1
twitter:title: CLI, SDKs, and libraries
viewport: width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover

[canonical-links]
https://platform.claude.com/docs/en/cli-sdks-libraries/overview

[document-links]
AI agents: https://claude.com/solutions/agents
API reference: /docs/en/api/overview
Admin: /docs/en/manage-claude/admin-api
Anthropic: https://www.anthropic.com/company
Apple Foundation Models: /docs/en/cli-sdks-libraries/libraries/apple-foundation-models
Authentication options: /docs/en/cli-sdks-libraries/cli/authentication
Availability: https://www.anthropic.com/supported-countries
Best practices: /docs/en/about-claude/use-case-guides/overview
Blog: https://claude.com/blog
C#: /docs/en/cli-sdks-libraries/sdks/csharp
CLI, SDKs, and libraries : /docs/en/cli-sdks-libraries/overview
Careers: https://www.anthropic.com/careers
Claude API skill: /docs/en/agents-and-tools/agent-skills/claude-api-skill
Claude Agent SDK: https://code.claude.com/docs/en/agent-sdk/overview
Claude Code: https://code.claude.com/docs/en/overview
Claude Managed Agents: /docs/en/managed-agents/overview
Claude Platform Docs: /docs
Claude Platform Docs: /docs/en/home
Claude on AWS: https://claude.com/partners/amazon-bedrock
Claude on Google Cloud: https://claude.com/partners/google-cloud-vertex-ai
Code modernization: https://claude.com/solutions/code-modernization
Coding: https://claude.com/solutions/coding
Connectors: https://claude.com/partners/mcp
Courses: https://claude.com/resources/courses
Customer stories: https://claude.com/customers
Customer support: https://claude.com/solutions/customer-support
Discord: https://www.anthropic.com/discord
Economic Futures: https://www.anthropic.com/economic-futures
Engineering at Anthropic: https://www.anthropic.com/engineering
Events: https://www.anthropic.com/events
Financial services: https://claude.com/solutions/financial-services
Go: /docs/en/cli-sdks-libraries/sdks/go
Government: https://claude.com/solutions/government
Higher education: https://claude.com/solutions/education
Java: /docs/en/cli-sdks-libraries/sdks/java
K-12 teachers: https://claude.com/solutions/teachers
Life sciences: https://claude.com/solutions/life-sciences
Log in: /login?returnTo=%2Fdocs%2Fen%2Fcli-sdks-libraries%2Foverview
Managed Agents: /docs/en/managed-agents/overview
Messages: /docs/en/intro
Middleware: /docs/en/cli-sdks-libraries/middleware
Models & pricing: /docs/en/about-claude/models/overview
News: https://www.anthropic.com/news
OpenAI SDK compatibility: /docs/en/cli-sdks-libraries/libraries/openai-sdk
Overview: /docs/en/cli-sdks-libraries/overview
PHP: /docs/en/cli-sdks-libraries/sdks/php
Powered by Claude: https://claude.com/partners/powered-by-claude
Privacy policy: https://www.anthropic.com/legal/privacy
Python: /docs/en/cli-sdks-libraries/sdks/python
Quickstart: /docs/en/cli-sdks-libraries/cli/quickstart
Release notes: /docs/en/release-notes/overview
Research: https://www.anthropic.com/research
Responsible Scaling Policy: https://www.anthropic.com/news/announcing-our-updated-responsible-scaling-policy
Responsible disclosure policy: https://www.anthropic.com/responsible-disclosure-policy
Ruby: /docs/en/cli-sdks-libraries/sdks/ruby
Scripting and automation: /docs/en/cli-sdks-libraries/cli/scripting
Security and compliance: https://trust.anthropic.com
Service partners: https://claude.com/partners/services
Startups program: https://claude.com/programs/startups
Status: https://status.claude.com/
Support: https://support.claude.com/
Terms of service: Commercial: https://www.anthropic.com/legal/commercial-terms
Terms of service: Consumer: https://www.anthropic.com/legal/consumer-terms
Transparency: https://www.anthropic.com/transparency
TypeScript: /docs/en/cli-sdks-libraries/sdks/typescript
Usage policy: https://www.anthropic.com/legal/aup
Use cases: https://claude.com/resources/use-cases
Using the CLI: /docs/en/cli-sdks-libraries/cli/using
ant CLI: /docs/en/cli-sdks-libraries/cli/quickstart
https://instagram.com/claudeai
https://www.linkedin.com/showcase/claude
https://www.threads.com/@claudeai
https://www.youtube.com/@anthropic-ai
https://x.com/claudeai
 API reference: /docs/en/api/overview
 Console: /
 Log in: /login

[content]
CLI, SDKs, and libraries - Claude Platform Docs
Claude Platform Docs
Messages
Managed Agents
Admin
Resources

Best practices
Models & pricing
CLI, SDKs, and libraries

Claude API skill
Release notes

API reference
English


Console
Log in



Search
⌘K
CLI, SDKs, and libraries
Overview
ant CLI
Quickstart
Authentication options
Using the CLI
Scripting and automation
Client SDKs
Middleware
Python
TypeScript
C#
Go
Java
PHP
Ruby
Libraries and integrations
Apple Foundation Models
OpenAI SDK compatibility

Log in

CLI, SDKs, and libraries

Overview
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Claude Platform Docs
Solutions
AI agents
Code modernization
Coding
Customer support
Financial services
Government
Higher education
K-12 teachers
Life sciences
Partners
Claude on AWS
Claude on Google Cloud
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
Copy page

Official tools for building with the Claude API: the ant CLI, client SDKs in seven languages, and framework-specific libraries.
Copy page

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.
Apple Foundation Models
Swift package for Apple's
LanguageModelSession
API
OpenAI SDK compatibility
Use Claude through the OpenAI SDK surface

Building agents or using Claude Code?
The CLI, client SDKs, and libraries are for calling the Claude API yourself: you send each request and handle each response. Claude Code, the Claude Agent SDK, and Claude Managed Agents work at a higher level, providing the agent loop, tool execution, and runtime.
Claude Code

Agentic coding tool for delegating coding tasks to Claude
Claude Agent SDK

Build agents that run in a process you operate
Claude Managed Agents
Run agents in Anthropic's managed infrastructure
Was this page helpful?


CLI
Client SDKs
Libraries and integrations
Building agents or using Claude Code?
