ClaudeCodeMod

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.

In your shell
claude plugin marketplace add errhythm/ccswap
claude plugin install ccswap@ccswap
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.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

The ccswap section on the author's GitHub page
Screenshot of the author's GitHub page.

What it hooks into

  • session.startWhen a session starts
  • command.runWhen you run its slash command/ccswap
  • ui.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

Other mods in Usage

routeralexei-ledPicks a model and effort for each turn from a classifier, and draws the tier above the prompt.context-budgetmelodic-softwareHolds a commandDraws the session's context by category, in a pane or a band above the prompt, and asks before a settings file is written.extra-modsJhonatan-de-SouzaDraws a menu for Zen, themes, model and effort, and a status line of context, plan limits, and cache.jevNasrallah-ALHas Jev drop stale tool calls at compaction and keep the rest word for word, toasts what it kept, and adds slash commands for the jev CLI.decknvr0x5Draws a collapsible panel above the prompt for the plan, context, the 5-hour and 7-day limits, and a small pet.desktop-statuslinecentminmodDraws a status band above the prompt in the Desktop app's Code tab, with context, plan limits, and the last turn.pixel-buddyhamymarnieDraws the 5-hour and 7-day usage above the prompt, with what each window cost, a cache timer, and a pixel creature.account-rotatorivokundDraws each account's usage under the prompt, and can move the session to another account as a limit fills.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.
All 183 in Usage