# Claude Code Usage Limit Reached: Resets and Fixes

> Claude Code usage limit reached? Learn what the 5-hour, weekly and Opus limit messages mean, when they reset, and how to keep coding on a pay-per-token key.

Source: https://goiapi.com/en/blog/claude-code-usage-limit-reached
Updated: 2026-12-05

Author: GoiAPI, December 5, 2026

"Usage limit reached" in Claude Code means your Claude subscription has used up one of its usage windows: the 5-hour session limit, the weekly limit, or a model-specific limit such as Opus. The message always shows the reset time, and Claude Code blocks new requests until then. You can wait (Claude Code can now continue the task on its own after the reset), turn on usage credits, upgrade your plan, or point Claude Code at a pay-per-token API key and keep working right away.

Everything below about Claude plans was checked against Anthropic's Help Center and the Claude Code docs on December 5, 2026. Anthropic changes these limits often, so the message on your screen and the `/usage` command are the final word for your account.

## What each "limit reached" message means

Claude Code prints a short line that tells you which window ran out and when it comes back. These are the variants listed in the [Claude Code error reference](https://code.claude.com/docs/en/errors) and Anthropic's [guide to Claude error messages](https://support.claude.com/en/articles/12466728-understanding-claude-error-messages) (both checked December 5, 2026):

| Message | What ran out | Does `/model` help? |
| --- | --- | --- |
| `You've hit your session limit · resets 3:45pm` | The 5-hour session window | No. It is shared across all models |
| `You've hit your weekly limit · resets Mon 12:00am` | The weekly window | No. It is shared across all models |
| `You've hit your Opus limit · resets 3:45pm` | The Opus-only allowance | Yes. Switch to a non-Opus model |
| `You've hit your Sonnet limit · resets 3:45pm` | The Sonnet-only allowance | Yes. Switch to a non-Sonnet model |
| `Usage limit reached · wrapping up` | The 5-hour window ran out mid-response; Claude Code is allowed to finish the current step (this counts toward your weekly limit; on Pro at most once a week, and it is still rolling out) | Not needed. New messages are blocked afterwards |
| `5-hour limit resets [time] - continuing with usage credits` | Session window ran out, but usage credits are on (wording from Anthropic's Help Center; Claude Code may phrase it differently) | Not needed. You are now paying per token |
| `You've used 85% of your session limit · resets 3:45pm` | Nothing yet. This is the early warning | Not needed |

The times in the examples are placeholders; your message shows your own reset time in your local time zone.

### Messages that look similar but are not plan limits

Not every "limit" error is about your subscription. Check which one you have before you wait five hours for nothing:

- `API Error: Server is temporarily limiting requests (not your usage limit)` is a short throttle on Anthropic's side. Claude Code retries it automatically. Wait a minute and try again.
- `API Error: Request rejected (429)` means the rate limit of an **API key** or cloud project, not your plan. Run `/status`: a forgotten `ANTHROPIC_API_KEY` in your environment can route Claude Code through a low-tier key instead of your subscription.
- `Credit balance is too low` means a Claude Console (API) account has no prepaid credits left, or Claude Code is using a Console key when you meant to use your plan.
- A context or auto-compact warning is about the size of the conversation, not your usage. That one is covered in [Claude Code "prompt is too long"](https://goiapi.com/en/blog/claude-code-prompt-is-too-long).

For a full list of API errors and their fixes, see our [Claude Code API error guide](https://goiapi.com/en/blog/claude-code-api-error).

## How Claude Code usage limits work

Claude Code on a Pro, Max or Ultra plan doesn't bill per token. Instead, each plan has usage windows, and everything you do counts against them. Per Anthropic's Help Center article on [using Claude Code with a Pro, Max or Ultra plan](https://support.claude.com/en/articles/11145838) (checked December 5, 2026):

- **The limits are shared with the Claude apps.** Chatting on claude.ai, using the desktop app and running Claude Code all draw from the same allowance. A long chat in the morning leaves less for coding in the afternoon.
- **The 5-hour session limit** resets every five hours. Pro and Max have it. Verified Ultra accounts don't.
- **The weekly limit** resets once a week. Every paid plan has one, including Ultra.
- **A separate weekly Fable limit** applies on Max and Ultra.
- **Model-family limits** (Opus, Sonnet) can stop one model while others still work.

Both windows fill at the same time. The Claude Code docs warn that one heavy burst, such as a large fan-out of subagents, can use up the weekly allowance before the 5-hour window even resets.

### Limits by plan

Prices and descriptions from [claude.com/pricing](https://claude.com/pricing), checked December 5, 2026. Anthropic describes limits as multiples of Pro, not as token counts.

| Plan | Price | Usage described as | 5-hour limit | Weekly limit |
| --- | --- | --- | --- | --- |
| Free | $0 | Limited usage | Yes | Yes (no Claude Code) |
| Pro | $20/month ($17/month billed yearly) | More usage than Free | Yes | Yes |
| Max | $100/month | 5x Pro usage | Yes | Yes, plus a Fable weekly limit |
| Ultra | $200/month | 10x Pro usage per week | No, for verified accounts | Yes, plus a Fable weekly limit |

The pricing page adds that how fast you reach a limit depends on the model you use. Opus burns through the allowance faster than smaller models.

## When does the Claude Code limit reset?

The exact reset time is in the message itself, and you can check it any time:

1. Run `/usage` at the Claude Code prompt. Subscribers see plan usage bars with the reset times, plus a breakdown of what used the allowance (skills, subagents, MCP servers, loops) and suggestions to cut it. Press `d` or `w` to switch between the last 24 hours and the last 7 days.
2. On claude.ai, open **Settings > Usage**.
3. For a constant view, add the `rate_limits` fields to a custom status line, or click the usage ring in the desktop app.

A few things that do **not** reset the limit:

- **Starting a new session or running `/clear`.** The limit belongs to your account, not to the conversation. `/clear` only resets the session's token counters.
- **Switching models,** for the session and weekly limits. It only helps after an Opus or Sonnet limit message.
- **Buying usage credits.** Credits let you keep working past the limit, but Anthropic says they don't change when your limits reset.
- **Logging out and back in** with the same account.

### Let Claude Code continue after the reset

Since Claude Code v2.1.234, an interactive session signed in with a claude.ai subscription can wait for the reset and pick the task up on its own. While it waits you see lines like:

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

Keep the terminal open. At the reset, Claude Code tells Claude to continue where it stopped; it doesn't resend your last message. A few rules from the [interactive mode docs](https://code.claude.com/docs/en/interactive-mode) (checked December 5, 2026):

- It doesn't start the wait on its own when the reset is more than 24 hours away, which is common for the weekly limit. Instead it opens the usage-limit options menu: pick **Wait here, then continue automatically** (run `/rate-limit-options` to reopen the menu if you closed it).
- It stops after three automatic continuations in a row and shows `Automatic continue stopped after repeated usage-limit hits`.
- Press `Esc` at an empty prompt to cancel. Exiting Claude Code, `/clear`, `/resume` or `/login` also ends the wait.
- To switch the behavior off, use **Continue automatically at usage limit** in `/config`.

The continued task still asks for permissions as usual, so it can pause on a prompt while you're away.

## Your options when you hit the limit

Anthropic's Help Center lists four routes: wait, turn on usage credits, upgrade (not available on Ultra, the top plan), or move to API billing. Here is how they compare:

| Option | Keeps you working now? | What it costs | Good when |
| --- | --- | --- | --- |
| Wait for the reset | No (unless the reset is soon) | Nothing extra | The 5-hour window resets within the hour |
| Usage credits | Yes | Anthropic's standard API rates, billed on top of your plan | You want to stay signed in to your plan and pay by card |
| Upgrade (Pro to Max, Max to Ultra) | Yes, after upgrading | $100 or $200 a month | You hit the limit most days |
| Your own API key (pay-per-token) | Yes | Per token, at the price list of the service that issues the key | Limits hit unevenly, or you want a fixed budget you control |

### Usage credits

Usage credits are Anthropic's built-in overflow. According to the Help Center article on [usage credits for paid plans](https://support.claude.com/en/articles/12429409-extra-usage-for-paid-claude-plans) (checked December 5, 2026):

- Go to **Settings > Usage** on claude.ai, switch on **Usage credits**, add a payment method, set a monthly spend limit and buy credits. In Claude Code, `/usage-credits` opens the same page.
- Once your plan limit runs out, requests continue and are billed at standard API rates. Your message changes to "Now using credits".
- The monthly API credits that come with Max, Ultra and Team don't apply to usage credits.
- Credits bought on or after December 7, 2026 generally expire 12 months after purchase.

At those standard rates, Opus 5.5 costs $4 per million input tokens and $20 per million output tokens ([Anthropic pricing](https://platform.claude.com/docs/en/about-claude/pricing), checked December 5, 2026). That is the price you pay for every token past your limit.

### Upgrade your plan

Max gives 5x Pro usage per 5 hours and per week. Ultra removes the 5-hour limit for verified accounts and gives 10x Pro per week. If you hit the 5-hour window every day, upgrading is the simplest fix. If you hit it twice a month, you'd be paying for capacity you mostly don't use. Our [Claude Code Max vs API cost comparison](https://goiapi.com/en/blog/claude-code-max-vs-api-cost) works through the break-even.

## Keep coding with a pay-per-token API key

Claude Code can authenticate with an API key instead of your claude.ai login. When it does, your plan's 5-hour and weekly limits no longer apply to those requests: you pay for the tokens you use. The [Claude Code LLM gateway docs](https://code.claude.com/docs/en/llm-gateway) (checked December 5, 2026) say that with a gateway URL and its key, the key holder is billed per token and subscription limits don't apply.

That makes a pay-per-token key a useful backup for the hours your plan is locked. With GoiAPI, the setup is two environment variables. GoiAPI offers Claude Opus 5.5 and Claude Haiku 5.5 (not Sonnet or Fable), plus GPT, DeepSeek and GLM models.

### Use the key in one terminal only

Set the variables in the terminal where you want to keep working. They last only for that terminal window, so your subscription login stays untouched everywhere else:

```bash
# macOS / Linux
export ANTHROPIC_BASE_URL="https://api.goiapi.com"
export ANTHROPIC_AUTH_TOKEN="sk-..."
export ANTHROPIC_MODEL="claude-opus-5-5"
claude
```

```powershell
# Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://api.goiapi.com"
$env:ANTHROPIC_AUTH_TOKEN = "sk-..."
$env:ANTHROPIC_MODEL = "claude-opus-5-5"
claude
```

Notes from our own run and the docs:

- The base URL has **no `/v1`** at the end. Claude Code adds `/v1/messages` itself. With `/v1` added, Claude Code stops with a 404 that blames the model.
- We ran this configuration on December 3, 2026 with Claude Code 2.1.325 in non-interactive mode (`claude -p`) using `claude-haiku-5-5`, and it answered correctly. A long interactive Opus session on this setup was not tested end to end.
- If you run Opus, also set `ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-haiku-5-5"` so the background tasks that use the Haiku alias go to a model GoiAPI offers.
- Run `/status` inside Claude Code to confirm which credential is active.

The full walkthrough, including VS Code and `settings.json`, is in our [Claude Code API key setup guide](https://goiapi.com/en/blog/claude-code-api-key) and the [Claude Code integration docs](https://goiapi.com/en/docs/integrations/claude-code).

### Pick up the same task

Your conversation history lives on your machine, so in the new terminal you can run `claude --continue` in the same project folder to reopen the most recent conversation. We have not tested this hand-off end to end. Expect the first request to cost more than usual: the new endpoint has no prompt cache for your conversation yet, so the whole history is sent and written to the cache once.

### Go back to your plan after the reset

Close that terminal (or remove the three variables) and open a new one. Claude Code then uses your claude.ai login again. If you put the variables in your shell profile or `settings.json` instead, remove them there, or every session will keep billing the key.

## What the backup costs

Pay-per-token cost depends on the model and how much context each turn carries. Two reference points from our earlier measurements and from today's prices:

**One tiny turn, measured.** On December 3, 2026, a one-line question in Claude Code (Haiku 5.5, `claude -p`, empty folder) used 10,679 input tokens, 15,574 cache-write tokens and 3 output tokens. Most of that is Claude Code's own system prompt and tool definitions, so even the smallest request starts above 10,000 tokens.

**A working day, calculated.** Using the "moderate" assumptions from our [cost comparison](https://goiapi.com/en/blog/claude-code-max-vs-api-cost) (500,000 uncached input, 1,000,000 cache-write, 10,000,000 cache-read and 200,000 output tokens per day) and prices checked December 5, 2026:

| Model and price list | Cost per moderate day (calculation) |
| --- | --- |
| Opus 5.5 at Anthropic standard rates (what usage credits charge) | $13.00 |
| Opus 5.5 on [GoiAPI pricing](https://goiapi.com/en/pricing) | about $1.76 |
| Haiku 5.5 on GoiAPI pricing | about $0.10 |

These are calculations from listed prices and our own assumptions, not measurements of a real day. GoiAPI also applies a small minimum charge to each request that returns content, and requests that fail without returning content aren't charged. If you only need a backup for the few hours a week your plan is locked, the real figure is a fraction of a full day.

## Limits you still have on an API key

Pay-per-token removes the 5-hour and weekly windows, but a key still has limits of its own. On GoiAPI ([limits and balance docs](https://goiapi.com/en/docs/limits-and-balance), checked December 5, 2026):

- **Requests per minute.** Each key has a per-minute request limit. Going over returns `429` with a `Retry-After` header. The key we tested on December 3, 2026 reported 60 requests per minute.
- **Balance.** Requests stop with `402` when your balance can't cover them. Before each request a hold is placed based on `max_tokens`, and the unused part is released when it finishes.
- **Your own spending limit.** You can set a spending limit on each key so a long session can't drain your balance.
- **Request size and time.** Up to 20 MB per request body and 15 minutes per request.

## How to hit the limit less often

Most plan limits run out because every turn re-sends a large context. A few habits help, whichever way you pay:

- Run `/usage` and read the recommendations. They point at the biggest token users in your setup, such as a long `CLAUDE.md` or a chatty MCP server.
- `/clear` between unrelated tasks. A day-long conversation makes every one-line question expensive.
- Use a smaller model for simple work and keep Opus for hard problems.
- Check for idle usage: scheduled loops, background command check-ins and subagents can use your allowance while you're away.

Our guide to [reducing Claude Code token usage](https://goiapi.com/en/blog/reduce-claude-code-token-usage) goes through each one with examples.

## FAQ

### How long is the Claude Code usage limit?

The session limit runs on a 5-hour window and the weekly limit resets once a week. The message shows the exact reset time, for example `You've hit your session limit · resets 3:45pm`, and `/usage` shows both. Verified Ultra accounts have no 5-hour limit, only the weekly one.

### Does starting a new Claude Code session reset my usage limit?

No. The limit is tied to your Claude account and shared with claude.ai and the desktop app. A new session, `/clear` or logging in again on the same account doesn't give you more usage. Only the reset time, usage credits, an upgrade or a different billing method (an API key) gets you working again.

### Why did I hit the limit so fast?

Usually because of long context or a big model. Each turn re-sends the whole conversation, subagents send their own requests, and Opus uses the allowance faster than smaller models. Chats on claude.ai count too. Run `/usage` to see the breakdown for the last 24 hours or 7 days (the breakdown covers Claude Code sessions on this machine only, not claude.ai; the plan bars count everything).

### Is there a Claude Code plan with no limits?

No. Every subscription plan has at least a weekly limit, including Ultra. Paying per token through an API key removes the plan windows, but the key still has a per-minute request limit and stops when your balance or spending limit runs out.

### Can I use an API key and my subscription at the same time?

Yes, in different terminals. Set `ANTHROPIC_BASE_URL` and `ANTHROPIC_AUTH_TOKEN` only in the terminal that should bill the key; other terminals keep using your plan. Avoid putting the key in your shell profile if you want your plan to stay the default.

## Set up a backup key

To keep a pay-per-token fallback ready for the next time your plan is locked: [create a GoiAPI account](https://goiapi.com/en/signup), top up a small amount with USDT (TRC20 or BEP20) or Binance Pay (no credit card needed), create an API key and set a spending limit on it. Top-ups are final and non-refundable, so add only what you expect to use. The [quickstart](https://goiapi.com/en/docs/quickstart) walks through each step, and the Request history page shows what every request cost.

GoiAPI sells API access to the models mentioned in this article.
