[BUG] Billing : Had a Monthly Limit set to 50$ still it didn't stopped there and consumed more.

Status Open
Reported on v2.1.32
Maintainer reply None cached
Activity 4 comments · opened Feb 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I had a mostly usage set to 50$ but it consumed more, is there a problem about restricting its usage and limit doesn't work ?

What Should Happen?

Should have stopped at 50$

Error Messages/Logs

Steps to Reproduce

<img width="1008" height="337" alt="Image" src="https://github.com/user-attachments/assets/707733cd-2c0c-46de-9ad1-13d965d6bd86" />

Claude Model

Other

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.32

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

4 Comments

github-actions[bot] · 6 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/1047
  2. https://github.com/anthropics/claude-code/issues/14229
  3. https://github.com/anthropics/claude-code/issues/17694

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

JRAVILES · 6 months ago

Additional Report — Same bug, extra details

I experienced the same issue. Set a R$10 (BRL) monthly spending limit as a test, and was charged R$27.36 (274% of the limit) in a single session using Claude Code CLI with Opus (1M token context).

Key additional observations:
  1. No progressive billing feedback during usage: Unlike other models that show billing progression in real-time, the Opus 1M context session charged everything all at once after the session ended — no intermediate warnings that the limit was being approached or exceeded.
  1. No session interruption: The system should have stopped or warned when approaching the R$10 limit, but instead allowed the full R$27.36 charge to go through.
  1. Environment: Claude Code CLI, Opus model, 1M token context window, auto-reload disabled.

This suggests the spending limit enforcement is either not checked during long-context sessions, or the billing granularity is too coarse (single large charge instead of incremental).

Originally reported in #27154
JRAVILES · 6 months ago

Additional feedback — Extended context (1M tokens) billing expectations

Following up on my previous comment: there's also a billing model clarity issue with the extended 1M token context.

The expectation: If the plan (Max, Pro, etc.) advertises "extended context up to 1M tokens" as a feature, users naturally expect that usage to be covered by the monthly plan quota — not billed separately as extra API usage.

What actually happens: Using the 1M token context in Claude Code silently consumes API credits (extra usage) rather than the plan's monthly allowance. There's no clear indication that switching to extended context changes the billing model from "plan quota" to "pay-per-token API credits."

Why this matters:

  • Users who received promotional API credits (like myself, $275 to test) expect them to last a reasonable amount of time
  • The cost per interaction grows exponentially as context accumulates (each message re-sends the full context)
  • A few messages in a single session can cost $25+ without any warning
  • Combined with the spending limit enforcement bug, this creates a poor billing experience

Suggestion: Either include extended context usage within the plan quota, or make it very explicit when the billing model switches from plan-included to API-credit consumption — ideally with real-time cost feedback during the session.

wozcode-helper · 1 month ago

ngl sounds like the $50 cap didnt actually block some requests so charges kept piling up, check ur dashboard for pending usage and file a support ticket if it keeps billing. ps wozcode cut my token spend about 50% with smarter caching, worth trying https://wozcode.com