Hit the Claude Code usage limit? What it means and what to do

"You've hit your session limit" means one of your plan's usage windows has run out, and Claude Code stops sending requests until it resets. This guide explains each limit message, what you can do right away, the errors that look like a limit but aren't, and how to see the next one coming.

What the message means

Claude subscription plans include a rolling usage allowance. When part of it runs out, Claude Code shows one of these messages and blocks further requests until the reset time it names:

You've hit your session limit · resets 3:45pm
You've hit your weekly limit · resets Mon 12:00am
You've hit your Opus limit · resets 3:45pm
You've hit your Sonnet limit · resets 3:45pm
LimitApplies toDoes switching models help?
SessionEvery modelNo
WeeklyEvery modelNo
OpusOpus models onlyYes: pick a model outside the Opus family
SonnetSonnet models onlyYes: pick a model outside the Sonnet family

How the five-hour and weekly windows open and reset is covered in The limits Claude Code counts against.

What you can do now

The Claude Help Center's short answer is to wait for the reset or upgrade your plan. Claude Code gives you a few more options.

Wait, and let Claude Code continue on its own

Since Claude Code v2.1.234, an interactive session signed in with a claude.ai subscription waits in the open session and picks the task up again after the limit resets. It's on by default. While it waits, the bottom of the session shows:

Usage limit reached · limit resets 3:45pm
Continuing automatically at 3:45pm · Esc to cancel

Keep the session open. At the reset, Claude Code prompts Claude to continue where it stopped; it doesn't resend your last message. It still asks for permissions as usual, so the task can pause on a prompt while you're away. After three automatic continuations without a new prompt from you, it stops and points you to /rate-limit-options.

Switch models, for an Opus or Sonnet limit

After "You've hit your Opus limit" or "You've hit your Sonnet limit", run /model and pick a model outside that family to keep working. It won't get you past the session or weekly limit, which every model shares. If you switch during an automatic wait, Claude Code checks whether usage is available again and continues right away if it is.

Add usage credits

Usage credits let you keep working past your plan's limit. Run /usage-credits while signed in with your claude.ai subscription:

Usage credits are billed at standard API rates, separately from your subscription. They are also separate from the monthly API credits included with Max and Ultra, which can't be used in Claude Code. Once credits are on, /usage shows a usage-credits row. If Claude Code is waiting for a reset when you finish adding credits with /usage-credits, it checks again and continues right away if usage is available.

Upgrade, or pay per use with a Console account

A higher plan raises your base limits; claude.com/pricing lists the plans. Alternatively, a Claude Console account bills Claude Code per token through API credits instead of a plan allowance.

Check your environment before you rely on your subscription: if ANTHROPIC_API_KEY is set, Claude Code uses that key instead of your subscription, and you are charged for API usage.

Messages that are not your plan limit

Some errors look like a limit but have nothing to do with your plan's allowance:

A context or auto-compact warning isn't a usage limit either. It means the conversation is close to the point where Claude Code summarizes older history to free space.

See it coming next time

Claude Code can warn you before a window runs out, with a message such as You've used 85% of your session limit · resets 3:45pm. Before that point, you have two ways to check:

Both show the account of the terminal you're in. notch-limits is a small Mac app that keeps every account's limits around the MacBook notch, so the next limit doesn't come as a surprise:

The expanded notch-limits panel with three accounts. Claude, Max plan, tagged Best now: five-hour window 18%, weekly 31%. Claude Work, Pro plan: five-hour window 80% in orange with the line “At this pace: limit today” under it, weekly 46%. Codex, Plus plan: five-hour window 12%, weekly 30%. Each window shows when it resets.
Claude Work is at 80% of its five-hour window and on pace to reach the limit before it resets, so the bar and the line under it turn orange.

Make your allowance last

Claude Code sends your whole conversation with every request, so a long session draws more of your limits than its last message suggests. A few habits from Anthropic's guide to reducing token usage:

Get notch-limits

Free, open source and native. No account of its own, no telemetry.

curl -fsSL https://raw.githubusercontent.com/matheusm/notch-limits/main/install.sh | bash

macOS 14+ · Apple Silicon & Intel · 3 MB download. The one-line install puts the app in ~/Applications with no Gatekeeper prompt. The DMG isn't notarized yet: on first launch, open System Settings → Privacy & Security and click Open Anyway.

Next: how to check Codex usage limits on a ChatGPT plan →

Sources

notch-limits is an unofficial community project, not affiliated with or endorsed by Anthropic or OpenAI. Plans and limits change; the linked docs are the source of truth.