unstale

npm / @anthropic-ai/sdk

@anthropic-ai/sdk

What changed in @anthropic-ai/sdk 0.66 to 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

31 breaking9 security12 deprecations189 new APIs and options5 performance26 behavior and defaults1 tooling106 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 179 changes

Breaking changes 9

  • Batch requests no longer send message-batches-2024-09-24; if a default anthropic-beta header is set, these requests now send it.

    1.9.0release notes

  • grep skips rg executables resolving inside workdir or allowedRoots and uses the next PATH rg or built-in search; rg no longer receives ANTHROPIC_* process variables.

    1.9.0release notes

  • Skill extraction tools and helpers are selected only from PATH entries outside workdir and allowedRoots, except when no such entries exist; extraction failures reject with an AnthropicError.

    1.9.0release notes

  • The lenient parser now rejects characters and words that aren't JSON; invalid streamed tool input fails with an error.

    1.9.0release notes

  • Some error detail types are removed and descriptions are updated.

    1.7.0release notes

  • The client rejects path parameters like ";x", ".;x" and "..;x".

    1.5.0release notes

  • Analytics fields that are always sent are now required.

    1.4.0release notes

  • The unused project product field is dropped.

    1.4.0release notes

  • Adds support for API version 2026-10-21, a breaking change for developers using the SDK.

    1.0.0release notes

Security 2

  • On Windows, directory names are compared exactly when confining file paths.

    1.9.0release notes

  • Memory files are read only through the path that was validated.

    1.9.0release notes

Deprecations 3

  • Renames error data models and deprecates the old names.

    1.10.0release notes

  • The listed old beta header values are deprecated and should be deleted from requests; files-api-2025-04-14 and skills-2025-10-02 require following their migration guides before removal.

    1.9.0release notes

  • Older usage and cost reports are marked legacy.

    1.2.0release notes

New APIs and options 38

  • Adds beta support for the billing_policy request parameter.

    1.10.0release notes

  • Adds this error code to messages.

    1.10.0release notes

  • Adds webhook events for external key failure and recovery.

    1.10.0release notes

  • Adds error codes for linked billing refusals.

    1.10.0release notes

  • Adds this error code.

    1.10.0release notes

  • A new Update Bundle operation sets a Claude Tag Bundle's instructions, and Bundle responses now return instructions.

    1.9.0release notes

  • Claude Tag metrics are now included in analytics summaries and users reports.

    1.8.0release notes

  • Claude Tag Slack channel settings now accept reply_mode.

    1.8.0release notes

  • Adds claude-fable-5-2 as an available model.

    1.7.0release notes

  • Adds claude-mythos-5-2 as an available model.

    1.7.0release notes

  • Usage and cost reports support parent organization filtering and grouping.

    1.7.0release notes

  • Adds the sandbox_egress_restricted error to Admin API write methods.

    1.7.0release notes

  • Organization webhook endpoints now accept user_profile.program_status_updated.

    1.7.0release notes

  • Adds user_profile.program_status_updated as a webhook event.

    1.7.0release notes

  • Error codes were added for External Key validation failures.

    1.6.0release notes

  • Support was added for signing organization members out everywhere.

    1.6.0release notes

  • An error code was added for ramp limit errors.

    1.6.0release notes

  • Adds apiMessage to APIError.

    1.5.0release notes

  • Adds details to APIError.

    1.5.0release notes

  • Adds errorCode to APIError.

    1.5.0release notes

  • Adds error details types and new error type values for API errors.

    1.5.0release notes

  • Adds client error classes for HTTP statuses and API error codes.

    1.5.0release notes

  • Adds an ids filter when listing workspaces.

    1.5.0release notes

  • GA methods are added for analytics.

    1.4.0release notes

  • A shared analytics order type is added.

    1.4.0release notes

  • A session error type is added for compaction limit reached errors.

    1.4.0release notes

  • An increase request actor type is added.

    1.4.0release notes

  • Named beta types are added for RBAC delete responses.

    1.4.0release notes

  • Types are added for spend limit period filters.

    1.4.0release notes

  • A session error type is added for tool-use limit reached errors.

    1.4.0release notes

  • Named beta types are added for unified metrics.

    1.4.0release notes

  • External Keys and Workspaces gain a user_profile_id field.

    1.4.0release notes

  • Adds Claude Tag endpoints for Claude Enterprise organizations.

    1.3.0release notes

  • The API adds support for message threads.

    1.2.0release notes

  • The API adds usage and cost reports by dimension.

    1.2.0release notes

  • User profiles now include enforcement status, actions, and a filter.

    1.1.0release notes

  • Adds a workspace_id filter when listing spend limits.

    1.0.0release notes

  • Adds the usage_tier scope type for listing spend limits.

    1.0.0release notes

