ClaudeCodeMod

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.

In Claude Code
/plugin install account-rotator --marketplace ivokund/claude-account-rotator
Open the repo

It 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

The account-rotator section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • session.measureWhen usage is measured
  • classic.StopFailureA Claude Code event
  • command.runWhen you run its slash command/login
  • tool.checkA Claude Code event
  • tool.callAround a tool call, where it can hold one
  • ui.closeWhen its pane closes
  • ui.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
Repo
ivokund/claude-account-rotator
Version
0.3.0
License
MIT
Repo stars
15
Last change
2026-10-16
Language
TypeScript
Files
25

Other mods in Usage

usage-bandJetsonChanDraws one line above the prompt for the 5-hour and 7-day limits, the context, and the last turn's cache hit.burn-meterOneWave-AIDraws session spend as a fuse above the prompt, with the plan limits and a cost in burritos and McDoubles.cache-warmerpaulbkim-devResends the last request to keep the prompt cache warm when that saves at least $0.05, and draws a band with Clawd while it runs.token-weather-usageaugiefraDraws a band above the prompt for context size, the 5-hour and weekly limits, cache warmth, session cost, and running agents.agent-dietVedantAndhaleStarts Explore subagents, and other agent types you list, on Haiku or a model you pick instead of the main model, and counts how many it moved.budget-guardVedantAndhaleKeeps a prompt from being sent while the 5-hour or weekly usage is at or over your limit, until you send it again, and shows the limit with /budget.context-xrayVedantAndhaleDraws a pane with the exact breakdown of what fills the context window, opened with /xray.output-dietVedantAndhaleTrims what Claude reads from a long shell, search, or subagent result, saves the full text, and counts the savings on the status line.pro-hudVedantAndhaleDraws the 5-hour session, the week, and context above the prompt in the desktop app, plus this turn and finished tool calls as one line.session-receiptVedantAndhaleOpens a pane of every turn's tokens, with the five that spent the most, and toasts after a turn that used 3 or more session points.skill-dietVedantAndhaleLists skills unused lately in this project by name only, so their descriptions leave the prompt, and counts those characters on the status line.turn-budgetVedantAndhaleStops a turn that passes the limit you set, writes a handoff, and copies it for a new session, leaving the old one in place. It can ask first instead.
All 183 in Usage