@ai-sdk/anthropic breaking changes
Every breaking API change we have recorded in @ai-sdk/anthropic on npm: 76 breaking changes in 2 versions. Below are its newest 2 versions, removals and renames first, each with its source.
Newest change June 25, 2026

On this page
4.0.0
- Removed
AnthropicMessageMetadata.cacheCreationInputTokens
AnthropicMessageMetadata.cacheCreationInputTokens was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Removed
AnthropicMessageMetadata.inputTransformations
AnthropicMessageMetadata.inputTransformations was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Removed
AnthropicMessageMetadata.safeguardResults
AnthropicMessageMetadata.safeguardResults was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Removed
AnthropicSystemMessageProviderOptions
AnthropicSystemMessageProviderOptions was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Removed
internal:sanitizeJsonSchema
sanitizeJsonSchema was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Removed
internal:supportsNativeStructuredOutputSchema
supportsNativeStructuredOutputSchema was removed in @ai-sdk/anthropic 4.0.0 npmjs.com - Signature changed
AnthropicLanguageModelOptions
Was type AnthropicLanguageModelOptions = InferSchema<typeof anthropicLanguageModelOptions>; now type AnthropicLanguageModelOptions = z.infer<typeof anthropicLanguageModelOptions>. npmjs.com - Signature changed
AnthropicProvider
Was interface AnthropicProvider extends ProviderV3; now interface AnthropicProvider extends ProviderV4. npmjs.com - Signature changed
AnthropicProvider.__call
Was (modelId: AnthropicMessagesModelId): LanguageModelV3; now (modelId: AnthropicModelId): LanguageModelV4. npmjs.com - Signature changed
AnthropicProvider.chat
Was chat(modelId: AnthropicMessagesModelId): LanguageModelV3; now chat(modelId: AnthropicModelId): LanguageModelV4. npmjs.com
And 32 more in this version.
3.0.0
- Removed
AnthropicMessageMetadata.iterations
AnthropicMessageMetadata.iterations was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
AnthropicMessageMetadata.stopDetails
AnthropicMessageMetadata.stopDetails was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
AnthropicSystemMessageProviderOptions
AnthropicSystemMessageProviderOptions was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
AnthropicUsageIteration
AnthropicUsageIteration was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
internal:getModelCapabilities
getModelCapabilities was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
internal:sanitizeJsonSchema
sanitizeJsonSchema was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Removed
internal:supportsNativeStructuredOutputSchema
supportsNativeStructuredOutputSchema was removed in @ai-sdk/anthropic 3.0.0 npmjs.com - Signature changed
AnthropicMessageMetadata.contextManagement
Was contextManagement: {appliedEdits: Array<{type: 'clear_tool_uses_20250919'; clearedToolUses: number; clearedInputTokens: number;} | {type: 'clear_thinking_20251015'; clearedThinkingTurns: number; clearedInputTokens: number;} | {type... npmjs.com - Signature changed
AnthropicMessageMetadata.contextManagement.appliedEdits
Was appliedEdits: Array<{type: 'clear_tool_uses_20250919'; clearedToolUses: number; clearedInputTokens: number;} | {type: 'clear_thinking_20251015'; clearedThinkingTurns: number; clearedInputTokens: number;} | {type: 'compact_20260112';}>... npmjs.com - Signature changed
AnthropicProvider
Was interface AnthropicProvider extends ProviderV2; now interface AnthropicProvider extends ProviderV3. npmjs.com
And 24 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version, not only the newest. On Team and up, a fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous management.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcp