unstale

npm / @anthropic-ai/sdk

@anthropic-ai/sdk

What changed in @anthropic-ai/sdk 0.114 to 0.135, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.

16 breaking2 security5 deprecations78 new APIs and options4 performance13 behavior and defaults49 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@anthropic-ai/sdk 0.1356 changes

New APIs and options 4

  • Adds between_tools to the thinking types in model capabilities.

    0.129.0, 0.135.0release notesrelease notes

  • Adds the speed parameter to Messages; some models require a beta header to use it.

    0.135.0release notes

  • Adds usage.speed to Messages.

    0.135.0release notes

  • Returns a Console organization's usage-tier spend cap as a read-only spend limit.

    0.135.0release notes

Fixes and other changes 2

  • Closes streams that are dropped without being read to the end.

    0.135.0release notes

  • Keeps an unread JSONL response open while it is held.

    0.135.0release notes

@anthropic-ai/sdk 0.13413 changes

Breaking changes 1

Security 1

  • The client now treats proxy-authorization as a sensitive header.

    0.134.0release notes

New APIs and options 5

  • Set ANTHROPIC_OPEN_TELEMETRY=false to disable OpenTelemetry tracing.

    0.134.0release notes

  • Managed Agents agents now support execution_identity.

    0.134.0release notes

  • Pass openTelemetry: false to the client to disable OpenTelemetry tracing.

    0.134.0release notes

  • A telemetry destination test endpoint is now available.

    0.134.0release notes

  • Telemetry destinations are now available through the Admin API.

    0.134.0release notes

Behavior and default changes 2

  • The SDK uses a registered global tracer provider to create spans and the global propagator to add trace context headers to requests.

    0.134.0release notes

  • Spend limit lists can now return the organization_type_not_supported error.

    0.134.0release notes

Fixes and other changes 4

  • MessageStream and BetaMessageStream no longer throw “Unexpected event order” when an event arrives before message_start.

    0.134.0release notes

  • MessageStream and BetaMessageStream now yield events that arrive before message_start when iterated.

    0.134.0release notes

  • MessageStream and BetaMessageStream now tolerate unknown event types.

    0.134.0release notes

  • The client now closes an unread stream dropped while tracing is enabled.

    0.134.0release notes

@anthropic-ai/sdk 0.1334 changes

New APIs and options 4

  • Types were added for Chat and Cowork unified analytics metrics.

    0.133.0release notes

  • Multiagent configuration was added to Managed Agents.

    0.133.0release notes

  • Thread status filtering was added to Managed Agents.

    0.133.0release notes

  • Workflows were added to Managed Agents.

    0.133.0release notes

@anthropic-ai/sdk 0.13216 changes

Breaking changes 2

  • The client throws before sending a request when a path parameter is empty.

    0.132.1release notes

  • Throws when a JSONL stream is iterated twice.

    0.132.0release notes

Deprecations 2

  • Deprecates name on RBAC roles in favor of display_name.

    0.132.0release notes

  • Marks the Text Completions API as deprecated.

    0.132.0release notes

New APIs and options 10

  • Adds claude-haiku-5-5 as a model.

    0.132.0release notes

  • Adds code execution support to model capabilities.

    0.132.0release notes

  • Adds typed computer and browser toolset tool calls.

    0.132.0release notes

  • Adds display_name to RBAC roles.

    0.132.0release notes

  • Adds line to model objects.

    0.132.0release notes

  • Adds lifecycle stage fields and a filter to /v1/models.

    0.132.0release notes

  • Adds disabled to the thinking types in model capabilities.

    0.132.0release notes

  • Adds url_sources to the Managed Agents web_fetch tool config.

    0.132.0release notes

  • Adds web search support to model capabilities.

    0.132.0release notes

  • Adds the include_default parameter to list workspaces.

    0.132.0release notes

Fixes and other changes 2

  • Keeps a local edit made after a memory upload when the response was lost.

    0.132.0release notes

  • The beta header is now sent by default when listing spend limits.

    0.132.0release notes

@anthropic-ai/sdk 0.1312 changes

Deprecations 1

New APIs and options 1

@anthropic-ai/sdk 0.13018 changes

Breaking changes 4

  • Admin plugin preference and marketplace fields are now typed as enums.

    0.130.0release notes

  • The memory store archived_at field is now required.

    0.130.0release notes

  • The memory store description field is now required.

    0.130.0release notes

  • The memory store metadata field is now required.

    0.130.0release notes

New APIs and options 8

  • Claude Enterprise analytics are now available through the Admin API.

    0.130.0release notes

  • Idle events can now include a refusal stop reason and stop_details.

    0.130.0release notes

  • A plugin's org-wide installation setting can now be removed.

    0.130.0release notes

  • Admin API analytics now include per-user usage and cost reports.

    0.130.0release notes

  • Plugins and Plugin Marketplaces are now available through the Admin API.

    0.130.0release notes

  • RBAC groups and roles are now available through the Admin API.

    0.130.0release notes

  • Spend limits are now available through the Admin API.

    0.130.0release notes

  • MCP tunnels beta adds a read-only transport object to Tunnel.

    0.130.0release notes

