Follow Discord
Sweep 08 Oct 2026 · 18:53Z Build v2.1.295 516 read Stable v2.1.286 Latest v2.1.295 Next v2.1.295 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.295 ·

Bedrock gateways now count tokens with AWS CountTokens

On Bedrock gateways, count_tokens now calls AWS CountTokens with a 10-minute retry backoff, and the built-in gateway guide says the same

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

What

A gateway is a proxy between Claude Code and the model provider. Bedrock is Amazon's model service. count_tokens asks how many tokens (pieces of text the model counts) a request uses.

  • The Bedrock upstream now answers count_tokens with AWS CountTokens, with a 10-second timeout, instead of failing at once.
  • If that fails it retries only every 10 minutes, and meanwhile falls back to the next upstream or to a billed one-token request.
  • The built-in gateway guide now says to answer count_tokens with Bedrock's CountTokens and return {"input_tokens": N}, using 501 only if that fails or the model is an application inference profile. Before, it said Bedrock had no count-tokens API.

Why

Token counts on Bedrock gateways can now come from Amazon directly. The AWS identity the gateway uses needs permission for bedrock:CountTokens, or it falls back as described.

Read from
Names in the bundlecount_tokens

See this entry in the whole of v2.1.295 →

Feedback