Claude SDKs and ant CLI ship new major versions that default to API version 2026-10-21
Python SDK 2.0.0, TypeScript 1.0.0, C# 13.0.0, Go 2.0.0, Java 3.0.0, PHP 1.0.0, Ruby 2.0.0 and ant CLI 2.0.0 send API version 2026-10-21, carry their own breaking changes, and move from MIT to Apache 2.0.
What does this mean for me?
Plan for it
Engineering leadership
Cost, risk, timeline, team impact Plan for itA routine dependency bump to these versions changes API behaviour and the licence, from MIT to Apache 2.0. Pin current majors until a migration is scheduled, and have whoever tracks licences update their records.
Engineer
What to change, what breaks, what to test Plan for itPin your SDK major until you've migrated. Upgrading sends API version 2026-10-21, sends the key as Authorization: Bearer (fix proxies reading X-Api-Key), and changes Go import paths to /v2. ant 2.0.0 drops --api-key and --auth-token.
General consumer
Using the Claude apps, not the API No impactNothing to do. These are developer libraries and do not change the Claude apps.
Anthropic released new major versions of every client SDK and the ant CLI: Python 2.0.0, TypeScript 1.0.0, C# 13.0.0, Go 2.0.0, Java 3.0.0, PHP 1.0.0, Ruby 2.0.0 and ant 2.0.0. They send API version 2026-10-21 by default, including from their Amazon Bedrock and Google Cloud clients, so upgrading an SDK also opts every request into that version’s breaking changes. The removed parameters and old field names are gone from the SDK types and CLI flags too.
The new versions also have breaking changes that do not depend on the API version. The SDKs and CLI send the API key as Authorization: Bearer instead of X-Api-Key; the Claude API accepts either, but a proxy or gateway that reads or sets X-Api-Key needs updating. A client now holds a single credential, and the migration guide lists per-language changes, including Text Completions removed and client-side compaction removed from the tool runner. The CLI drops --api-key and --auth-token, which now fail with flag provided but not defined; use the environment variables, the -stdin flags or ant auth login.
Go users must change import paths to github.com/anthropics/anthropic-sdk-go/v2, and the CLI’s Go module path to .../anthropic-cli/v2; the old path keeps installing v1 with no warning. TypeScript users of the Bedrock, Vertex, Foundry, AWS or Google Cloud packages must move those to their 1.0.0 releases at the same time, or end up with two copies of @anthropic-ai/sdk.
The new versions are licensed under Apache 2.0 instead of MIT. Earlier versions stay MIT. Teams that track dependency licences need to update their records. On Bedrock, calls to models older than Claude 4.7 must stay on the current SDK major version.
API surface
| Parameter | Change | Breaking | Models |
|---|---|---|---|
--api-key | removed | yes | |
--auth-token | removed | yes |