All shelves / Mods / Usage
ccswap
By errhythm
ccswap is a Claude Code usage mod by errhythm.
Draws your ccswap accounts and their 5-hour and 7-day usage, and switches from a button on the band.
Draws
Install
The marketplace name is ccswap.
claude plugin marketplace add errhythm/ccswap claude plugin install ccswap@ccswap
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.1.0
- License
- MIT
- Repo stars
- 33
- Last change
- 2026-10-16
What it can reach
- Draws in the session
- Reads usage or context figures
- Runs a command when you press
- Calls another program on this machine
Install the ccswap CLI first, with uv tool install ccswap. It reads ccswap list --json from that CLI on PATH. /ccswap lists accounts with 5h and 7d usage. /ccswap best, /ccswap next, or /ccswap with a slot or email switches accounts. /ccswap pane opens the accounts pane, and /ccswap refresh re-reads usage. Each command answers right away, without starting a Claude turn. The band appears once a watched gate reaches its threshold (default 90 percent) and names the account with the most room. Its button switches there. Typing that digit into an empty prompt presses it. A toast appears when the active account changes. The mod polls every 60 seconds. After a switch, Claude Code can take about 30 seconds to pick up the new login from the macOS Keychain cache. If it does not, restart Claude Code. A checkout starts with claude --plugin-dir mod. The README does not say anything leaves the machine.
Inside a session the README also gives /plugin install ccswap --marketplace errhythm/ccswap. The commands above are the shell fence.
Demo

What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/ccswapui.renderDraws into the sessionPaneAbovePrompt
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/ccswapccswap accounts: list, switch (best, next, a slot or email), pane, refresh
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- errhythm
- Category
- Usage
- Marketplace
- ccswap
- Repo
- errhythm/ccswap
- Folder
- mod
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 33
- Last change
- 2026-10-16
- Language
- Python
- Files
- 7