Anthropic SDK for Python 2.11.0 adds Claude Code and sandbox_egress_restricted error
Version 2.11.0 adds Claude Code managed settings to the Admin API, introduces a sandbox_egress_restricted error for Admin API plugins, and updates request handling to encode spaces as %20 with a corrected AWS SigV4 signature for queries containing spaces.
Anthropic released the Python SDK version 2.11.0. The release adds Claude Code managed settings to the Admin API and introduces a new sandbox_egress_restricted error for Admin API plugin methods.
The SDK now encodes spaces in query strings as %20 for client requests. The AWS SigV4 signature generation has been adjusted to match query strings that contain spaces, ensuring correct authentication.
Structured output schemas are built from a cached raw schema. This change improves performance when generating schemas for structured output.
Documentation updates clarify the differences between input-token rate limit types. The usage and cost report descriptions now label Claude Security. The docs also note that a Google Cloud external key's provider and key_name cannot be changed.