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@anthropic-ai/sdk 0.1356 changes
New APIs and options 4
Adds between_tools to the thinking types in model capabilities.
Adds the speed parameter to Messages; some models require a beta header to use it.
Adds usage.speed to Messages.
Returns a Console organization's usage-tier spend cap as a read-only spend limit.
Fixes and other changes 2
Closes streams that are dropped without being read to the end.
Keeps an unread JSONL response open while it is held.
@anthropic-ai/sdk 0.13413 changes
Breaking changes 1
Token requests no longer follow redirects.
Security 1
The client now treats proxy-authorization as a sensitive header.
New APIs and options 5
Set ANTHROPIC_OPEN_TELEMETRY=false to disable OpenTelemetry tracing.
Managed Agents agents now support execution_identity.
Pass openTelemetry: false to the client to disable OpenTelemetry tracing.
A telemetry destination test endpoint is now available.
Telemetry destinations are now available through the Admin API.
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.
Spend limit lists can now return the organization_type_not_supported error.
Fixes and other changes 4
MessageStream and BetaMessageStream no longer throw “Unexpected event order” when an event arrives before message_start.
MessageStream and BetaMessageStream now yield events that arrive before message_start when iterated.
MessageStream and BetaMessageStream now tolerate unknown event types.
The client now closes an unread stream dropped while tracing is enabled.
@anthropic-ai/sdk 0.1334 changes
New APIs and options 4
Types were added for Chat and Cowork unified analytics metrics.
Multiagent configuration was added to Managed Agents.
Thread status filtering was added to Managed Agents.
Workflows were added to Managed Agents.
@anthropic-ai/sdk 0.13216 changes
Breaking changes 2
The client throws before sending a request when a path parameter is empty.
Throws when a JSONL stream is iterated twice.
Deprecations 2
Deprecates name on RBAC roles in favor of display_name.
Marks the Text Completions API as deprecated.
New APIs and options 10
Adds claude-haiku-5-5 as a model.
Adds code execution support to model capabilities.
Adds typed computer and browser toolset tool calls.
Adds display_name to RBAC roles.
Adds line to model objects.
Adds lifecycle stage fields and a filter to /v1/models.
Adds disabled to the thinking types in model capabilities.
Adds url_sources to the Managed Agents web_fetch tool config.
Adds web search support to model capabilities.
Adds the include_default parameter to list workspaces.
Fixes and other changes 2
Keeps a local edit made after a memory upload when the response was lost.
The beta header is now sent by default when listing spend limits.
@anthropic-ai/sdk 0.1312 changes
Deprecations 1
Deprecates Sonnet 4.5.
New APIs and options 1
Adds an endpoint to list spend limits.
@anthropic-ai/sdk 0.13018 changes
Breaking changes 4
Admin plugin preference and marketplace fields are now typed as enums.
The memory store archived_at field is now required.
The memory store description field is now required.
The memory store metadata field is now required.
New APIs and options 8
Claude Enterprise analytics are now available through the Admin API.
Idle events can now include a refusal stop reason and stop_details.
A plugin's org-wide installation setting can now be removed.
Admin API analytics now include per-user usage and cost reports.
Plugins and Plugin Marketplaces are now available through the Admin API.
RBAC groups and roles are now available through the Admin API.
Spend limits are now available through the Admin API.
MCP tunnels beta adds a read-only transport object to Tunnel.
Behavior and default changes 3
MCP tunnel creation now returns the one-time relay token in the create response.
Managed Agents session errors now include repository error types.
Organization API endpoints are now generally available.
Fixes and other changes 3
Auto-paging continues past an empty page when next_page is set.
The session tool runner stops after any idle that ends the turn.
The tool runner now sends API fields only for runnable tools.
@anthropic-ai/sdk 0.12914 changes
Breaking changes 1
Removes client-side compaction control.
Deprecations 1
Deprecates the betas parameter on GA models and completions methods.
New APIs and options 6
Adds claude-sonnet-5-5 as a known model ID.
Adds a union type for client-executed tools.
Adds typed event type values to the Managed Agents events list filter.
Optionally starts tool calls while the reply streams.
Adds include_inherited to workspace rate limits.
Adds source to workspace rate limits.
Performance 1
Takes each string token as one slice in the partial JSON tokenizer.
Behavior and default changes 1
Makes cache diagnostics generally available on Message and MessageCreateParams.
Fixes and other changes 4
Degrades between_tools thinking to disabled on fallback hops.
Shows every complete array item and holds back unfinished numbers in partial tool input.
Sends upload filenames as given, without a placeholder.
Client-level timeouts now also send the X-Stainless-Timeout header.
@anthropic-ai/sdk 0.1286 changes
New APIs and options 3
Adds support for claude-opus-5-5.
Adds support for inline tool definitions.
Adds beta support for MCP tool-list pinning.
Fixes and other changes 3
Changes made with addTools() take effect straight away.
Managed Agents events now share one evaluated_permission enum.
Reply-only parameters are no longer included in the tool runner's compaction request.
@anthropic-ai/sdk 0.12710 changes
Breaking changes 1
Pagination exports on the client namespace are type-only.
Deprecations 1
The rate limits group_type field is deprecated.
New APIs and options 2
The tool runner adds compactBeforeNextTurn() for compacting before the next turn.
Rate limits now include a group with a display_name.
Performance 1
Request details are not formatted when debug logging is off.
Fixes and other changes 5
Multiple anthropic-beta values are joined with a comma and no space.
A null compaction_delta content is no longer coerced into the string "null".
A streamed compaction summary is echoed in the fallback continuation.
Requests whose body is a stream or iterator are no longer retried.
The transformation keeps $defs when the root schema is a $ref.
@anthropic-ai/sdk 0.12615 changes
New APIs and options 6
Managed Agents adds auto mode tool permissions.
Adds a compaction parameter and signed compaction blocks in beta.
Adds thinking_mismatch_allowed entries to beta input_transformations.
Adds url_sources to the web fetch tool.
Adds enum types for workspace data-residency geo fields.
Adds a workspace_id parameter to user profiles methods.
Performance 2
Sets sideEffects to false so bundlers can drop unused modules.
Marks classes as pure so bundlers can drop unused ones.
Fixes and other changes 7
The client stops waiting for a retry as soon as the request is aborted.
The async client retries connection errors, and the coroutine retry loop no longer blocks.
Uses one input transformation type for message and delta events.
The client now validates maxRetries.
The client ignores invalid Retry-After values and uses the default backoff when a value is out of range.
A declaration file no longer uses a type that requires TypeScript 5.7.
Marks the usage iteration model as nullable.
@anthropic-ai/sdk 0.1254 changes
New APIs and options 3
Adds a web_fetch tool error code for content that is too large.
Adds external_user_details to user profiles.
Adds the user-profiles-2026-09-04 beta value for user profiles.
Behavior and default changes 1
Managed Agents sessions can mount public GitHub repositories without an authorization_token.
@anthropic-ai/sdk 0.1245 changes
Security 1
Agent-toolset files and directories are now created with owner-only permissions.
New APIs and options 3
Named types are available for organization compliance settings state.
Usage reports now include Claude Tag category and user breakdowns.
More endpoints support sending a workspace ID.
Fixes and other changes 1
Repairs custom-code merging in messages resources.
@anthropic-ai/sdk 0.1238 changes
Breaking changes 3
Beta user profiles use access_type in place of relationship.
Beta user profiles add the external_user_onboarded_at field.
Beta user profiles remove relationship in favor of access_type.
New APIs and options 1
Organization compliance settings are updated.
Behavior and default changes 2
The toolset schema is updated.
User-profile order_by is updated.
Fixes and other changes 2
Credential file access is kept out of non-Node bundles.
The memory-store schema is updated.
@anthropic-ai/sdk 0.1229 changes
Breaking changes 2
Dated beta header pins are dropped.
Webhook unwrap now requires headers to be passed.
Behavior and default changes 2
The files namespace uses GA shapes instead of beta shapes.
The skills namespace uses GA shapes instead of beta shapes.
Fixes and other changes 5
Skills endpoints now default a filename for bare Blob uploads.
Cross-realm DOMException abort and timeout errors are now classified correctly.
The sessions event accumulator now forwards new event types for forward compatibility.
SSE parse errors now use the configured logger.
The tools read operation can return a file view_range even when the file exceeds the size cap.
@anthropic-ai/sdk 0.1216 changes
New APIs and options 3
Adds the updates thinking display mode (beta).
Adds support for Organization API endpoints.
Helpers support Standard Schema for structured outputs and tools.
Fixes and other changes 3
Adds missing anthropic-beta values.
Published types no longer reference NodeJS.ProcessEnv.
Keeps the tool runner going when a turn is paused.
@anthropic-ai/sdk 0.1202 changes
New APIs and options 2
Adds web search configuration for managed agents.
Adds memory support for self hosted sandboxes.
@anthropic-ai/sdk 0.1194 changes
New APIs and options 2
Browser use toolsets are added.
Computer use toolsets are added.
Behavior and default changes 2
The Files API is now generally available.
The Skills API is now generally available.
@anthropic-ai/sdk 0.1185 changes
Breaking changes 1
The unsupported mid_conv_system content block is removed.
New APIs and options 2
The API adds functionality for files and memory stores.
Client helpers make it easier to access the workspace ID in response headers.
Fixes and other changes 2
The API is updated for skill, files, and user profiles.
The session runner retries tool-result sends for at least the lease TTL.
@anthropic-ai/sdk 0.1176 changes
New APIs and options 2
Models were added to the SDK.
Dream creation accepts output_behavior to create a new memory store or update the input store in place.
Fixes and other changes 4
The non-streaming long-request check now honors the timeout set for an individual request.
The tool runner now forwards the response container id to the next request.
Accumulating streamed messages now applies all message_delta fields.
Tool path resolution, skill-archive members, and heartbeat bounds were aligned with the other SDKs.
@anthropic-ai/sdk 0.1168 changes
Breaking changes 1
Retired Claude Opus 4.1 models are removed.
New APIs and options 6
Adds support for the advisor tool.
Bash timeout and abort errors can now be matched by class.
Adds the mid-conversation-tool-changes-2026-07-01 beta.
Adds support for pinned inference location.
Adds support for session budgets.
Adds support for skills auto-loading from GitHub.
Fixes and other changes 1
The client uses hardcoded User-Agent strings instead of constructor names.
@anthropic-ai/sdk 0.1155 changes
New APIs and options 4
Adds the claude-opus-5 model for use with the API.
Expands the client-side fallback credit token types.
Adds a default option for server-side fallbacks.
Adds tool addition/removal blocks and tool_change events to the API.
Fixes and other changes 1
Releases abort listeners when requests settle, preventing them from remaining attached after completion.
@anthropic-ai/sdk 0.1141 changes
New APIs and options 1
Adds model_context_window_exceeded as a new stop reason.