# Hitting Claude Code usage limits? What to do

URL: https://agentvera.dev/en/blog/claude-code-usage-limits/ · Published: 2026-10-04 · Updated: 2026-11-01

When Claude Code usage limits hit mid-task: track remaining usage, shrink context and set up account chains that switch within your provider’s terms.

**In short:**

- Claude Code and Codex subscription usage is capped in 5-hour and weekly windows (verified Claude Ultra accounts: weekly only), and every agent on one account shares the limit.
- A smaller context, /compact on long conversations and focused tasks make the limit last longer; the baseline context is re-read on every turn.
- Where the provider’s terms allow several accounts, an AgentVera account chain moves agents to the next account when 3% or less of a limit remains, by default.

Claude Code usage limits tend to hit at the worst moment: the agent is halfway through a change, the tests haven’t run and the next window is hours away. This post covers why the limit fills up, how to make it last longer and what to do so work doesn’t stall when it runs out.

One caveat up front: using more than one account isn’t treated the same way in every provider’s terms. Apply the account switching section below only as your own provider’s terms allow.

## Why Claude Code usage limits fill up

When Claude Code and Codex run on a subscription, usage is capped within time windows, such as 5-hour and weekly windows. One exception since late October 2026: Claude’s Ultra plan (formerly Max 20x) has no 5-hour limit once the account is verified, only weekly limits. Newer accounts keep a temporary 5-hour limit until then. [Claude Max vs Ultra](/en/blog/claude-max-vs-ultra/ "Claude Max vs Ultra") explains what that changes. The main things that burn through it:

- **A large baseline context:** the system prompt, tool definitions, plugins and MCP servers re-read on every turn.
- **Long conversations:** an uncompacted conversation carries more tokens every turn.
- **Parallel agents:** every agent on the same account draws from the same limit.
- **Expensive models and high effort:** more power than simple jobs need.

## First, make the limit last longer

Before switching accounts, the cheapest move is doing the same work with less usage.

### Shrink the context

In our measurements, Claude Code’s first request came to about 34.4k tokens on a standard setup and 13.3k with the lean profile. Because that baseline is re-read on every turn, the difference adds up over long sessions. Details in [cutting Claude Code token usage](/en/blog/claude-code-token-usage/).

### Compact the conversation

`/compact` summarizes a long conversation. In AgentVera you can set a threshold and compact automatically.

### Shrink the task

Instead of “rewrite the whole module”, give measurable tasks that move step by step. Fewer files get read, less context gets carried.

### Cut unnecessary parallelism

Four agents on one account fill the limit four times as fast. Review which agents truly need to run in parallel.

## Watch the remaining usage

It’s better to see the limit coming than to learn about it when the agent errors out. AgentVera’s status bar shows each account’s remaining 5-hour and weekly usage with mini meters; a value that reaches a critical level turns red. On a verified Ultra account only the weekly meter matters. Click it for detailed limits.

Limits are read from Anthropic’s usage service for Claude and per account through `codex app-server` for Codex. Worth knowing: these aren’t stable, public API contracts.

If you turned on [Telegram notifications](/en/features/notifications-and-approvals/), the limit warning reaches your phone too. The [AgentVera mobile app](/en/blog/claude-code-mobile-app/) sends a notification when an account reaches 90% of its limit, and its **Limits** screen shows every account’s usage.

## Automatic switching with account chains

If your provider’s terms let you use more than one account (for example separate personal and company accounts), AgentVera’s [account switching](/en/features/account-switching/) keeps work from stalling when a limit runs out.

### How it works

1. Add your accounts in Settings → Accounts. Each account gets its own config folder (`CLAUDE_CONFIG_DIR` for Claude, `CODEX_HOME` for Codex).
2. Sign in to each account with the CLI’s own login command (`claude auth login`, `codex login`). AgentVera doesn’t store passwords or tokens.
3. In the account switching settings, turn on the Claude or Codex account chain and set the order. A chain needs at least two accounts.
4. Set the threshold. By default, a switch happens when an account has 3% or less left in its 5-hour or weekly limit.

When the remaining limit drops below the threshold, or the CLI reports a limit, agents on that account move to the next available account. After the last account, the chain wraps around to the first.

### What happens to the conversation?

If moving the conversation to the new account is on, the conversation log is copied into the new account’s folder and the agent picks up where it left off. If it’s off, a new conversation starts.

### When a login has expired

If an account in the chain is signed out or its login expired, AgentVera notices, warns that a login is needed and moves the agent to the next working account. A manual switch also fails early instead of leaving the agent on a login screen.

