Anthropic Python SDK

AIMIT

The official Python library for the Anthropic API.

Latest v1.5.0 · by AnthropicWritten in PythonWebsiteanthropics/anthropic-sdk-pythonRSS

Release activity

Release activity — 21 releases across 18 days since Jun 30, 2026. Each cell is one day; darker means more releases that day. Nothing is recorded before Jun 30, 2026. Older weeks are hidden at this screen width.
JunJulAugSep
SundayNo releases on Jul 5, 2026No releases on Jul 12, 2026No releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026
MondayNo releases on Jul 6, 2026No releases on Jul 13, 2026No releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026
Tuesday1 release on Jun 30, 2026No releases on Jul 7, 2026No releases on Jul 14, 20261 release on Jul 21, 20262 releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 20261 release on Sep 1, 2026No releases on Sep 8, 2026
Wednesday1 release on Jul 1, 2026No releases on Jul 8, 2026No releases on Jul 15, 20261 release on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 20263 releases on Aug 19, 20261 release on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026
Thursday1 release on Jul 2, 2026No releases on Jul 9, 20261 release on Jul 16, 20261 release on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 20261 release on Aug 13, 20261 release on Aug 20, 20261 release on Aug 27, 2026No releases on Sep 3, 20261 release on Sep 10, 2026
FridayNo releases on Jul 3, 2026No releases on Jul 10, 2026No releases on Jul 17, 20261 release on Jul 24, 2026No releases on Jul 31, 20261 release on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 20261 release on Sep 4, 2026No releases on Sep 11, 2026
SaturdayNo releases on Jul 4, 2026No releases on Jul 11, 2026No releases on Jul 18, 2026No releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026

21 releases since Jun 30, 2026, busiest day 3

Changelog

What changed from 0 to 1

v1.5.0

Latest
Added 7
  • Add auto mode tool permissions for Managed Agents
  • Add content_too_large web_fetch tool error code
  • Add the user-profiles-2026-09-04 beta value and external_user_details to user profiles
  • Support mounting public GitHub repositories without an authorization_token in Managed Agents sessions
  • Add Message.to_param() and BetaMessage.to_param() methods
  • Add CredentialsError and IdentityTokenFileError exceptions
  • Accept tool objects directly in messages.create, parse, stream and count_tokens
Fixed 4
  • Merge extra_body before client hooks run
  • Refuse credentials files accessible by group or others
  • Keep partial tool input JSON off content blocks in streaming
  • Leave parsed_output out of dumped text blocks
Deprecated 1
  • The idempotency_key request option is deprecated and kept as a no-op

From Anthropic Python SDK

1.5.0 (2026-09-10)

Full Changelog: v1.4.0...v1.5.0

Features
  • api: add auto mode tool permissions for Managed Agents (62aa21b)
  • api: add content_too_large web_fetch tool error code (4b5dec6)
  • api: add the user-profiles-2026-09-04 beta value and external_user_details to user profiles (5f881a5)
  • api: support mounting public GitHub repositories without an authorization_token in Managed Agents sessions (285937c)
  • client: add Message.to_param() and BetaMessage.to_param() (192a2b2)
  • credentials: add CredentialsError and IdentityTokenFileError (9acd79f)
  • tools: accept tool objects directly in messages.create, parse, stream and count_tokens (ebd2fc5)
Bug Fixes
  • client: merge extra_body before client hooks run (7aaf887)
  • credentials: refuse credentials files accessible by group or others (7af3e2b)
  • streaming: keep partial tool input JSON off content blocks (4605bca)
  • types: leave parsed_output out of dumped text blocks (ca0706d)