Behavior and default changes 3

  • MCP tunnel creation now returns the one-time relay token in the create response.

    0.130.0release notes

  • Managed Agents session errors now include repository error types.

    0.130.0release notes

  • Organization API endpoints are now generally available.

    0.130.0release notes

Fixes and other changes 3

  • Auto-paging continues past an empty page when next_page is set.

    0.130.0release notes

  • The session tool runner stops after any idle that ends the turn.

    0.130.0release notes

  • The tool runner now sends API fields only for runnable tools.

    0.130.0release notes

@anthropic-ai/sdk 0.12914 changes

Breaking changes 1

Deprecations 1

  • Deprecates the betas parameter on GA models and completions methods.

    0.129.0release notes

New APIs and options 6

  • Adds claude-sonnet-5-5 as a known model ID.

    0.129.0release notes

  • Adds a union type for client-executed tools.

    0.129.0release notes

  • Adds typed event type values to the Managed Agents events list filter.

    0.129.0release notes

  • Optionally starts tool calls while the reply streams.

    0.129.0release notes

  • Adds include_inherited to workspace rate limits.

    0.129.0release notes

  • Adds source to workspace rate limits.

    0.129.0release notes

Performance 1

  • Takes each string token as one slice in the partial JSON tokenizer.

    0.129.0release notes

Behavior and default changes 1

  • Makes cache diagnostics generally available on Message and MessageCreateParams.

    0.129.0release notes

Fixes and other changes 4

  • Degrades between_tools thinking to disabled on fallback hops.

    0.129.0release notes

  • Shows every complete array item and holds back unfinished numbers in partial tool input.

    0.129.0release notes

  • Sends upload filenames as given, without a placeholder.

    0.129.0release notes

  • Client-level timeouts now also send the X-Stainless-Timeout header.

    0.129.0release notes

@anthropic-ai/sdk 0.1286 changes

New APIs and options 3

Fixes and other changes 3

  • Changes made with addTools() take effect straight away.

    0.128.0release notes

  • Managed Agents events now share one evaluated_permission enum.

    0.128.0release notes

  • Reply-only parameters are no longer included in the tool runner's compaction request.

    0.128.0release notes

@anthropic-ai/sdk 0.12710 changes

Breaking changes 1

  • Pagination exports on the client namespace are type-only.

    0.127.0release notes

Deprecations 1

  • The rate limits group_type field is deprecated.

    0.127.0release notes

New APIs and options 2

  • The tool runner adds compactBeforeNextTurn() for compacting before the next turn.

    0.127.0release notes

  • Rate limits now include a group with a display_name.

    0.127.0release notes

Performance 1

  • Request details are not formatted when debug logging is off.

    0.127.0release notes

Fixes and other changes 5

  • Multiple anthropic-beta values are joined with a comma and no space.

    0.127.0release notes

  • A null compaction_delta content is no longer coerced into the string "null".

    0.127.0release notes

  • A streamed compaction summary is echoed in the fallback continuation.

    0.127.0release notes

  • Requests whose body is a stream or iterator are no longer retried.

    0.127.0release notes

  • The transformation keeps $defs when the root schema is a $ref.

    0.127.0release notes

@anthropic-ai/sdk 0.12615 changes

New APIs and options 6

  • Managed Agents adds auto mode tool permissions.

    0.125.0, 0.126.0release notesrelease notes

  • Adds a compaction parameter and signed compaction blocks in beta.

    0.126.0release notes

  • Adds thinking_mismatch_allowed entries to beta input_transformations.

    0.126.0release notes

  • Adds url_sources to the web fetch tool.

    0.126.0release notes

  • Adds enum types for workspace data-residency geo fields.

    0.126.0release notes

  • Adds a workspace_id parameter to user profiles methods.

    0.126.0release notes

Performance 2

  • Sets sideEffects to false so bundlers can drop unused modules.

    0.126.0release notes

  • Marks classes as pure so bundlers can drop unused ones.

    0.126.0release notes

Fixes and other changes 7

  • The client stops waiting for a retry as soon as the request is aborted.

    0.126.0release notes

  • The async client retries connection errors, and the coroutine retry loop no longer blocks.

    0.126.0release notes

  • Uses one input transformation type for message and delta events.

    0.126.0release notes

  • The client now validates maxRetries.

    0.126.0release notes

  • The client ignores invalid Retry-After values and uses the default backoff when a value is out of range.

    0.126.0release notes

  • A declaration file no longer uses a type that requires TypeScript 5.7.

    0.126.0release notes

  • Marks the usage iteration model as nullable.

    0.126.0release notes

@anthropic-ai/sdk 0.1254 changes

New APIs and options 3

  • Adds a web_fetch tool error code for content that is too large.

    0.125.0release notes

  • Adds external_user_details to user profiles.

    0.125.0release notes

  • Adds the user-profiles-2026-09-04 beta value for user profiles.

    0.125.0release notes

Behavior and default changes 1

  • Managed Agents sessions can mount public GitHub repositories without an authorization_token.

    0.125.0release notes

@anthropic-ai/sdk 0.1245 changes

Security 1

  • Agent-toolset files and directories are now created with owner-only permissions.

    0.124.0release notes

