Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.277 ·

OAuth API-key creation now sends a User-Agent header and handles 4xx refusals distinctly

OAuth API key creation now sends a User-Agent header and reports outright refusals separately from other failures

TierUnder the hoodhow much it should matter to you
Useful1my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaAuthwhat it touches
KindBug Fixesin v2.1.277,
Under the hood

OAuth API key creation now sends a User-Agent header and reports outright refusals separately from other failures

What

When Claude Code mints an API key through OAuth (the login flow used to authorize the app), the request now includes a User-Agent header identifying the client. It also now tells apart two kinds of failure: a 4xx response that isn't already recognized as "you need to verify your account" now triggers a new oauth_api_key_refused telemetry event and a distinct error, instead of being lumped into the generic oauth_api_key_request_failed case.

Why

This makes it possible to tell, from telemetry, when the server actively refused to issue an API key rather than the request simply failing for some other reason, which should help diagnose account-setup problems.

See this entry in the whole of v2.1.277 →