Performance 1

  • Streaming decodes server-sent events once per chunk.

    1.5.0release notes

Behavior and default changes 3

Tooling 1

Fixes and other changes 22

  • On an errored scan, reason explains why there is no verdict and is not a security finding; code treating any reason as a concern should also check status.

    1.10.0release notes

  • Force-stops work for a terminated session immediately after retrieving it, before downloading skills or memory stores, and no longer throws SessionMemoryError for that session.

    1.10.0release notes

  • Keeps the session tool runner's maxIdleMs countdown running when a session thread terminates, including after a failed event-history read following reconnect.

    1.10.0release notes

  • The runner stops running tool calls for a terminated session thread, waiting for confirmations, or yielding calls; calls already started before it reads the termination event still finish and are yielded with posted: false if the API refuses the result.

    1.10.0release notes

  • The grep tool ignores ripgrep config files.

    1.9.0release notes

  • Extracted files receive mode 0644, or 0755 if any execute bit is set, inside 0700 directories; system tar must support the listed options.

    1.9.0release notes

  • File tool paths that pass through a dangling symlink are now fully resolved.

    1.9.0release notes

  • The built-in search stops reading a file at a NUL byte, avoiding an uncaught RangeError on large binary files.

    1.9.0release notes

  • When ripgrep is missing, the grep tool's search is bounded at 60 seconds; its regex runs off the main thread.

    1.9.0release notes

  • Symlinks pointing outside /memories are left out of listings.

    1.9.0release notes

  • The tools no longer search for rg, tar, or unzip in the current directory.

    1.9.0release notes

  • $schema is no longer included in the transformed schema description.

    1.9.0release notes

  • Structured output schemas now keep const.

    1.7.0release notes

  • Structured output schemas now keep enum.

    1.7.0release notes

  • Debug logs now include the body of a failed response.

    1.7.0release notes

  • Each error's name is now set to its class name.

    1.6.0release notes

  • The name of WorkloadIdentityError is now set.

    1.6.0release notes

  • The memory tool no longer renames or deletes the /memories directory.

    1.5.0release notes

  • spend_limit is nullable in the spend limit increase request approve response.

    1.4.0release notes

  • Links long-request error messages to the SDK documentation.

    1.3.0release notes

  • The tool runner copies the messages it was created with again.

    1.2.0release notes

  • The tool runner's behavior is restored after setMessagesParams() or pushMessages() is called in the loop body.

    1.2.0release notes

@anthropic-ai/sdk 0.1372 changes

New APIs and options 2

@anthropic-ai/sdk 0.1368 changes

Security 1

  • The client now treats x-amz-security-token as a sensitive header.

    0.136.0release notes

New APIs and options 3

  • The Admin API now supports workspace rate-limit updates.

    0.136.0release notes

  • Analytics report pages now include data_refreshed_at, allowing developers to access the data refresh time.

    0.136.0release notes

  • Analytics report pages now include has_more, allowing developers to determine whether more results are available.

    0.136.0release notes

Behavior and default changes 3

  • The client now yields server-sent events with unrecognized event names.

    0.136.0release notes

  • Tool helpers now accept every tool definition field.

    0.136.0release notes

  • User Profiles is now generally available.

    0.136.0release notes

Fixes and other changes 1

  • The memory tool now keeps $ sequences literal in str_replace.

    0.136.0release notes

