Tooling Published here Reported by Anthropic on

Anthropic Python SDK hits v1.0 with breaking changes: httpx2, Python 3.10+, and deprecated surface removed

The Claude Python SDK moved to v1.0. The HTTP layer switches from `httpx` to httpx2, an API-compatible maintained fork — build custom `http_client`, `Timeout`, and transport objects from `httpx2`, and call `httpx2.alias_httpx()` at startup if you use tracing or mocking libraries that patch `httpx`. v1.0 requires Python 3.10+, removes the legacy Text Completions API and the `temperature`, `top_p`, and `top_k` parameters on Messages methods, and drops the tool runner's client-side `compaction_control`. On the async client, `.with_raw_response` results now require `await response.parse()`, and `AnthropicBedrock` raises instead of silently defaulting to `us-east-1`.

Why it matters

Two of these break silently rather than loudly. If your tracing or mocking layer patches `httpx`, it will simply stop seeing SDK traffic unless you call `alias_httpx()`. And any Bedrock deployment that has been quietly relying on the `us-east-1` default now fails at startup — which is arguably the right behavior, but it is a deploy-time surprise.

What to do

Pin your current SDK version before upgrading, then work the migration guide, which has before-and-after snippets for every change. Grep your codebase for `temperature`, `top_p`, and `top_k` on Messages calls — those are removed, not deprecated. Verify your AWS region is explicitly configured for `AnthropicBedrock`, and confirm your observability still captures SDK requests after the httpx2 swap.

Tags: Anthropic SDK Python Migration

More from August 22, 2026

All AI news