anthropics/anthropic-sdk-python v0.98.1
Summary
This is the README for anthropics/anthropic-sdk-python v0.98.1, a Python client library for accessing the Claude API.
View Cached Full Text
Cached at: 05/08/26, 08:19 AM
anthropics/anthropic-sdk-python
Source: https://github.com/anthropics/anthropic-sdk-python
Claude SDK for Python
The Claude SDK for Python provides access to the Claude API from Python applications.
Documentation
Full documentation is available at platform.claude.com/docs/en/api/sdks/python.
Installation
pip install anthropic
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-4-6",
)
print(message.content)
Requirements
Python 3.9+
Contributing
See CONTRIBUTING.md.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Similar Articles
anthropics/anthropic-sdk-python v0.96.0
Anthropic releases version 0.96.0 of the Claude SDK for Python, providing updated access to the Claude API for Python applications.
anthropics/anthropic-sdk-python v0.100.0
This article announces version 0.100.0 of the official Anthropic SDK for Python, providing developers with updated tools to integrate Claude models into their applications via pip installation.
anthropics/anthropic-sdk-typescript sdk: v0.89.0
Anthropic releases v0.89.0 of the Claude SDK for TypeScript, providing developers with updated access to the Claude API for server-side TypeScript and JavaScript applications.
anthropics/anthropic-sdk-typescript vertex-sdk: v0.16.0
Anthropic releases v0.16.0 of the Claude SDK for TypeScript, providing updated access to the Claude API for server-side JavaScript/TypeScript applications.
Anthropic says OpenClaw-style Claude CLI usage is allowed again
OpenClaw is a CLI tool that supports Anthropic Claude models via API key or Claude CLI reuse, with features including adaptive thinking defaults for Claude 4.6, fast mode service tier toggling, and configurable prompt caching. Anthropic has reportedly re-allowed OpenClaw-style Claude CLI usage.