All shelves / Mods / Usage
account-rotator
By ivokund
account-rotator is a Claude Code usage mod by ivokund.
Draws each account's usage under the prompt, and can move the session to another account as a limit fills.
Draws
Install
The marketplace name is claude-account-rotator.
/plugin install account-rotator --marketplace ivokund/claude-account-rotatorIt runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.3.0
- License
- MIT
- Repo stars
- 15
- Last change
- 2026-10-16
What it can reach
- Draws in the session
- Reads usage or context figures
- Reaches the network or an outside service
- Runs a command when you press
- Calls another program on this machine
Claude Code 2.1.299 or later, in /tui fullscreen, the only renderer that passes clicks on. macOS, where Claude Code keeps sign-ins in the keychain, or Linux, where it keeps them in files. On Linux, a terminal with mouse reporting. iTerm2 needs mouse reporting on, tmux needs set -g mouse on, and iTerm2 tmux -CC cannot run fullscreen. Subscription accounts. Click the footer for the panel: Sign in, Use now, Remove, Add an account, Rotate now, Chrome, Usage based rotation, and Display. Sign in uses claude auth login. Once the account in use is down to 10 percent of its 5-hour window or 5 percent of its week, the session moves to another account, unless Usage based rotation is disabled. A turn that still hits a limit switches and asks Claude to carry on. Connect, above the prompt, runs /mcp reconnect claude-in-chrome and tells Claude to carry on. Each account gets a folder ~/.claude/accounts/<n>, and Claude Code keeps its sign-in in the keychain under that folder's name, or on Linux in that folder's .credentials.json. The mod stores each account's email, organization, plan, and last usage, a digest of its token, and which account Chrome is signed in to. Tokens stay where Claude Code keeps them. Its only network traffic is each account's usage every 10 minutes, from the endpoint /usage reads, and once per sign-in who it belongs to, each with that account's own token. With Claude in Chrome it also asks which browsers answer. Claude Code stops a switch for the rest of a session that started on a Team or Enterprise seat. The README describes turning off a Claude Code security default to change that, and warns that it removes a protection for every plugin and may count as bypassing Anthropic's Usage Policy. The README also notes that Claude Code's legal page says Pro and Max limits assume ordinary, individual usage, and leaves the Consumer Terms for you to judge. To undo, remove each account in the panel, which signs it out, then run claude plugin marketplace remove claude-account-rotator, which uninstalls the mod and deletes what it stored, and delete ~/.claude/accounts. A checkout starts with claude --plugin-dir .
The install line has no @suffix. The marketplace name is claude-account-rotator. The plugin is the repo root. ccswap draws ccswap accounts and their 5-hour and 7-day usage and switches from a button. This one draws each account under the prompt and can move the session. Claude Code stops a switch for the rest of a session that started on a Team or Enterprise seat, or after plugins reload while one is in use. That block is Claude Code's, not this mod refusing a command.
Demo

What it hooks into
session.startWhen a session startssession.measureWhen usage is measuredclassic.StopFailureA Claude Code eventcommand.runWhen you run its slash command/logintool.checkA Claude Code eventtool.callAround a tool call, where it can hold oneui.closeWhen its pane closesui.renderDraws into the sessionSessionModeAbovePromptPane
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- ivokund
- Category
- Usage
- Marketplace
- claude-account-rotator
- Version
- 0.3.0
- License
- MIT
- Repo stars
- 15
- Last change
- 2026-10-16
- Language
- TypeScript
- Files
- 25
