# What to do when Claude Code hits the usage limit

Hit Claude Code's session or weekly limit? See when it resets and keep going with usage credits, an API key or another account without losing the conversation.

Source: https://hivemux.dev/guides/claude-code-usage-limit/

> The limit message shows when the window resets. Wait (Claude Code 2.1.234 and later can continue the task after the reset), buy usage credits with /usage-credits, or /logout and log in to another account; claude --continue reopens the conversation under the new login. hivemux moves every Claude, or one project, to another account in the same conversation, or goes on with an API key.

Claude Code on a Pro, Max or Ultra plan stops when the plan's usage limit is reached. The message names the limit (`You've hit your session limit` or `You've hit your weekly limit`) and shows when the window resets; a reply already under way finishes with `Usage limit reached · wrapping up`. Nothing is lost: the conversation is saved, and you have five ways to go on.

The facts below come from Anthropic's [costs](https://code.claude.com/docs/en/costs) and [authentication](https://code.claude.com/docs/en/authentication) docs and the support article [Using Claude Code with your Pro or Max plan](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan) (November 2026).

## How the limits work

| Plan | Five-hour session limit | Weekly limit |
|---|---|---|
| Pro, Max | Yes | Yes (Max: a separate weekly limit for Fable too) |
| Ultra | No for verified accounts | Yes (a separate weekly limit for Fable too) |

The limits are shared across Claude and Claude Code: chats on claude.ai, Claude Code in the terminal and Claude Code in an IDE all count toward the same limits. Every session you run in parallel, and every subagent, draws on them too.

To see where you stand, run `/usage`. Subscribers get plan usage bars, activity stats and a breakdown; the Session block is the current session's tokens. `/status` shows which login is in use. A line such as `rate limited until 3:14am` in `/usage` means Claude Code cannot fetch your plan limits again until then, not that your work is limited.

## Five ways to keep going

| Option | How | Cost | Conversation |
|---|---|---|---|
| Wait for the reset | The limit message shows when | Nothing extra | From Claude Code 2.1.234 it can wait and continue the interrupted task after the reset (on its own, or from `/rate-limit-options`); else `claude --continue` |
| Usage credits | `/usage-credits` opens Settings → Usage on claude.ai | Credits you buy; a spend limit can cap them | Continues |
| API key | Set `ANTHROPIC_API_KEY`, start `claude --continue` and approve the key | Standard API rates | `claude --continue` |
| Another account | `/logout`, then log in to the other one | That account's plan | `claude --continue`; send the last prompt again |
| Plan API credits | An Agent SDK tool with a key of the linked Console organization (below) | Included in Max, Ultra, Team | A handoff, not the transcript |

### Another account by hand

`/logout` at the prompt logs out; the next `claude` asks you to log in, and you pick the other account. The conversation is in the same folder (`~/.claude`), so `claude --continue` reopens it. The catch is that Claude Code started from then on uses that login too, and switching back means logging out again.

To keep two logins side by side, give each its own config folder; Anthropic's authentication docs show it as an alias:

```sh
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'
```

Each folder has its own settings, session history and login. That last part is the catch: a conversation started under `~/.claude` is not in `~/.claude-work`'s history, so `claude-work --resume` does not list it. Copy or link the project's transcripts if you want to carry one over.

## Switching accounts with hivemux

hivemux is a tmux sidebar that shows every Claude Code session — running, waiting for you, or done — and lets you jump to the one that needs you. Its account switch is built for the usage limit: the work goes on in the same conversation, for every session at once or for one project.

```sh
hivemux account add work        # log in once, in the browser
hivemux account use work        # every project; back: hivemux account use default
hivemux account use work -s api # only the api project
```

Or right-click the sidebar → **Switch account…** (a project's name → **Account for this project…** for one project). Before it switches, it says how many Claudes in which projects will restart and asks. Each one restarts on the new account with `claude --resume`: at once when it is resting or stopped by the limit, after its turn when it is working. New windows start on it too, and the status line shows `◉ work` while it is not the default.

An added account is a config folder of its own (`CLAUDE_CONFIG_DIR`), but only the login is its own: settings, hooks, conversations, memory, skills, plugins and history link to `~/.claude`. So every conversation continues under any account, and Claudes on different accounts still see and message each other. The full reference is in [Claude accounts](/docs/accounts/).

## Your plan's API credits at the limit

Max, Ultra and Team plans include [monthly API credits](https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-ultra-and-team-plans): $100 on Max, $200 on Ultra, up to $500 for a team, claimed on claude.ai → Settings → Billing by linking a Claude Console organization. They do not change your plan's limits, and they expire at the end of each billing cycle. They cover the Claude API and the Claude Agent SDK, not interactive Claude Code: with a key of that organization, Claude Code stops at `Credit balance too low`.

hivemux can go on on them by itself. Add the key once (`hivemux account add-key api`, then `hivemux account fallback api`); at a usage limit its Claudes go on in the same pane through the Agent SDK, in hivemux's own terminal laid out like Claude Code, from a handoff of the conversation, and turn back into Claude Code when the limit resets. See [Claude accounts](/docs/accounts/#go-on-with-an-api-key-at-the-limit).

## Using fewer tokens before the limit

- Run fewer sessions at once, and stop the ones you are not using; they come back in their own conversation with `claude --resume`.
- Start long research or reviews as subagents with a smaller model (`model: haiku` in the subagent file) so only the summary enters the main context.
- `/clear` when a task is done instead of carrying the whole history into the next one.

## FAQ

### How long until the Claude Code usage limit resets?

The limit message itself shows when the window resets. Pro and Max plans have a five-hour session limit and a weekly limit; Ultra has a weekly limit, and verified Ultra accounts have no five-hour limit. Max and Ultra also have a separate weekly limit for Fable.

### Do Claude.ai chats count toward the Claude Code limit?

Yes. Anthropic's support article says the limits are shared across Claude and Claude Code, so all activity in both counts against the same limits, including Claude Code in an IDE.

### How do I check my Claude Code usage?

Run /usage at the prompt. Subscribers see plan usage bars, activity stats and a breakdown; the Session block shows the current session's tokens. /status shows which login is in use, and Anthropic's support article also points to it for the remaining allocation.

### Will I lose my conversation if I switch accounts?

No, as long as the new login uses the same config folder. The conversation is a transcript file in that folder, so after /logout and logging in to the other account, claude --continue reopens it. A second account in its own CLAUDE_CONFIG_DIR folder does not see the first one's history. The prompt that hit the limit was not answered, so send it again.

### Can I use an API key when the subscription limit is reached?

Yes. With ANTHROPIC_API_KEY set, Claude Code uses the key once you approve it, billed at API rates. Run unset ANTHROPIC_API_KEY and check /status to go back to the subscription.

### Do the monthly API credits of Max, Ultra and Team plans work for Claude Code?

No. Anthropic's support article says they cover the Claude API and the Claude Agent SDK with a key of the linked Console organization, not interactive Claude Code; Claude Code on such a key stops at Credit balance too low. A tool that goes on through the Agent SDK, such as hivemux at the usage limit, can use them.