@anthropic-ai/sdk 0.1355 changes

New APIs and options 3

  • 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.12915 changes

Breaking changes 1

Deprecations 1

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

    0.129.0release notes

New APIs and options 7

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.12614 changes

New APIs and options 5

  • 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.1255 changes

New APIs and options 4

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

@anthropic-ai/sdk 0.1133 changes

New APIs and options 3

@anthropic-ai/sdk 0.1122 changes

New APIs and options 1

Fixes and other changes 1

  • withOptions() now preserves AWS options and auth mode.

    0.112.4release notes

@anthropic-ai/sdk 0.1113 changes

Breaking changes 1

  • Session tool calls are gated on evaluated_permission.

    0.111.0release notes

New APIs and options 1

Behavior and default changes 1

@anthropic-ai/sdk 0.1101 changes

New APIs and options 1

  • Adds the agent-memory-2026-07-22 beta header.

    0.110.0release notes

@anthropic-ai/sdk 0.1092 changes

Breaking changes 1

  • Some nonfunctional types were removed from the SDKs; code that references them may need updating.

    0.109.1release notes

New APIs and options 1

  • Adds support for streaming Managed Agents event deltas.

    0.109.0release notes

@anthropic-ai/sdk 0.1082 changes

New APIs and options 1

  • The API now supports claude-sonnet-5 as a model.

    0.108.0release notes

Fixes and other changes 1

  • Absolute paths that resolve inside the workdir are now allowed.

    0.108.0release notes

@anthropic-ai/sdk 0.1074 changes

Security 1

  • Bounds canonicalize symlink hops and resolves glob matches before the confinement check.

    0.107.0release notes

New APIs and options 2

  • Accepts user profile IDs when counting tokens.

    0.107.0release notes

  • Adds support for the 20260318 web fetch and support tools.

    0.107.0release notes

Fixes and other changes 1

  • Restores the dropped params field on BatchCreateParams.Request.

    0.107.0release notes

@anthropic-ai/sdk 0.1063 changes

New APIs and options 3

@anthropic-ai/sdk 0.1052 changes

New APIs and options 1

  • Adds support for the code_execution_20260120 tool.

    0.105.0release notes

Behavior and default changes 1

  • Partial tool JSON input is now parsed lazily in streams.

    0.105.0release notes

@anthropic-ai/sdk 0.1044 changes

Breaking changes 1

  • Retired models were removed from the API and SDKs.

    0.104.2release notes

New APIs and options 2

  • The SDK adds support for credentials supplied through environment variables.

    0.104.0release notes

  • The SDK adds support for Managed Agents deployments.

    0.104.0release notes

Fixes and other changes 1

@anthropic-ai/sdk 0.1036 changes

New APIs and options 5

  • Adds support for the claude-fable-5 model.

    0.103.0release notes

  • Adds support for the claude-mythos-5 model.

    0.103.0release notes

  • Adds client-side fallbacks middleware for API providers that do not support server-side fallbacks.

    0.103.0release notes

  • Adds ctx.logger to middleware.

    0.103.0release notes

  • Adds support for server-side fallbacks when a refusal occurs.

    0.103.0release notes

Fixes and other changes 1

@anthropic-ai/sdk 0.1022 changes

Fixes and other changes 2

@anthropic-ai/sdk 0.1013 changes

New APIs and options 1

  • The client now supports middleware, allowing developers to add middleware to SDK requests.

    0.101.0release notes

Fixes and other changes 2

  • Request timeouts now apply only to the inner fetch, not the middleware chain.

    0.101.0release notes

  • Streaming now correctly parses JSON numbers written in scientific notation.

    0.101.0release notes

@anthropic-ai/sdk 0.1004 changes

New APIs and options 3

  • The API adds support for claude-opus-4-8, allowing developers to use this model.

    0.100.0release notes

  • The API adds support for mid-conversation system blocks.

    0.100.0release notes

  • The API adds usage.output_tokens_details to provide additional output-token usage details.

    0.100.0release notes

