Anthropic SDK Python — Development skill for Claude Code
PyPI version.
How to install Anthropic SDK Python
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open anthropics/anthropic-sdk-python and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Anthropic SDK Python does
PyPI version.
Alternatives in Development
- Claude API — Build apps with the Claude API or Anthropic SDK 94.1k ★
- MCP Python SDK — Python SDK for building MCP servers 22.3k ★
- Claude Code SDK Python — The official Python SDK for Claude Code 5.6k ★
README
Claude SDK for Python
[](https://pypi.org/project/anthropic/)
The Claude SDK for Python provides access to the [Claude API](https://docs.anthropic.com/en/api/) from Python applications.
Documentation
Full documentation is available at **[platform.claude.com/docs/en/api/sdks/python](https://platform.claude.com/docs/en/api/sdks/python)**.
Installation
pip install anthropic
Upgrading from a `0.x` release? See the [v1 migration guide](MIGRATION.md).
Getting started
import os
from anthropic import Anthropic
client = Anthropic(
api_key=os.environ.get("ANTHROPIC_API_KEY"), # This is the default and can be omitted
)
message = client.messages.create(
max_tokens=1024,
messages=[
{
"role": "user",
"content": "Hello, Claude",
}
],
model="claude-opus-5-5",
)
print(message.content)
Requirements
Python 3.10+
Contributing
See [CONTRIBUTING.md](./CONTRIBUTING.md).
License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
Related Skills
Anthropic SDK Ruby
Gem Version
Package
Bump version, build wheel, and publish to PyPI
Dario
A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline,
Anthropic.SDK
An unofficial C#/.NET SDK for accessing the Anthropic Claude API. This package is not affiliated with, endorse
Openapis
Free Claude API + free OpenAI API in one unified proxy. Drop-in compatible with Anthropic SDK, OpenAI SDK, Cla
Agent Harness
Unified harness for hot-swapping between OpenAI Agents SDK and Anthropic Claude Agent SDK with shared tool reg
Related Agents
Dashclaw Drift Auditor
Audits DashClaw's drift-prone hardcoded counts and version stamps — SDK method counts (Node/Python), MCP tool/
Publisher
PyPI publishing specialist. Use proactively when the user wants to publish to PyPI, release a new version, or
Python Dependency Auditor
Use this agent when the user wants to check if Python dependencies are outdated, needs a dependency audit repo