## Decision table

| Situation | Suggested path |
| --- | --- |
| The limit fills up occasionally | Shrink context, use /compact |
| It fills up fast with parallel agents | Review agent count and task size |
| You have several accounts your terms allow | Account chain and threshold |
| The limit is never enough | Consider a higher plan from your provider |

## What happens when the limit runs out?

Without an account chain, when the limit runs out the CLI shows a warning and the agent can’t send new requests. You have three options:

1. **Wait:** pause the agent until the next window (on a verified Ultra account, that is the weekly reset). The conversation isn’t lost; continue when the limit resets.
2. **Hand the work over:** continue with another tool. For example, pass the work Claude Code left unfinished to Codex through a flow. Conversation history doesn’t move between tools, but the current state and the todo list can.
3. **Switch accounts:** if you have a second account your terms allow and a chain is set up, the switch happens by itself.

Handing work over reduces the impact of limits even without an account chain. An agent that leaves notes on the shared agent board leaves a good starting point for the next one.

## Thinking about limits as a team

With several developers, limits turn from a personal problem into a planning topic:

- **Who does which job on which account?** Shared accounts can fill up at unexpected times.
- **When do long jobs run?** Moving scheduled tasks outside busy hours protects the daytime limit.
- **Which jobs can use a cheaper profile?** Lean for docs and test agents.

AgentVera’s [scheduled tasks](/en/features/scheduled-tasks/) send an agent a message on a cron schedule; if the agent is busy, choose whether to wait, send anyway or skip.

## Common misconceptions

- **“If I shorten the prompt, I won’t hit the limit.”** The prompt is usually a small part of the total; the baseline context and conversation history matter more.
- **“Switching accounts resets the conversation.”** With conversation moving on, the agent carries on where it left off.
- **“The usage meter is always exact.”** Meters read from providers’ usage services; these aren’t stable public APIs and values can change.

## Things to watch when adding accounts

If you set up an account chain, a solid setup saves surprises later:

- **Sign in to each account separately.** Accounts use separate config folders, so signing in to one doesn’t affect the others.
- **Choose the order on purpose.** Put the account you want to use most at the front; the others wait as backups.
- **Tune the threshold to your work.** A very low threshold uses the last few percent, but raises the risk of hitting the limit mid-turn.
- **Keep conversation moving on.** On long jobs, letting the agent continue is cheaper than explaining everything again in a new conversation.

## Checklist

- [ ] Are you watching remaining usage in the status bar?
- [ ] Are agents running with more context than they need?
- [ ] Are long conversations being compacted?
- [ ] If you use an account chain, have you read your provider’s terms?
- [ ] Is every account in the chain signed in?

## Wrapping up

The first fix for Claude Code usage limits is doing the same work with less usage: smaller context, compacted conversations and focused tasks. Seeing limits ahead of time removes surprises. Where your provider’s terms allow, an account chain lets an agent continue where it left off when a limit runs out. The tools that do this automatically are compared in [Claude Code account switchers compared](/en/blog/claude-code-account-switchers/).

AgentVera brings usage meters, context profiles and account chains into one app. See the [Claude Code](/en/agents/claude-code/) page for details, or [start on the free plan](/en/).

## Frequently asked questions

**Why do Claude Code usage limits fill up?** Subscription usage is capped within time windows (for example 5-hour and weekly; verified Claude Ultra accounts have only weekly limits). Long conversations, large context and parallel agents use it up faster.

**Are account chains allowed by my provider?** That depends on your provider’s terms and how your accounts were set up. Use account switching only as the relevant provider’s terms allow; that responsibility is yours.

**Is the conversation lost when the account changes?** If moving the conversation to the new account is on, the conversation log is copied into the new account’s folder and the agent carries on. If it’s off, a new conversation starts.

**Where can I see the remaining usage?** AgentVera’s status bar shows each account’s remaining 5-hour and weekly usage; click it for details.

---

**About AgentVera.** AgentVera is a desktop app for macOS, Windows and Linux, built by Solviera Teknoloji. It runs 18 AI coding agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor, Antigravity, opencode, Hermes, Qwen Code, Kimi Code, Kiro, Amp, Droid, Goose, Vibe, Crush, Aider, Cline) side by side, per project, in real terminals with the user's own CLI installs and logins. The free plan runs 2 agents at once. Download: https://agentvera.dev/en/download/ · Pricing: https://agentvera.dev/en/pricing/