New APIs and options 3

  • Named types are available for organization compliance settings state.

    0.124.0release notes

  • Usage reports now include Claude Tag category and user breakdowns.

    0.124.0release notes

  • More endpoints support sending a workspace ID.

    0.124.0release notes

Fixes and other changes 1

  • Repairs custom-code merging in messages resources.

    0.124.0release notes

@anthropic-ai/sdk 0.1238 changes

Breaking changes 3

  • Beta user profiles use access_type in place of relationship.

    0.123.0release notes

  • Beta user profiles add the external_user_onboarded_at field.

    0.123.0release notes

  • Beta user profiles remove relationship in favor of access_type.

    0.123.0release notes

New APIs and options 1

  • Organization compliance settings are updated.

    0.123.0release notes

Behavior and default changes 2

Fixes and other changes 2

  • Credential file access is kept out of non-Node bundles.

    0.123.0release notes

  • The memory-store schema is updated.

    0.123.0release notes

@anthropic-ai/sdk 0.1229 changes

Breaking changes 2

Behavior and default changes 2

  • The files namespace uses GA shapes instead of beta shapes.

    0.122.0release notes

  • The skills namespace uses GA shapes instead of beta shapes.

    0.122.0release notes

Fixes and other changes 5

  • Skills endpoints now default a filename for bare Blob uploads.

    0.122.0release notes

  • Cross-realm DOMException abort and timeout errors are now classified correctly.

    0.122.0release notes

  • The sessions event accumulator now forwards new event types for forward compatibility.

    0.122.0release notes

  • SSE parse errors now use the configured logger.

    0.122.0release notes

  • The tools read operation can return a file view_range even when the file exceeds the size cap.

    0.122.0release notes

@anthropic-ai/sdk 0.1216 changes

New APIs and options 3

  • Adds the updates thinking display mode (beta).

    0.121.0release notes

  • Adds support for Organization API endpoints.

    0.121.0release notes

  • Helpers support Standard Schema for structured outputs and tools.

    0.121.0release notes

Fixes and other changes 3

  • Adds missing anthropic-beta values.

    0.121.0release notes

  • Published types no longer reference NodeJS.ProcessEnv.

    0.121.0release notes

  • Keeps the tool runner going when a turn is paused.

    0.121.0release notes

@anthropic-ai/sdk 0.1202 changes

New APIs and options 2

  • Adds web search configuration for managed agents.

    0.120.0release notes

  • Adds memory support for self hosted sandboxes.

    0.120.0release notes

@anthropic-ai/sdk 0.1194 changes

New APIs and options 2

Behavior and default changes 2

@anthropic-ai/sdk 0.1185 changes

Breaking changes 1

  • The unsupported mid_conv_system content block is removed.

    0.118.0release notes

New APIs and options 2

  • The API adds functionality for files and memory stores.

    0.118.0release notes

  • Client helpers make it easier to access the workspace ID in response headers.

    0.118.0release notes

Fixes and other changes 2

  • The API is updated for skill, files, and user profiles.

    0.118.0release notes

  • The session runner retries tool-result sends for at least the lease TTL.

    0.118.0release notes

@anthropic-ai/sdk 0.1176 changes

New APIs and options 2

  • Models were added to the SDK.

    0.117.0release notes

  • Dream creation accepts output_behavior to create a new memory store or update the input store in place.

    0.117.0release notes

Fixes and other changes 4

  • The non-streaming long-request check now honors the timeout set for an individual request.

    0.117.0release notes

  • The tool runner now forwards the response container id to the next request.

    0.117.0release notes

  • Accumulating streamed messages now applies all message_delta fields.

    0.117.0release notes

  • Tool path resolution, skill-archive members, and heartbeat bounds were aligned with the other SDKs.

    0.117.0release notes

@anthropic-ai/sdk 0.1168 changes

Breaking changes 1

New APIs and options 6

  • Adds support for the advisor tool.

    0.116.0release notes

  • Bash timeout and abort errors can now be matched by class.

    0.116.0release notes

  • Adds the mid-conversation-tool-changes-2026-07-01 beta.

    0.116.0release notes

  • Adds support for pinned inference location.

    0.116.0release notes

  • Adds support for session budgets.

    0.116.0release notes

  • Adds support for skills auto-loading from GitHub.

    0.116.0release notes

Fixes and other changes 1

  • The client uses hardcoded User-Agent strings instead of constructor names.

    0.116.0release notes

@anthropic-ai/sdk 0.1155 changes

New APIs and options 4

  • Adds the claude-opus-5 model for use with the API.

    0.115.0release notes

  • Expands the client-side fallback credit token types.

    0.115.0release notes

  • Adds a default option for server-side fallbacks.

    0.115.0release notes

  • Adds tool addition/removal blocks and tool_change events to the API.

    0.115.0release notes

Fixes and other changes 1

  • Releases abort listeners when requests settle, preventing them from remaining attached after completion.

    0.115.0release notes

@anthropic-ai/sdk 0.1141 changes

New APIs and options 1

  • Adds model_context_window_exceeded as a new stop reason.

    0.114.0release notes