ccdeck

How to switch Claude Code accounts at the limit

Checked on against ccdeck 3.48.0 and the sources below

Short answer

Sign in as your other account with /login, or keep both logins in claude-swap and switch with one command. To switch before the limit, turn on claude-swap’s auto-switch, on its own or in ccdeck.

What Claude Code says at the limit

A subscription has, in Anthropic’s words, “a rolling five_hour window and a weekly seven_day window.” When one runs out, Claude Code “blocks further requests until the reset time shown in the message,” such as You've hit your session limit · resets 3:45pm. /usage shows your plan limits and when they reset.

The quota is “tied to your account or plan”: another account you hold has its own. Claude Code’s own answers, in /rate-limit-options, are to wait and continue after the reset, add usage credits, or upgrade.

Claude Code: sign in as the other account

Run /login and sign in as the other account, which Anthropic’s documentation calls switching accounts. /status shows the account in use. From a shell, use claude auth login and claude auth status.

To stay signed in to both, Anthropic suggests a configuration directory for each account, “such as work and personal accounts.” Its example alias, for ~/.bashrc or ~/.zshrc:

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

What it misses. You switch by hand, signing in each time. /login also ends Claude Code’s wait to continue after the reset. A configuration directory has “its own settings, session history, and claude.ai login or API key,” so you choose the account when you start claude.

claude-swap: several logins, one command

claude-swap is an open-source command-line tool that keeps each account’s login and swaps the one Claude Code uses. Sign in to Claude Code as each account in turn, and run cswap add after each. Its README says not to run /logout first: Claude Code “may revoke the refresh token stored for the account you are leaving.”

uv tool install claude-swap

What it misses. cswap auto works only while something runs it: a terminal, cron, or its macOS menu bar app. A running session takes the new account on its next message, on macOS after about 30 seconds, and “the first message on the new account may use extra usage as its conversation cache rebuilds.”

ccdeck: each account’s quota, and a home account

ccdeck is a free, open-source dashboard on your machine. Its Claude accounts panel opens from the stripe on the left, or with A, and reads the logins claude-swap holds. ccdeck can install claude-swap for you.

npx ccdeck --ref=switch-claude-code-accounts

What it misses. Claude accounts only, through claude-swap: a switch is a cswap switch, with the same delay. Home and the weekly rule move only to an account signed in, in rotation, read in the last 15 minutes and more than 5 points under the threshold. A cswap auto running in a terminal takes over, without the home or the weekly rule. Both choices are kept per machine.

More about Soonest weekly reset

It is ccdeck’s own rule, not claude-swap’s consume-first. Its moves below the threshold are made only while claude-swap is on its default strategy, best, so the two do not take turns. Below the threshold it moves only to an account whose week resets at least an hour sooner than the one in use, and not within 30 minutes of the last move. Home comes first. When no account fits, claude-swap decides, as before. The 4 days are 95 hours, and are not a setting.

Step by step

Sources

Read on . What ccdeck does is checked against ccdeck 3.48.0, and what another tool does against its own documentation.