Claude Code · Server and limits
Claude Code: You've hit your session limit (usage limit reached)
Claude Code says “You’ve hit your session limit” or weekly limit? When it resets, how to keep working now, and how to make your plan’s usage last longer.
Message
The exact error
You've hit your session limit · resets 3:45pmAlso appears as:
- Weekly allowance
- You've hit your weekly limit · resets Mon 12:00am
- Model-family limits
- You've hit your Opus limit · resets 3:45pm You've hit your Sonnet limit · resets 3:45pm
- Warning before the limit
- You've used 85% of your session limit · resets 3:45pm
- Usage credits cap (a different limit)
- You've hit your monthly spend limit · raise it at https://claude.ai/settings/usage
Meaning
What does “You’ve hit your limit” mean?
“You’ve hit your limit” means your Claude subscription’s usage allowance for the current session window or the week has run out. Pro, Max, Team and Enterprise plans include a rolling allowance for each, and Claude Code blocks requests until the reset time in the message. Usage counts against the session and weekly allowances at the same time, and both cover all models, so switching model doesn’t help with them. The Opus and Sonnet limits are different: they apply only to that model family.
Causes
Why did I hit the limit so fast?
- Long conversations: every turn re-sends the whole history, so usage grows with the length of the session, not the number of messages
- Large files, logs and tool output read into the conversation
- Many subagents or a large workflow running in parallel, which can use up the weekly allowance before the session window resets
- Using Opus for routine work that Sonnet or Haiku could do
Fix
How do I continue Claude Code after hitting the limit?
See where you stand
Run
/usageto see your plan’s windows and when each resets. The reset time is also in the error message itself.Let Claude Code continue after the reset
In an interactive session signed in with a claude.ai subscription, Claude Code can wait in the open session and continue the interrupted task shortly after the reset. Turn this off with Continue automatically at usage limit in
/config. In the Desktop app’s Code tab, the session-limit card has a separate Auto-continue when limits reset checkbox.For an Opus or Sonnet limit, switch family
Run
/modeland pick a model outside that family to keep working. The new model has no prompt cache yet, so its first request re-reads the whole conversation.Buy more usage or upgrade
Run
/usage-creditsto buy extra usage on Pro and Max (or request it from your admin on Team and Enterprise), or move to a higher plan. Compare the cost with the API in the subscription vs API calculator.
Don’t do this
- Deleting your saved login or credential files: it doesn’t reset the allowance, which is tracked on Anthropic’s side, and only forces you to sign in again.
Explained
How do I stop hitting Claude Code limits?
Start a fresh conversation with /clear for each new task and /compact long ones, so each turn re-sends less history. Point Claude at specific files rather than whole folders, and avoid pasting huge logs: the token counter shows how big a paste is before you send it. Run fewer subagents in parallel, and use Sonnet or Haiku for routine edits. Our guide to reducing Claude Code token usage covers each of these in detail.
To see a limit coming, watch for the warning (“You’ve used 85% of your session limit”), run /usage, add the rate_limits fields to a custom status line, or click the usage ring next to the model picker in the Desktop app.
Explained
What is “You’ve hit your monthly spend limit”?
That is the cap on usage credits (extra usage), not your plan’s allowance. On Pro and Max, raise it in Settings > Usage on claude.ai or run /usage-credits; on Team and Enterprise, an admin sets it. If Claude Code is billing a Console API key instead, you see Credit balance is too low when its credits run out, and a 429 when the key hits its rate limit.
FAQ
Questions people ask
When does my Claude Code limit reset?
Pro and Max plans have a five-hour session limit and a weekly limit, and the message shows when yours resets, for example “resets 3:45pm” or “resets Mon 12:00am”. Run /usage in Claude Code to see each window and when it resets. In an interactive session, Claude Code can also wait and carry on with the task shortly after the reset.
Does switching model help with a session limit?
Not for session or weekly limits, which are shared across all models. It does help for an Opus or Sonnet limit, which applies only to that model family: switching with /model to a model outside the family keeps you working. The new model starts without a prompt cache, so its first request re-reads the conversation.
Do Claude Code and claude.ai share the same usage limit?
Yes. Anthropic’s help centre says the Pro and Max limits are shared across Claude and Claude Code, so all activity in both counts against the same allowance: a heavy chat session leaves less for coding, and the reverse. API-key usage is separate and billed to the Console organization’s credits.
Will deleting my credentials or logging out reset the limit?
No. The allowance is tracked on Anthropic’s side against your account, so logging out, deleting saved credentials or reinstalling Claude Code doesn’t restore it. Wait for the reset time, switch model family for an Opus or Sonnet limit, or buy usage credits.
Related
Related errors
Keep exploring