Anthropic Python SDK 2.9.0 adds Bundle API and fixes Windows security
Anthropic Python SDK 2.9.0 adds the Bundle API, fixes Windows credential writing, and removes deprecated beta headers.
Anthropic released version 2.9.0 of the Python SDK. This update introduces the Bundle API and resolves multiple security and stability issues affecting Windows environments and tool execution.
The new Update Bundle API allows developers to set instructions for Claude Tag Bundles and returns the updated configuration. Additionally, the SDK adds source and error codes to RBAC Role read endpoints, providing more detailed feedback during access control operations.
Credentials file writing now works correctly with Python 3.12 and earlier versions. File tool and upload paths compare directory names exactly to prevent mismatches. Paths passing through dangling symlinks are fully resolved to ensure accurate file access. The grep tool ignores ripgrep config files and searches for rg only in absolute PATH entries. It also skips rg binaries located inside allowed write directories to prevent potential security issues.
Performance and stability improvements target the built-in grep search and session management. If ripgrep is not installed, the built-in search stops after 30 seconds of CPU time. The search process skips FIFOs and devices to prevent blocking the event loop. The EnvironmentWorker force-stops work items for terminated sessions before downloading skills. The session tool runner stops executing tool calls for terminated session threads.
The API no longer sends the message-batches-2024-09-24 header on batch requests. This change is part of a broader cleanup of deprecated beta headers. Developers must rebuild C# projects to update AnthropicBeta enum values, as old compiled code sends incorrect beta values without raising an error. The following deprecated beta header values have been removed:
prompt-caching-2024-07-31pdfs-2024-09-25token-counting-2024-11-01token-efficient-tools-2025-02-19extended-cache-ttl-2025-04-11cache-diagnosis-2026-04-07ce-user-management-2026-07-13