anthropics

Anthropic SDK Python — Development skill for Claude Code

Development community

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

README

Claude SDK for Python

[![PyPI version](https://img.shields.io/pypi/v/anthropic.svg)](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.