changelogAnthropic

Anthropic Python SDK v2.15.0 fixes 401 token refresh and credential loops, adds three API error codes

TL;DR

Anthropic released v2.15.0 of its Python SDK on November 30. It fixes how cached credentials are refreshed after a 401 response, stops processes sharing one login from refreshing each other's tokens in a loop, and adds three new API error codes.

1 min read
0

Anthropic released v2.15.0 of its Python SDK on November 30 (19:30, commit bb00f6a), with fixes to credential refresh behavior and three new API error codes. The release was published by the anthropic-sdks-releaser account on GitHub.

Bug fixes

  • 401 handling: The SDK now refreshes credentials after a 401 even if a hook changes the Authorization header. A 401 also drops the cached token when max_retries=0, so the next call refreshes it.
  • Shared logins: Processes that share one login no longer refresh each other's tokens in a loop.
  • Structured output helpers: Argument checks in the client's structured output helpers are tighter.

New features

All three additions are API error codes:

  • api_key_requester_unconfirmed in the Admin API
  • Error codes for cost report size limits
  • user_profile_cleared for workspace updates

Chores and docs

  • The release removes retired Claude Sonnet 4.5 models from the API definitions.
  • The docs now clarify which speed needs the fast mode beta header.
  • The docs also explain the compliance review policy category values.

What this means

The credential fixes matter most for teams that run several processes against one login, or that set max_retries=0. In those setups, a stale cached token could previously persist after a 401, or processes could keep invalidating one another's tokens. Developers who use Admin API workflows, cost reports or workspace updates now have named error codes to handle in their code. The removal of the retired Claude Sonnet 4.5 models from the SDK means code that still references them should be updated.

Related Articles

changelog

GitHub deprecates Claude Opus 4.8 (fast) across all Copilot experiences on November 30, 2026

GitHub deprecated Claude Opus 4.8 (fast) on November 30, 2026. The deprecation applies across all GitHub Copilot experiences, including Copilot Chat, inline edits, ask and agent modes, and code completions.

research

Anthropic AI finds faster quantum algorithm for module LWE, but it is slower than brute force at real key sizes

Anthropic has produced an algorithm that solves the module learning with errors (module LWE) problem faster than expected, according to a group of 21 cryptographers who detailed the result. The algorithm is "galactic": at the problem sizes used in cryptography, it is much slower than brute-force guessing, and it runs only on a quantum computer.

analysis

Anthropic cryptography paper still unpublished as RSA-2048 break rumors meet pushback

Anthropic has not published the cryptography paper at the center of weekend speculation, and has not responded to a request for comment. Cryptographers dispute rumors that it breaks RSA-2048. A leaked title reportedly points to a quantum algorithm on module lattices instead.

research

Anthropic's unpublished cryptography result is theoretical, not a working attack, cryptographers say

Anthropic's unpublished cryptography result is a theoretical advance, not a working attack on today's encryption, according to cryptographers cited by The Next Web and New Scientist. Nadim Kobeissi, who says he has a copy, says it does not concern RSA and appears to have been discovered entirely by prompting Claude.

Comments

Loading...

Anthropic Python SDK v2.15.0: Credential Fixes, New Error Codes | TPS