# Anthropic Python SDK

Official Python client for the Claude API\.

Canonical: https://claudelist.com/listings/anthropic-python-sdk

Category: SDKs & APIs

Source: official · Anthropic

Source checked: 2026-10-14

Website: https://github.com/anthropics/anthropic-sdk-python

The repository documents synchronous and asynchronous Claude API usage in Python.

## Install or set up

1. In a Python environment, install the official package. Set `ANTHROPIC_API_KEY` in your environment and follow the repository’s first request example.

```sh
pip install anthropic
```

Installation guide: https://github.com/anthropics/anthropic-sdk-python
