Claude Accounts
Claude Accounts is a mod for Claude Code. It shows how much room is left in the 5-hour limit and the weekly limit of each saved Claude account. It switches the Claude login of this machine to the account with the most room. You do everything with clicks.

The recording uses mock accounts. To record it again, run demo/record.sh.
Disclaimer. This project is unofficial. It is not affiliated with or endorsed by Anthropic.
Read Anthropic's terms (the Consumer Terms and the Usage Policy) before you use several accounts to get around usage limits.
You are responsible for how you use this tool.
Requirements
- Claude Code 2.1.332 or newer, with mods (plugin function hooks) turned on. Mods are an early-access feature. Turn them on with the environment variable
CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1. To set it for every session, put it in the env block of ~/.claude/settings.json, then restart Claude Code.
- macOS or Linux. Windows is not supported.
- No other software. The mod uses only programs that macOS and Linux already have. It needs no Python.
What it looks like
The band above the prompt. Each account has two small bars: 5-hour and week. A full bar means much room. Click the band to open the pane.
● Work ▰▰▰▰▱▱ ▰▱▱▱▱▱ · ○ Personal ▰▰▰▰▰▰ ▰▰▰▰▰▱ · click for details
The Overview in the pane:
[ ● Overview ] [ ○ Settings ]
Work is almost full. Switched to Personal. [ Undo: back to Work ] [ × ]
Room across all accounts
5-hour ████████████████░░░░ 1.6 of 2 accounts free
Week █████████████░░░░░░░ 1.3 of 2 accounts free
╭ ● In use ─────────────────╮ ╭ Personal ─────────────────────╮
│ Work │ │ 5-hour ████████ 95% left │
│ 5-hour ██░░░░░░ 8% left │ │ Week ███████░ 80% left │
│ Week █████░░░ 62% left │ │ [ Switch to this ] [ … ] │
╰───────────────────────────╯ ╰────────────────────────────╯
┌ - - - - - - - - - - - - - ┐
+ Add account Sign in and you're done
A full bar means a lot of room left. The bar is green when there is plenty, amber when it is getting low and red when it is nearly empty.
Install
In Claude Code, type:
/plugin install account-switcher --marketplace SaharCarmel/claude-accounts
Answer y to add the marketplace. Then pick a scope. The plugin is called account-switcher; the repository is called claude-accounts.
You can also use the shell:
claude plugin install account-switcher --marketplace SaharCarmel/claude-accounts
In the desktop app, use + > Plugins > Add marketplace.
To check that it loaded, start a new session and type /accounts. If the command exists, the mod is on. If it does not, the environment variable above is not set for that session.
First run
-
Click the band, or type /accounts.
-
Press Save this account. This saves the account that you are signed in to now.
-
To add the next account, press Add account. Claude opens its own sign-in. Sign in as the other account. Claude Accounts sees the new login, saves it, and then opens your browser one time to get the limit key. The limit key is a one-year key that lets Claude Accounts read your limits. Use the same claude.ai account in the browser. If the key does not match the account, Claude Accounts refuses it and stores nothing.
On a computer with no screen or browser, press Copy link and open the link on another computer. If the page shows a code, paste the code in the Code box in the pane and press Enter.
-
The new account appears as a card.
If a step fails, the pane shows one line that says what happened and a Try again button.
Auto-switch and Undo
When the active account reaches its switch point (default 90% of the 5-hour limit or 95% of the week limit), Claude Accounts switches to the account with the most room. It does this by itself. Then it shows a notice in the pane and above the prompt, for example "Work is almost full. Switched to Personal." Press Undo to go back for real. The notice stays until you press Undo or the close button, or until the next switch.
Settings
| Setting | Default | Range |
|---|
| Auto-switch | On | On or off |
| Switch at 5-hour use | 90% | 50-99 |
| Switch at weekly use | 95% | 50-99 |
| Check limits every | 5 min | 1, 5, 10, 15 or 30 min |
| Minimum gap between switches | 10 min | 5, 10, 15, 30 or 60 min |
| Note when switching | On | On or off |
| Band above the prompt | On | On or off |
| Advanced: File backup of saved logins | Off | On or off |
| Advanced: diagnostics | - | Copy a status line |
| Advanced: reset to defaults | - | Button |
All sessions share the settings.
How switching works