Last updated: November 22, 2026
TL;DR
A Claude Code session limit is a usage window on your subscription, and it resets on its own. Which limit you hit decides what you can do about it, so read the message first (Anthropic's cost docs):
- โณ Session or weekly limit: shared across all models, so switching models won't help. The message says when it resets, and Claude Code can wait and continue the task for you.
- ๐ Opus or Sonnet limit: model-specific. Switching with
/modelto a model outside that family keeps you working. - ๐ณ Spend limit: your usage credits hit a cap someone set. Raise it, or wait for the reset the message names.
- ๐ Context or auto-compact warning: not a usage limit at all. Your conversation is near the context window.
Which limit did you hit?
The docs list the messages side by side, and they mean different things:
| Message | What it is | What gets you working again |
|---|---|---|
You've hit your session limit | A usage window on a subscription plan, shared across all models | Wait for the reset shown, or use usage credits |
You've hit your weekly limit | The longer usage window, also shared across all models | Wait for the reset, or use usage credits |
You've hit your Opus limit or You've hit your Sonnet limit | A limit on one model family | /model to a model outside that family |
You've hit your individual spend limit, org's monthly spend limit or team's shared budget | Usage credits reached a spend limit | An admin raises the limit, or you wait for the plan reset if the message names one |
| A context or auto-compact warning | The conversation is near the auto-compact window | /clear or /compact; see our /compact guide |
For the first two, the docs are explicit that the developer "can't restore access by switching models with /model." For the model-specific ones, "switching to a model outside that family with /model does keep the developer working."
What resets, and when
Every limit message on a subscription shows when its window resets, so you never have to guess. The two windows behave differently:
- The session window is short. On Team and Enterprise, each member's allowance "resets on a rolling five-hour window and a weekly window," and it's shared with Claude chat and Cowork.
- The weekly window can be days away. Claude Code's own docs note that "a weekly limit can reset days out," which is why it treats weekly resets differently when it waits for you (below).
On API keys and cloud providers there's no window at all. Usage there "is metered per request, so there is no reset to wait for." If you use both a personal Claude plan and a Team seat on the same email, they stay two separate accounts.
When you hit one mid-task
Let Claude Code wait and continue
Since v2.1.234, Claude Code can pick up where it stopped. When a claude.ai usage limit stops Claude mid-task, "Claude Code waits in the open session and continues the task on its own after the limit resets." It's on by default in interactive sessions signed in with a claude.ai subscription, and the bottom of the session shows the plan:
Usage limit reached ยท limit resets 3:45pm
Continuing automatically at 3:45pm ยท Esc to cancel
It won't start that wait on its own when the reset is more than 24 hours away, in Remote Control and agent team teammate sessions, or for an Opus or Sonnet limit while you're on another model. In those cases, run /rate-limit-options and pick Wait here, then continue automatically. Background sessions and -p runs don't get the option at all.
The wait ends without continuing if you send a prompt, exit Claude Code, or change the conversation with /clear, /rewind, /resume or /login.
Keep going with usage credits
Usage credits let you "keep working past your plan's usage limit." Run /usage-credits: on Pro, Max and Ultra it opens Settings > Usage on claude.ai, where you turn credits on and set a monthly spend limit. On Team and Enterprise, members with billing access open the organization's usage settings, and members without it send a request to their admins.
Switch models, when it's a model limit
For an Opus or Sonnet limit only, /model to a model outside that family. It does nothing for a session or weekly limit.
Plan around the limits
The limits are fixed; how fast you reach them isn't. The cost docs name what makes a long session draw more than its activity suggests:
- Long context. "Claude Code sends your full conversation with every request," so stale context costs on every message.
/clearbetween unrelated tasks. - Things that run while you're idle. Scheduled tasks such as
/loop, cross-session messages and goal check-ins each send your full context. - Subagents, workflows and teammates. Each sends its own requests on top of the main conversation's.
- Compaction. "
/compactreads the conversation it summarizes," so compacting a large context is a large request.
To see which of these applies to you, run /usage. On Pro, Max, Ultra, Team and Enterprise it recommends a change for any behavior behind 10% or more of your recent usage. Our token usage guide walks through reading it, and our effort levels guide covers the cheapest lever for routine work.
For unattended runs
A limit in a CI job or a -p run doesn't wait the way an interactive session does. Setting CLAUDE_CODE_RETRY_WATCHDOG to 1 makes Claude Code "retry 429 and 529 capacity errors indefinitely instead of failing," and CLAUDE_CODE_RETRY_WATCHDOG_MAX_USAGE_LIMIT_WAIT_MS caps how long one request waits for a session or weekly limit to reset (v2.1.301 or later). Our headless mode guide covers the rest of running Claude Code without a person at the terminal.
Frequently asked questions
What is the Claude Code session limit?
It's a usage window on a Claude subscription plan, shared across all models. When you reach it, Claude Code shows "You've hit your session limit" with the time it resets. On Team and Enterprise, the allowance resets on a rolling five-hour window and a weekly window.
Does switching models get around a Claude Code usage limit?
Only for a model-specific limit. After "You've hit your Opus limit" or "You've hit your Sonnet limit," switching with /model to another family keeps you working. Session and weekly limits are shared across all models, so switching doesn't help.
Can Claude Code continue automatically after a usage limit resets?
Yes, since v2.1.234. In an interactive session signed in with a claude.ai subscription, Claude Code waits and continues the task after the reset. For resets more than 24 hours away, pick "Wait here, then continue automatically" from /rate-limit-options.
How do I keep using Claude Code after hitting my limit?
Turn on usage credits with /usage-credits, which lets you work past your plan's limit up to a monthly spend limit you set. Otherwise, wait for the reset time shown in the message, or switch models if it's an Opus or Sonnet limit.
Is a context or auto-compact warning a usage limit?
No. It means the conversation is near the session's auto-compact window, the point where Claude Code summarizes older history to free space. Use /clear for a fresh start or /compact to keep continuity.
Make the window last longer
Most of what fills a usage window is context, and context stays small when what matters lives in files Claude can reload instead of in chat. For the full picture of what fills the window and how to trim it, start with our Claude Code context window guide.
Stop guessing. Score your first workflow.
Score one workflow in about five minutes. Nine questions, a grade, and the specific gap holding it back - no call required.
Related Posts

Claude Code token usage: read /usage and /context before it costs you
Claude Code token usage scales with context, because every request carries the whole conversation. How to check usage with /usage, /context and the status line, why a long session costs more, and the habits that reduce token usage.

/compact in Claude Code: when to compact, and what auto-compact keeps
/compact replaces the conversation with a summary so a Claude Code session keeps going. When to run it with a focus, when to /clear instead, what survives compaction, and how to set when auto-compact fires.

Claude Code effort levels: which one for which task
Claude Code has five effort levels, from low to max, and the newest models start at medium. What each level is for, the default on each model, which setting wins when several apply, and how ultrathink raises a single turn.