Fixes and other changes 1

  • Streaming now carries encrypted_content on beta compaction blocks.

    0.100.1release notes

@anthropic-ai/sdk 0.992 changes

New APIs and options 1

  • Custom file size caps are supported, allowing developers to set their own file size limits.

    0.99.0release notes

Fixes and other changes 1

@anthropic-ai/sdk 0.982 changes

New APIs and options 1

  • Adds support for estimated tokens in thinking block deltas when streaming.

    0.98.0release notes

Fixes and other changes 1

  • Uploads created with skills.versions.create now preserve the directory prefix.

    0.98.1release notes

@anthropic-ai/sdk 0.972 changes

New APIs and options 1

  • Adds support for self-hosted sandboxes in CMA with sandbox helpers.

    0.97.0release notes

Fixes and other changes 1

  • SessionToolRunner skips tool calls it does not own.

    0.97.1release notes

@anthropic-ai/sdk 0.963 changes

New APIs and options 2

  • Adds the BetaManagedAgentsSearchResultBlock types for working with managed agent search results.

    0.96.0release notes

  • Adds SDK support for the cache diagnostics beta.

    0.96.0release notes

Fixes and other changes 1

  • Ensures only zod/v4 types are used, avoiding types from other Zod versions.

    0.96.0release notes

@anthropic-ai/sdk 0.955 changes

Security 1

  • API-key headers are redacted in debug logs, reducing the risk of exposing credentials.

    0.95.1release notes

New APIs and options 3

Fixes and other changes 1

@anthropic-ai/sdk 0.941 changes

New APIs and options 1

  • Allows targeting a workspace for OIDC federation token exchange.

    0.94.0release notes

@anthropic-ai/sdk 0.933 changes

New APIs and options 3

@anthropic-ai/sdk 0.923 changes

Breaking changes 1

  • Bedrock error events delivered in chunk frames now throw APIError.

    0.92.0release notes

New APIs and options 1

  • Headers can now be set via environment variables.

    0.92.0release notes

Fixes and other changes 1

  • The Managed Agents APIs were improved; the notes do not specify the details of the changes.

    0.92.0release notes

@anthropic-ai/sdk 0.915 changes

Security 1

Behavior and default changes 2

Fixes and other changes 2

@anthropic-ai/sdk 0.903 changes

New APIs and options 3

@anthropic-ai/sdk 0.892 changes

Deprecations 1

Fixes and other changes 1

@anthropic-ai/sdk 0.881 changes

New APIs and options 1

  • The Vertex integration now supports an EU region.

    0.88.0release notes

@anthropic-ai/sdk 0.871 changes

New APIs and options 1

@anthropic-ai/sdk 0.861 changes

New APIs and options 1

  • The SDK adds support for Claude Managed Agents.

    0.86.0release notes

@anthropic-ai/sdk 0.851 changes

New APIs and options 1

  • Adds a Bedrock Mantle client for using the SDK with Bedrock Mantle.

    0.85.0release notes

@anthropic-ai/sdk 0.842 changes

New APIs and options 2

  • The SDK adds support for the claude-mythos-preview model.

    0.84.0release notes

  • The tool runner now supports AbortSignal.

    0.84.0release notes

@anthropic-ai/sdk 0.832 changes

Deprecations 1

  • Client-side compaction helpers are deprecated.

    0.83.0release notes

New APIs and options 1

  • The Vertex region setting supports the US multi-region endpoint.

    0.83.0release notes

@anthropic-ai/sdk 0.822 changes

New APIs and options 2

  • The Bedrock SDK now supports API keys.

    0.82.0release notes

  • Message responses now include structured stop_details, allowing developers to inspect stop information.

    0.82.0release notes

@anthropic-ai/sdk 0.812 changes

Security 1

  • Claude SDK for TypeScript: Memory Tool Path Validation Allows Sandbox Escape to Sibling Directories

    0.81.0security advisory

New APIs and options 1

  • Adds a type field to identify the kind of API error.

    0.81.0release notes

