⚠ BREAKING CHANGES client: upgrade to httpx2 and some minor breaking changes. See MIGRATION.md for details Features client: upgrade to httpx2 and some minor breaking changes. See MIGRATION.md for details (33e2967) Bug Fixes beta: stop warni
Catalog / AI platforms
Anthropic Python SDK changelog
Official Python client for the Claude API.
- Latest
- 1.0.0
- Shipped
- 20 Aug 20266 days ago
- Collected
- 60 releasesback to 17 Feb 2026
- Project
- github.com
- Feed
- RSS
Read today, the first day on record. Collection status
Version history
1.x1 release
0.x59 releases
Features api: managed agents web search config and self hosted sandbox memory (b75afd6)
Features api: Files and Skills APIs are now GA; add computer use and browser use toolsets (9a09e84)
Features api: additions to files and memory stores (09ce187) api: updates to skill, files, and user profiles (c6cbffd) client: add helpers for accessing the workspace ID in response headers (f79882b) Bug Fixes api: remove unsupported mid_co
Features api: add output_behavior to dream creation (create a new memory store or update the input store in place) (852c4bb) Bug Fixes bedrock,aws: run SigV4 signing off the event loop in async clients (#334) (2bae6c8) bedrock: expose beta.
Features api: add mid-conversation-tool-changes-2026-07-01 beta (c7d1531) api: add support for session budgets, advisor tool, pinned inference location and skills auto-loading from GitHub (193bae0) Chores api: remove retired Claude Opus 4.1
Bug Fixes mcp: support mcp sdk v2 alongside v1 (#300) (177f88c)
Bug Fixes mcp: pin mcp extra to <2 (#1783) (fb66371)
Features api: add claude-opus-5 model (bf4e31c) api: add tool addition/removal blocks and tool_change events (bf4e31c) api: expand client-side fallback credit token types and add server-side fallbacks default option (bf4e31c)
Features api: add new stop reason 'model_context_window_exceeded' (d983cde) Bug Fixes tools: handle binary files in agent toolset read/edit (#283) (417b76b)
Features api: add support for Managed Agents model effort, initial session events, and threads delta streaming (712bc6f)
Bug Fixes aws: handle credentials correctly when using AnthropicAWS.copy() (85d3881) Chores api: add support for new refusal category (d1dea0b) client: docs updates (b14f94c) deps: bump http-snapshot to 0.1.9 (#275) (434b657) deps: pin http
Features api: add support for dreaming (642eee7) api: add support for MCP Tunnels (d716df6) Bug Fixes credentials: keep credential material out of traceback frame locals via SecretStr (aa93a4d) Chores docs: small updates to field descriptio
Features api: add agent-memory-2026-07-22 beta header (e181d5c)
Chores api: remove some nonfunctional types from the SDKs (5e7c431)
Features api: add support for Managed Agents event delta streaming, agent overrides, reverse pagination, vault credential injection scoping, and agent and deployment webhook events (8c23f7e)
Features api: add support for claude-sonnet-5 (b893033) Bug Fixes agent_toolset: allow absolute paths that resolve inside workdir (#121) (0105529)
Features api: add support for 20260318 web fetch and support tools (88dbfb1) Bug Fixes async count_tokens missing output_format/output_config merge block (#162) (122c958) Chores api: accept user profile ID's when counting tokens (0b4d17a) d
Features client: add support for system.message streaming events (2450d59) Bug Fixes memory tool: create parent directories with the correct permissions (#135) (f2fc2a9) Chores api: add support for new refusal category (5ab533e) api: add su
Features helpers: tag refusal-fallback middleware requests with fallback-refusal-middleware (#96) (2f8ac78)
Features api: add support for new code_execution_20260120 tool (5e23212) Bug Fixes append x-stainless-helper across header merges instead of clobbering (#105) (922558e) bedrock: preserve stream event type (#1682) (b27e343) helpers: single s
Chores api: remove retired models from API and SDKs (d4bcfcc)
Bug Fixes api: add frontier_llm refusal category (d3a806b)
Features api: add support for Managed Agents deployments and environment variable credentials (47633bf)
Features api: add support for claude-mythos-5 and claude-fable-5, with support for server-side fallbacks on refusal (6b76649) client: adds client-side fallbacks middleware for API providers that do not support server-side fallbacks (6b76649
Bug Fixes foundry: send x-api-key header for API-key auth (#62) (1338141), closes #1661
Features api: small updates to Managed Agents types (72923f9)
Features api: mark Claude Opus 4.1 as deprecated (85068cc) Bug Fixes client: make Foundry client copy() and with_options() work (94146ac) transform schema: preserve $defs when schema root is a $ref (#1642) (fc58e06) Chores internal: fix art
Chores internal: use Trusted Publishing for PyPI releases (1d04fc5)
Features api: Add support for claude-opus-4-8, mid-conversation system blocks, and usage.output_tokens_details (f18b014) support custom file size caps (#1825) (7e5f944) Chores examples: rename managed-agents private-sandbox-worker to self-h
Bug Fixes streaming: carry encrypted_content through beta compaction accumulator (#1821) (f7a720c)
Features api: Add support for thinking-token-count beta for estimated tokens in thinking block deltas when streaming (80d0fdf)
Bug Fixes runner: skip tool calls SessionToolRunner does not own (#1817) (9425c6a)
Features client: Add support for self-hosted sandboxes in CMA with sandbox helpers (e5625b0)
Features api: Add BetaManagedAgentsSearchResultBlock types (3681f10) api: Add support for cache diagnostics beta (db51c6c) internal/types: support eagerly validating pydantic iterators (68dabb0) Chores api: spec updates (d579133)
Features aws: Add AWS client for Claude Platform on AWS (1e70e3a) Bug Fixes client: add missing f-string prefix in file type error message (06d109a) Chores examples: bump tools_runner.py to claude-sonnet-4-5-20250929 (#1473) (1aa8e41) examp
Features api: add support for Managed Agents multiagents and outcomes, webhooks, vault validation (3b3deee) Bug Fixes api: Adjust webhook configuration (8c3339e)
Features client: allow targeting a workspace for OIDC federation token exchange (4ba8067)
Chores fix typo in example (#1754) (de8ba13)
Features api: improve Managed Agents APIs (7faf393) client: add Workload Identity Federation, interactive OAuth, and auth profiles (6458bcc) support setting headers via env (52eb8cd) Bug Fixes streaming: propagate stop_details from message_
Features api: CMA Memory public beta (fc30ebe) Bug Fixes api: fix errors in api spec (f946de8) api: restore missing features (72212ab) Performance Improvements client: optimize file structure copying in multipart requests (1f9eed3) Chores a
Features api: add claude-opus-4-7, token budgets and user_profiles (0aa2a0d) Chores ci: remove release-doctor workflow (1d9add3)
Features api: mark Sonnet and Opus 4 as deprecated (0c1e773) bedrock: use auth header for mantle client (#1644) (3b93090)
Bug Fixes streaming: add missing events (c6a06d8)
Features vertex eu region (#1658) (b7e157d) Bug Fixes ensure file data are only sent as 1 parameter (837b25b) Documentation improve examples (48089fd) update examples (0f3c28b)
Features api: Add beta advisor tool (4297dca)
Features api: add support for Claude Managed Agents (5b879a7)
Features client: Create Bedrock Mantle client (#1616) (fd195a2)
Features api: Add support for claude-mythos-preview (fc7ddd8) Bug Fixes client: preserve hardcoded query params when merging with user params (32d35e0)
Features vertex: add support for US multi-region endpoint (4e732da) Bug Fixes client: preserve hardcoded query params when merging with user params (e7f4a3c) Chores client: deprecate client-side compaction helpers (e60affc)
Features api: add structured stop_details to message responses (fd82d6b) bedrock api key auth (#1623) (a95a3fc) prepare aws package (#1615) (6875fab) Chores tests: bump steady to v0.20.2 (1bc4e9f)
Features client: add error type field to APIStatusError (#1587) (dd563c0) internal: implement indices array format for query and form serialization (11a6244) Bug Fixes honor api_exclude in async transform path (#1612) (8172232), closes #161
Features add support for filesystem memory tools (#1247) (235d218) api: manual updates (86dbe4a) api: manual updates (45d9cc0) Bug Fixes AsyncAnthropic._make_status_error missing 529 and 413 cases (#1244) (05220bc) deps: bump minimum typing
Features api: chore(config): clean up model enum list (#31) (cce1a5b) api: GA thinking-display-setting (207340c) tests: update mock server (7dc86a4) Bug Fixes client: add missing 413 and 529 error handlers to async client (#1554) (9c2986f)
Features api: change array_format to brackets (925d2ad) api: remove publishing section from cli target (7bc7ceb) helpers: add conversion helpers for MCP tools, prompts, and resources (#1383) (9489751) Chores add missing raw jsonl results me
Features api: Add top-level cache control (automatic caching) (a940123) Chores update mock server docs (34ef48c)
Features api: fix shared UserLocation and error code types (da3b931) Bug Fixes add backward-compat aliases for removed nested UserLocation classes (#1409) (56db1e3)
Features api: Make new tool versions available as top level tool types (0a385c2)
Features api: Releasing claude-sonnet-4-6 (d518d6e) Bug Fixes api: fix spec errors (1413a76) remove speed from ga messages (#1402) (f6ce67c) Chores format all api.md files (28a0eb5) internal: bump dependencies (99f3014) internal: fix lint e