Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.333 ·

Gateway guidance on marking a reached spend limit

Built-in gateway guidance now says to send the spend_limit_reached error code only when the user's own spending cap is reached

You'll notice Improvements
JSON All of v2.1.333
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.333,
ImprovementsSection of the release
What

A gateway is a server an organization can place between Claude Code and the model to control access and spending. The guidance for gateway authors that ships with Claude Code now explains how to mark a reached spending cap:

  • Send "details":{"error_code":"spend_limit_reached"} only when the user's own cap is reached.
  • Leave details off when the limit check fails closed because the gateway could not fetch the limit.
  • Leave details off for a shared group pool limit.
Why

This tells people who build gateways how to signal which kind of cap was hit.

See this entry in the whole of v2.1.333 →

Feedback