@anthropic-ai/sdk 0.793 changes

New APIs and options 1

  • The SDK adds support for filesystem memory tools.

    0.79.0release notes

Behavior and default changes 1

  • The thinking display setting reaches general availability.

    0.79.0release notes

Fixes and other changes 1

  • The SDK uses the Zod v4 import path for compatibility with Zod versions ^3.25.

    0.79.0release notes

@anthropic-ai/sdk 0.782 changes

New APIs and options 1

  • Adds top-level cache control for automatic caching.

    0.78.0release notes

Fixes and other changes 1

  • Eliminates a race condition in AWS credential resolution for Bedrock.

    0.78.0release notes

@anthropic-ai/sdk 0.772 changes

Fixes and other changes 2

@anthropic-ai/sdk 0.761 changes

New APIs and options 1

  • New tool versions are available as top-level tool types.

    0.76.0release notes

@anthropic-ai/sdk 0.752 changes

New APIs and options 1

  • Releases claude-sonnet-4-6 for use with the SDK.

    0.75.0release notes

Fixes and other changes 1

@anthropic-ai/sdk 0.741 changes

New APIs and options 1

  • Fast mode is enabled for claude-opus-4-6, allowing developers to use the mode with this model.

    0.74.0release notes

@anthropic-ai/sdk 0.734 changes

New APIs and options 2

  • The SDK releases adaptive thinking as a new feature.

    0.73.0release notes

  • The SDK releases Claude Opus 4.6, making it available to developers.

    0.73.0release notes

Fixes and other changes 2

  • Fixes abort signal listener handling to avoid memory leaks and removing the listener too early.

    0.73.0release notes

  • The client does not parse responses with an empty content-length.

    0.73.0release notes

@anthropic-ai/sdk 0.726 changes

Breaking changes 2

  • OutputFormat exports were removed from index.ts, so they are no longer available from the package index.

    0.72.1release notes

  • Send the message format in output_config rather than output_format.

    0.72.0release notes

New APIs and options 2

  • New helper functions are available for the MCP SDK.

    0.72.0release notes

  • The Messages API now supports Structured Outputs, allowing developers to use structured output formats.

    0.72.0release notes

Fixes and other changes 2

  • Corrects the API endpoint used by the MCP code tool.

    0.72.0release notes

  • MCP now returns the correct lines for TypeScript errors.

    0.72.0release notes

@anthropic-ai/sdk 0.719 changes

Deprecations 1

  • Accessing parsed now produces deprecation warnings.

    0.71.1release notes

New APIs and options 4

  • Adds support for Advance Tool Use Features.

    0.71.0release notes

  • Adds support for Autocompaction.

    0.71.0release notes

  • Adds support for Computer Use v5.

    0.71.0release notes

  • Adds support for Claude Opus 4.5, allowing SDK users to work with the new model.

    0.71.0release notes

Fixes and other changes 4

  • Errors in streams are now catchable, allowing developers to handle them.

    0.71.2release notes

  • Fixes the client logger property type.

    0.71.1release notes

  • Ensures parsed is not enumerable in structured outputs.

    0.71.1release notes

  • Corrects the naming used for parsed text blocks.

    0.71.1release notes

@anthropic-ai/sdk 0.702 changes

New APIs and options 1

Fixes and other changes 1

  • Uses the correct beta header for structured outputs.

    0.70.1release notes

@anthropic-ai/sdk 0.691 changes

New APIs and options 1

@anthropic-ai/sdk 0.681 changes

New APIs and options 1

  • Adds the ability to clear thinking in context management.

    0.68.0release notes

@anthropic-ai/sdk 0.672 changes

Deprecations 1

New APIs and options 1

@anthropic-ai/sdk 0.663 changes

Behavior and default changes 2

  • Adds the context-management-2025-06-27 beta header to the client.

    0.66.0release notes

  • Adds the model-context-window-exceeded-2025-08-26 beta header to the client.

    0.66.0release notes

Fixes and other changes 1

  • Fixes an unhandled promise error for streams in the tool runner.

    0.66.0release notes