anthropics/anthropic-sdk-python
Last release: 5 days ago
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, with recent upstream activity (last push 2026-05-27) and frequent published updates in late May 2026 (v0.104.1 to v0.98.0 over roughly 3 weeks).
- Apparent update cadence is about every few days to 1 week (e.g., v0.104.1 on 2026-05-22, v0.104.0 on 2026-05-21, v0.103.1 on 2026-05-19, v0.103.0 on 2026-05-19).
AI summary generated 6 days ago
Recent updates
v0.105.2
5 days agoRelease 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
5 days agoRelease 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
5 days agov0.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
1 week agov0.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
1 week agoVersion 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.
Featuresv0.103.1
2 weeks agov0.103.1 updates SessionToolRunner to support split-client “partial fulfilment” behavior when a session includes tool calls owned by a different client. Instead of posting an error for unowned tools, the runner now yields a dispatch record but posts no result, leaving the tool_use_id pending for the owning client.
Breakingv0.103.0
2 weeks agoRelease v0.103.0 adds support for self-hosted sandboxes in CMA via new client-side sandbox helpers. The diff is dominated by generated type changes for self-hosted environment configuration and new managed-agents session events and tool input schemas.
Featuresv0.102.0
2 weeks agov0.102.0 extends the SDK with new beta API surface area for prompt-cache diagnostics, adding request-level diagnostics input and response-level diagnostics output. It also adds new beta managed agents types related to web search results. Most changes appear additive (new optional fields and new generated types).
Featuresv0.101.0
3 weeks agov0.101.0 mainly updates the package version and makes small correctness and developer-experience tweaks. The release notes also claim a new AWS client feature, but the provided code diff only shows a formatting fix, version bumps, and example script updates.
Featuresv0.100.0
3 weeks agov0.100.0 adds new beta API support around Managed Agents, including multiagent coordinator topology and per-outcome evaluation state, plus webhook and vault validation related types. It also includes a small webhook configuration adjustment. The code diff is dominated by newly generated beta type models and exports, with very few deletions.
Featuresv0.99.0
4 weeks agov0.99.0 adds support for targeting a specific workspace during OIDC federation token exchange, driven by a new ANTHROPIC_WORKSPACE_ID environment variable and corresponding config/workload credentials support. The code also improves 401 error messaging for token exchange failures by adding a diagnostic hint path when workspace selection may be the cause.
BreakingFeaturesv0.98.1
4 weeks agoRelease v0.98.1 mainly updates version metadata and makes a small correction in an example configuration. The release notes describe a chores change, specifically a typo fix in the example.
v0.98.0
4 weeks agov0.98.0 focuses on improving the Beta Managed Agents APIs and adding new client authentication capabilities (workload identity federation, interactive OAuth, and auth profiles). The release also includes smaller bug fixes for streaming metadata and multipart form field naming, plus internal project housekeeping.
Featuresv0.97.0
1 month agov0.97.0 introduces support for CMA Memory in public beta, adding new beta-only request/response types related to memory stores and managed agent memory store resources. It also includes a client-side performance optimization for multipart requests and a couple of API spec related fixes.
Featuresv0.96.0
1 month agov0.96.0 expands beta support for user profiles and introduces token budget controls, along with adding the new model variant claude-opus-4-7. The release notes only mention these items at a high level, but the code diff also shows additional schema/type extensions around effort levels and compaction metadata.
Featuresv0.95.0
1 month agov0.95.0 updates Bedrock Mantle authentication to use an Authorization Bearer header when operating in API key mode. It also extends model deprecation related metadata for Sonnet and Opus 4, and refreshes the generated OpenAPI-derived config/versioning.
Featuresv0.94.1
1 month agov0.94.1 is a small patch release focused on streaming behavior. It updates the streaming event filter to recognize additional Server-Sent Events (SSE) types so they are included in the SDK's stream output.