Chores
  • client: clean up the unused idempotency request option (c97830c)
  • client: keep the idempotency_key request option as a deprecated no-op (#621) (c2ab92e)
  • docs: correct the environment scope field description (b903ee0)
  • internal: remove generated file header comments (ae671f8)
  • internal: restore package version (f3aefc7)
  • internal: restore package version (e3c70e8)
  • internal: stop stamping the package version into generated files (e7a6a28)
  • tests: restore empty test package marker files (0803af0)
View originalPermalink
How v1.5.0 went

v1.4.0

Added 3
  • Add Claude Tag category and user breakdowns to usage reports
  • Add named types for organization compliance settings state
  • Add support for sending a workspace ID on more endpoints
Fixed 2
  • Raise a clear error when an httpx object is passed instead of an httpx2 one
  • Repair custom-code merge in messages resources

From Anthropic Python SDK

1.4.0 (2026-09-04)

Full Changelog: v1.3.0...v1.4.0

Features
  • api: add Claude Tag category and user breakdowns to usage reports (9fce1e4)
  • api: add named types for organization compliance settings state (1de1957)
  • api: add support for sending a workspace ID on more endpoints (d1d2c01)
Bug Fixes
  • client: raise a clear error when an httpx object is passed instead of an httpx2 one (9447099)
  • repair custom-code merge in messages resources (#580) (85454ca)
Chores
  • examples: refresh platform model IDs (#499) (182abb5)
  • internal: bundle the mock server spec and update dev tooling (f9b0cf2)
  • internal: clean up code comments (#578) (d202327)
  • internal: fix mypy unreachable error in detect-breaking-changes script (07834f6)
  • internal: narrower codeowners scope (daca8f1)
  • internal: revert codeowners change (41aa767)
  • tests: remove stale warning filters (ba9bf35)
  • tests: reword the skip reason on the path-level query param tests (6b5046a)
Documentation
  • api: update a few doc strings (26c509d)
View originalPermalink
How v1.4.0 went

v1.3.0

Added 3
  • Add external_user_onboarded_at field to beta user profiles
  • Add organization compliance settings
  • Add user-profile order_by parameter
Changed 2
  • Replace relationship field with access_type in beta user profiles
  • Update memory-store and toolset schema
Fixed 3
  • Resolve base_url from aws_region under skip_auth and with_options
  • Add results to GA raw/streaming response wrappers for batches
  • Derive multipart filename for file tuples passed without one
Removed 2
  • Remove unused wire aliases from header and path params
  • Drop the unused distro dependency

From Anthropic Python SDK

1.3.0 (2026-09-01)

Full Changelog: v1.2.0...v1.3.0

Features
  • api: beta user profiles: add external_user_onboarded_at, remove relationship in favor of access_type (74080c3)
  • api: manual updates (1dc3ce0)
  • api: organization compliance settings, user-profile order_by, memory-store and toolset schema updates (429e719)
Bug Fixes
  • aws: resolve base_url from aws_region under skip_auth and with_options (#564) (b6d1732)
  • batches: add results to GA raw/streaming response wrappers (cbf9715)
  • ci: don't hard-wrap detect-breaking-changes output (b5be779)
  • client: derive multipart filename for file tuples passed without one (a9f3fb4)
  • types: remove unused wire aliases from header and path params (dc0a9ab)
Chores
  • internal: drop the unused discriminator argument from PropertyInfo (3dae6fd)
  • internal: drop the unused distro dependency (a47d85f)
Documentation
  • changelog: detail the beta files/skills GA-shape change (#1900) (7c84e13)
Refactors
  • types: mark discriminated unions with UnionDiscriminator instead of PropertyInfo (17df0bf)
  • types: use UnionDiscriminator for more discriminated unions (b44af2c)
View originalPermalink
How v1.3.0 went

v1.2.0

Changed 1
  • Beta files/skills namespaces now use GA shapes and drop dated beta header pins
Fixed 5
  • Sign raw request bytes so binary file uploads work with AWS and Bedrock
  • Make event accumulator forward-compatible with new event types in sessions
  • Allow read to return a view_range of a file over the size cap in tools
  • Preserve exact file bytes in the agent toolset and memory tool without newline translation
  • Require headers to be passed to unwrap() in webhooks

From Anthropic Python SDK

1.2.0 (2026-08-27)

Full Changelog: v1.1.0...v1.2.0

Features
  • api: beta files/skills namespaces use GA shapes; drop dated beta header pins (9df4565)
Bug Fixes
  • aws,bedrock: sign raw request bytes so binary file uploads work (#531) (f50e910)
  • ci: resolve assignment aliases in detect-breaking-changes (f2c4925)
  • sessions: make event accumulator forward-compatible with new event types (#533) (cbbaf6e)
  • tools: let read return a view_range of a file over the size cap (#538) (b68e876)
  • tools: preserve exact file bytes in the agent toolset and memory tool (no newline translation) (#540) (56921a8)
  • webhooks: require headers to be passed to unwrap() (0baa902)
Documentation
  • api: clarify pagination on the organization rate-limit list endpoints (1832b27)
View originalPermalink
How v1.2.0 went

v1.1.0

Added 3
  • Add updates thinking display mode (beta)
  • Add missing anthropic-beta values
  • Add support for Organization API endpoints
Fixed 2
  • Correct link for long requests error in documentation
  • Keep the tool runner going on pause_turn

From Anthropic Python SDK

1.1.0 (2026-08-26)

Full Changelog: v1.0.0...v1.1.0

Features
  • api: add updates thinking display mode (beta) (eb4a73f)
  • api: add missing anthropic-beta values (dbebd15)
  • api: add support for Organization API endpoints (5a5b8fc)
Bug Fixes
  • docs: correct link for long requests error (#1884) (4474f31), closes #1883
  • tools: keep the tool runner going on pause_turn (#343) (ab1ec60)
Chores
  • docs: clarify skill version latest support and memory version retention (a754f3b)
  • internal: cancel superseded CI runs (c061ab1)
  • internal: minor workflow reformat (1569002)
  • internal: remove the legacy response API (a48b1dd)
  • internal: use import httpx2 directly instead of aliasing as httpx (628d789)
Documentation
  • api: clarify session thread agent and usage.iterations compaction descriptions (beta) (4ace503)
View originalPermalink
How v1.1.0 went

v1.0.0

Changed 1
  • Upgrade to httpx2 with minor breaking changes
Fixed 1
  • Stop warning about output_format= on the parse/stream/tool_runner helpers

From Anthropic Python SDK

1.0.0 (2026-08-20)

Full Changelog: v0.125.0...v1.0.0

⚠ 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 warning about output_format= on the parse/stream/tool_runner helpers (59bf261)
Chores
  • streaming: restore the original event imports in lib/streaming/_types.py (87e9e01)
Documentation
  • examples: use adaptive thinking in thinking examples (b5870af)
View originalPermalink
How v1.0.0 went

v0.125.0

Added 1
  • Support for managed agents web search config and self-hosted sandbox memory

From Anthropic Python SDK

0.125.0 (2026-08-19)

Full Changelog: v0.124.0...v0.125.0

Features
  • api: managed agents web search config and self hosted sandbox memory (b75afd6)
View originalPermalink
How v0.125.0 went

v0.124.0

Added 2
  • Files and Skills APIs are now generally available
  • Add computer use and browser use toolsets

From Anthropic Python SDK

0.124.0 (2026-08-19)

Full Changelog: v0.123.0...v0.124.0

Features
  • api: Files and Skills APIs are now GA; add computer use and browser use toolsets (9a09e84)
View originalPermalink
How v0.124.0 went

v0.123.0

Added 3
  • Add helpers for accessing the workspace ID in response headers
  • Add support for files and memory stores in the API
  • Add updates to skill, files, and user profiles in the API
Fixed 6
  • Remove unsupported mid_conv_system content block from the API
  • Compute platform headers without spawning a subprocess
  • Export custom status errors from _exceptions.__all__
  • Export ServiceUnavailableError and DeadlineExceededError from the package root
  • Retry tool-result sends for at least the lease TTL in session-runner
  • Run synchronous session tools in a worker thread

From Anthropic Python SDK

0.123.0 (2026-08-18)

Full Changelog: v0.122.0...v0.123.0

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_conv_system content block (6f15b8d)
  • client: compute platform headers without spawning a subprocess (baca9f4)
  • client: export custom status errors from _exceptions.all (#459) (2950ec4)
  • client: export ServiceUnavailableError and DeadlineExceededError from the package root (#468) (0dcd06d)
  • session-runner: retry tool-result sends for at least the lease TTL (#453) (e1a4891)
  • tools: run synchronous session tools in a worker thread (#399) (8f88c57)
Chores
  • examples: remove legacy Text Completions API examples (cf5c768)
  • internal: remove leftover prism references (826ba7a)
View originalPermalink
How v0.123.0 went

v0.122.0

Added 1
  • Add output_behavior to dream creation to create a new memory store or update the input store in place
Changed 1
  • Use the not_given singleton instead of the legacy NOT_GIVEN alias
Fixed 14
  • Run SigV4 signing off the event loop in async clients for Bedrock and AWS
  • Expose beta.messages.parse, stream and tool_runner in Bedrock
  • Add models to client
  • Keep token exchange bound per client across copy()
  • Read PathLike contents passed inside a file tuple
  • Treat empty ANTHROPIC_API_KEY and ANTHROPIC_AUTH_TOKEN as unset

From Anthropic Python SDK

0.122.0 (2026-08-13)

Full Changelog: v0.121.0...v0.122.0

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.messages.parse, stream and tool_runner (#366) (6eca7bb)
  • client: add models (52e9d94)
  • client: keep token exchange bound per client across copy() (#388) (c13e6e3)
  • client: read PathLike contents passed inside a file tuple (070f953)
  • client: treat empty ANTHROPIC_API_KEY / ANTHROPIC_AUTH_TOKEN as unset (#341) (76a2e68)
  • streaming: add context to malformed tool input JSON errors in the non-beta accumulator (#339) (a343e17)
  • streaming: apply all message_delta fields when accumulating streamed messages (#380) (fc1599b)
  • streaming: emit input_json events for server tool use blocks (#336) (ccfc8e1)
  • streaming: keep omitted content block fields unset in accumulated messages (#346) (cd40aab)
  • streaming: run the request transform once in messages.stream() (#347) (81a92da)
  • streaming: silence pydantic serializer warnings on message_stop events (#338) (41f9cdc)
  • tools: reject symlink loops in tool paths and skip special skill-archive members (#322) (43e8669)
  • vertex: expose beta.messages.parse and tool_runner (#367) (96723a0)
Chores
  • ci: run breaking-change detection as a ci.yml job on every push (6dfd16e)
  • examples: update messages_stream.py shebang from rye to uv (#1519) (7d72364)
  • internal: codegen related update (21a0e3d)
  • internal: drop remaining references to black (13df390)
  • internal: remove misc things (d6ee99e)
  • tests: use pytest monkeypatch and fakes instead of unittest.mock (55d246f)
  • tests: use pytest monkeypatch instead of unittest.mock (e0c6488)
Documentation
  • api: clarify that user profile name is optional for resold profiles (b8f9f61)
  • fix fulfillment typos in session runner (#1795) (009b035)
  • fix incorrect docstring in AsyncAnthropicFoundry.models (#1592) (f1f5e9b)
Refactors
  • use the not_given singleton instead of the legacy NOT_GIVEN alias (eeb4d74)
View originalPermalink
How v0.122.0 went

v0.121.0

Added 2
  • Add `mid-conversation-tool-changes-2026-07-01` beta API support
  • Add support for session budgets, advisor tool, pinned inference location and skills auto-loading from GitHub
Removed 1
  • Remove retired Claude Opus 4.1 models

From Anthropic Python SDK

0.121.0 (2026-08-07)

Full Changelog: v0.120.2...v0.121.0

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 models (5352a33)
  • docs: small updates to descriptions (b8d4176)
  • docs: updates to a few documentation strings (3a5dd69)
  • ensure all dependencies have major version constraints (#274) (d52999b)
View originalPermalink
How v0.121.0 went

v0.120.2

Fixed 1
  • support mcp sdk v2 alongside v1

From Anthropic Python SDK

0.120.2 (2026-07-28)

Full Changelog: v0.120.1...v0.120.2

Bug Fixes
  • mcp: support mcp sdk v2 alongside v1 (#300) (177f88c)
View originalPermalink
How v0.120.2 went

v0.120.0

Added 3
  • Add claude-opus-5 model
  • Add tool addition/removal blocks and tool_change events
  • Expand client-side fallback credit token types and add server-side fallbacks default option

From Anthropic Python SDK

0.120.0 (2026-07-24)

Full Changelog: v0.119.0...v0.120.0

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)
View originalPermalink
How v0.120.0 went

v0.119.0

Added 1
  • Add new stop reason 'model_context_window_exceeded'
Fixed 1
  • Handle binary files in agent toolset read/edit

From Anthropic Python SDK

0.119.0 (2026-07-23)

Full Changelog: v0.118.0...v0.119.0

Features
  • api: add new stop reason 'model_context_window_exceeded' (d983cde)
Bug Fixes
  • tools: handle binary files in agent toolset read/edit (#283) (417b76b)
View originalPermalink
How v0.119.0 went

v0.118.0

Added 1
  • Add support for Managed Agents model effort, initial session events, and threads delta streaming

From Anthropic Python SDK

0.118.0 (2026-07-22)

Full Changelog: v0.117.1...v0.118.0

Features
  • api: add support for Managed Agents model effort, initial session events, and threads delta streaming (712bc6f)
View originalPermalink
How v0.118.0 went

v0.117.1

Added 1
  • Add support for new refusal category
Fixed 1
  • Handle credentials correctly when using AnthropicAWS.copy()

From Anthropic Python SDK

0.117.1 (2026-07-21)

Full Changelog: v0.117.0...v0.117.1

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 httpx_aiohttp major version (#271) (924487f)
  • docs: small updates (c48db8b)
  • docs: small updates (755c06c)
  • internal: codegen related update (a4fbecf)
View originalPermalink
How v0.117.1 went

v0.117.0

Added 2
  • Add support for dreaming
  • Add support for MCP Tunnels
Fixed 1
  • Keep credential material out of traceback frame locals via SecretStr

From Anthropic Python SDK

0.117.0 (2026-07-16)

Full Changelog: v0.116.0...v0.117.0

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 descriptions (75d8dcc)
  • docs: update model example (a57e30a)
  • docs: updates to descriptions and examples (e1535b6)
View originalPermalink
How v0.117.0 went

v0.116.0

Added 1
  • Add agent-memory-2026-07-22 beta header to API

From Anthropic Python SDK

0.116.0 (2026-07-02)

Full Changelog: v0.115.1...v0.116.0

Features
  • api: add agent-memory-2026-07-22 beta header (e181d5c)
View originalPermalink
How v0.116.0 went

v0.115.1

Removed 1
  • Remove nonfunctional types from the SDK

From Anthropic Python SDK

0.115.1 (2026-07-01)

Full Changelog: v0.115.0...v0.115.1

Chores
  • api: remove some nonfunctional types from the SDKs (5e7c431)
View originalPermalink
How v0.115.1 went

v0.115.0

Added 5
  • Add support for Managed Agents event delta streaming
  • Add support for agent overrides
  • Add support for reverse pagination
  • Add support for vault credential injection scoping
  • Add support for agent and deployment webhook events

From Anthropic Python SDK

0.115.0 (2026-06-30)

Full Changelog: v0.114.0...v0.115.0

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)
View originalPermalink
How v0.115.0 went
View all

Discussion

If you publish Anthropic Python SDK, you can claim this product by proving you administer its repository.