Anthropic Python SDK
Official Python library for calling Claude via the Anthropic API.
Model SDKsPYPI
3. Used by agents' projects
Dependency in 115 public GitHub projects set up for AI coding agents that we scanned (1.8%).
4. Agent access
Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.
From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error
What Anthropic Python SDK does
Official Python library for calling Claude via the Anthropic API.
Anthropic Python SDK popularity
Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated
How Anthropic Python SDK is used
- Anthropic Python SDK is a dependency in 115 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (7.1% of the 1,623 Python ones), #6 of 92 in model sdks.
- Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 1,135; those are left out of every share on this page.
- The most used alternative in our scan is OpenAI Python Library (248 projects).
- Projects that use it most often also use python-dotenv (60.0%), OpenAI Python Library (56.5%), Pydantic (51.3%).
- It is more common in projects set up for OpenClaw (5.7%) than for GitHub Copilot (1.3%).
By coding agent
Often used with
More about Anthropic Python SDK
Agent Skills for it
- anthropic-administrator-automation: Automate Anthropic Admin tasks via Rube MCP (Composio). Always search tools first for current schemas.
- anthropic-administrator-automation: Automate Anthropic Admin tasks via Rube MCP (Composio). Always search tools first for current schemas.
- anthropic: Check Anthropic API access and list available Claude models. Read-only. Trigger phrases: anthropic, claude models, anthropic api.
- anthropic-frontend-design: This skill should be used when the user asks for "art direction", "a distinctive visual identity", or "a visual redesign". Develop typograph
Head to head
- OpenAI Python Library vs Anthropic Python SDK used together in 65 projects
- Anthropic Python SDK vs Google GenAI Python SDK used together in 20 projects
Alternatives
Anthropic Python SDK This page
Official Python SDK to call OpenAI APIs including GPT models and embeddings.
Official Python SDK for Google's generative AI models including Gemini.
Official SDK for building and running agents with OpenAI models.
Official Python client SDK for Alibaba DashScope API to call language models.
Official Python SDK for the Mistral AI API to call Mistral language models.
Official SDK for accessing Cohere's language models and APIs.
Get started
Install it.
pip install anthropicNo step-by-step start for Anthropic Python SDK yet: we have not written its hand-checked card.