Claude SDK for Python, which lets Python applications access the Claude API. It includes installation via pip and example code for creating messages and calling Claude models, with full API SDK documentation available on platform.claude.com.
Project status
- Actively maintained: The source shows frequent, recent GitHub updates (latest upstream push on 2026-07-08, and multiple SDK updates in the prior 1 to 2 weeks), indicating it is actively maintained rather than dormant.
- Cadence: The updates suggest a steady development rhythm, with versions landing roughly every few days to about a week (for example, 0.112.0 on 2026-06-24, then multiple updates from 2026-06-29 through 2026-07-02).
AI summary generated
Recent updates
v0.116.0
v0.116.0 introduces support for the new beta header value agent-memory-2026-07-22 across beta memory store endpoints. In the code, this beta header default is swapped in where the previous managed-agents-2026-04-01 value was used.
Featuresv0.115.1
v0.115.1 primarily changes the SDK surface area for beta/webhook-related types and a few other parameter and schema details. The release notes only mention removing nonfunctional types, but the code diff shows several breaking changes to exported types and request/response typing.
v0.115.0
v0.115.0 adds Managed Agents “event delta” streaming (event_start and event_delta), along with agent overrides and reverse pagination support. It also expands beta webhook event typing to include additional event categories related to agents and deployments. Several new beta types and streaming helpers were added to support these capabilities.
Featuresv0.114.0
v0.114.0 adds support for the new model string "claude-sonnet-5" across the typed model parameters used by the SDK. It also adjusts agent file tool path resolution to permit absolute paths when, after canonicalization, they resolve inside the configured workdir. No other breaking API surface changes are evident from the provided diff.
Featuresv0.113.0
v0.113.0 adds new tool parameter types for the 20260318 web_fetch and web_search variants, and wires them into the SDK's exported type unions. It also updates the Messages token counting APIs to accept a user profile ID header, and includes a fix for an async count_tokens output_format/output_config merge issue.
Featuresv0.112.0
v0.112.0 adds support for streaming `system.message` events, improves the local filesystem memory tool's directory creation security, and extends policy refusal categories. It also adds support for sending a user profile ID via the `anthropic-user-profile-id` request header across message and message batch APIs.
SecurityFeaturesv0.111.0
Release v0.111.0 adds helper telemetry tagging to the BetaRefusalFallbackMiddleware flow. Specifically, requests involved in client-side refusal fallbacks are now tagged with the x-stainless-helper value fallback-refusal-middleware (including across the primary and fallback hop).
Featuresv0.110.0
v0.110.0 primarily introduces support for an additional code execution tool version (documented: code_execution_20260120). The release also includes several telemetry and header-merging correctness fixes around the x-stainless-helper header handling. Code changes additionally introduce new beta fallback schema elements and a newer code execution tool version that are not mentioned in the release notes.
Featuresv0.109.2
Release v0.109.2 updates the SDK’s generated model type unions and version metadata. The only functional change visible in the diff is the removal of specific retired model identifiers from the SDK’s allowed model values.
Breakingv0.109.1
Release v0.109.1 primarily updates refusal metadata types to include a new refusal category, frontier_llm. The rest of the diff is versioning and regenerated OpenAPI-spec related metadata, with no other functional code changes shown.
v0.109.0
v0.109.0 adds initial client-side support for Managed Agents deployments, including new beta API resource surfaces for working with deployments. It also introduces additional credential handling via environment variable credentials (as stated in the release notes) and ships a large set of generated beta types for deployment, scheduling, events, and run error handling.
Featuresv0.108.0
v0.108.0 adds support for the new models claude-mythos-5 and claude-fable-5. It also introduces server-side fallbacks on refusal, plus a corresponding client-side fallbacks middleware that can retry declined requests along a fallback chain.
Featuresv0.107.1
Release v0.107.1 is a small bug fix focused on Anthropic Foundry authentication headers. It ensures that when using Foundry API key auth, requests include the expected `x-api-key` header in addition to the existing `api-key` header.
v0.107.0
v0.107.0 primarily updates beta Managed Agents related type definitions, with some docstring-level clarification and additional fields in various beta tool and webhook schemas. The release notes mention only a general “small updates to Managed Agents types”, but the code diff shows multiple concrete schema changes that are not called out.
BreakingFeaturesv0.106.0
v0.106.0 updates the SDK by deprecating Claude Opus 4.1 and improving schema transformation for $ref schemas with sibling $defs. It also fixes Foundry client copy/with_options behavior and adjusts Foundry auth header handling to prevent leaking Anthropic API keys to Foundry endpoints.
Featuresv0.105.2
Release v0.105.2 does not include any described feature, bug fix, or behavioral change in the provided release notes. The changelog content is limited to a version bump, while the code diff shows only version metadata updates and a small change to the release GitHub Actions workflow permissions.
v0.105.1
Release v0.105.1 primarily bumps the package version and updates internal release automation for publishing to PyPI. The only functional change reflected in the diff is CI/CD workflow logic related to Trusted Publishing, including removing explicit PYPI token wiring and adjusting the publish script behavior.
v0.105.0
v0.105.0 adds new API support for the claude-opus-4-8 model, introduces mid-conversation system instruction blocks, and exposes a new usage breakdown field output_tokens_details. The diff is largely additive, focused on new/optional typed fields and new type exports.
Featuresv0.104.1
v0.104.1 is a small streaming bug fix release. It ensures encrypted compaction metadata is preserved and emitted correctly through the beta streaming compaction event pipeline.
v0.104.0
Version 0.104.0 adds support for the `thinking-token-count-2026-05-13` beta to expose estimated token progress for streaming `thinking` block deltas. The Python SDK update is primarily a schema addition, introducing a new `estimated_tokens` field on the relevant delta type.
Features