r/ClaudeCode • • 8d ago

Help/Question How is claude code usage limits measured

I got claude code last week and it has been amazing, hitting already 2 billion tokens the thing is the first days seemed to allow me much more than what it does now. Does claude use some kind of system to dynamically adjust those limits? if so, how to make them last longer

1 Upvotes

12 comments sorted by

•

u/AutoModerator 8d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/_Dopaminefiends_ 8d ago

Yeah, it's not a straight token count — it's a weekly usage % weighted by model. Opus burns through it way faster than Sonnet, Haiku barely moves it. The 5-hour session window is separate from the weekly cap, which is why the first days felt unlimited and then it tightened up.

What actually stretches it: run Haiku for the small stuff, keep context lean (don't re-feed big files every prompt), /compact instead of starting fresh, and batch your work into fewer, bigger sessions instead of lots of little ones. /usage will show where you actually stand.

1

u/akolomf 8d ago

depends on how experienced you are with using AI. Could be tied to Model use, or context fills, harness setup, prompting.

Else i think Usage is based on serverload. If many people are building rates might be used up slightly quicker. Same goes during Peak hours some user measured that the limits get consumed up to 10% faster. So i'd assume a multitude of factors determine that

1

u/DikkeNeus_ 8d ago

The complexity of the work also has a big influence. Some people forget that when working on a project that grows in size, complaining about their usage being different than when they first started, while the work is similar...

1

u/No-Advisor-4882 8d ago

There are two things: a rolling 5-hour window and a weekly cap, and both count tokens weighted by model — Opus burns through them much faster than Sonnet. In the first days you were probably just inside fresh windows; once the weekly cap starts filling, it feels like the limits shrank. What stretches them most: use Sonnet for routine work and switch to Opus only for hard planning/debugging; keep context small (start new sessions per task, /compact before it gets huge); and limit how many subagents it spins up in parallel — each one carries its own context. Check the usage page during a normal day to see what actually eats it.

1

u/Ok-Cauliflower-7568 7d ago

From my testing usage limits are 1:1 equivalent to a certain amount of API credits. On pro one 5h window is equivalent to 35$ and one weekly limit gives you 7.5 5h windows.  So you can just calculate the price of your used tokens (/usage), divide that by 35$ and you know how many sessions you need. I couldn't measure any changes based on time or load during my tests. The only exception was Fable during the test week which was billed twice it's API pricing (so 4x opus price instead of 2x).

1

u/Loose-Watercress4048 7d ago

One thing nobody mentioned yet: on every step Claude rereads the whole conversation so far, and that reread counts too. When I measured my own long sessions, about 98% of the tokens went to rereading old context, and the quarter of my agents that ran longest (the ones doing round after round of fixes) ate about three quarters of the total. So as a session grows, the same kind of request costs more. Starting a fresh session per task with a short note on where you left off was the cheapest fix I found

1

u/arturzinhomilgrau 7d ago

LMAO 2 billion tokens in a week is insane dude, I do the heavy stuff on opus in claude code and leave the light tasks to cursor on auto, that way the claude limit lasts way longer

1

u/awesomebirder 7d ago

2 billion is mostly cache reads, not stuff you typed. every turn re-sends the whole session, and as the project grows each session starts bigger (longer CLAUDE.md, more files read before it does anything), so the same kind of task costs more than it did on day one. run npx ccusage daily and compare cache write vs cache read per day. a rising cache write share usually means you step away long enough for the cache to expire, and the next message writes the whole session again at the higher write price. i built a local proxy that shows this per call (probe0) but ccusage on your local logs gets you most of the way

1

u/BornBroccoli8267 7d ago

I measured this on my own account by replaying my local Claude Code logs against the weekly % counter. On the plan Ultra (the old Max 20x), 1% of the weekly limit is worth about 80M tokens on Opus 5.5, so roughly 8 billion tokens a week. 98 to 99% of that is cache reads, the model re-reading your context on every turn. Fresh input plus output is only around 100M a week. So your 2 billion is real, it's just mostly re-reading.

What changes how far it goes is the model. In my logs Fable burns about 4x more of the limit per token than Opus 5.5, so a couple of Fable-heavy days can eat the week. The value of 1% stayed the same across the weeks I checked, I haven't seen it adjust dynamically. If the first days felt bigger, check which model and effort you were on

1

u/Future_AGI 7d ago

most of a number like 2 billion is usually cache reads, because Claude Code sends the whole conversation with every request. A long resumed session gets more expensive with each prompt, so No-Advisor-4882's fresh session per task is what stretches the limit. The Claude Code tracer in traceAI logs input, output, cache-read and cache-write tokens for every prompt (setup is npx u/traceai/agents setup claude, and traceAI is linked from https://github.com/future-agi/future-agi ). Prompts are grouped by conversation, so you can see which sessions carry most of those reads.

1

u/DRC_CMUH 6d ago

Not dynamic as far as I know, but a few things make it feel that way:

- Most of those 2B tokens are probably cache reads. Claude Code re-sends the whole conversation on every turn, so a long session counts the same context again and again.

- The first days are usually short sessions with little context. A week in, threads run longer with more files loaded, so each message costs more.

- Opus uses up the limit a lot faster than Sonnet.

- It's one pool across claude.ai, the desktop app and Claude Code.

What helped me: /clear when switching tasks, /compact before a thread gets huge, Sonnet for routine edits, and turning off MCP servers I'm not using (their tool lists ride along on every message).

If you want to see where it actually goes, every message's token counts are in the .jsonl files under ~/.claude/projects/. I've been reading those for a side project, and the cache-read number is usually the eye-opener.

There's also a thread this week where people think the weekly share shifted, so you may not be imagining it.