ccswap
Multi-account and usage manager for Claude Code, Codex and Antigravity.
Install ·
Commands ·
Auto-switching ·
Raycast ·
Docs

What it does
- Keeps several Claude Code and Codex CLI logins side by side and switches the active one with
ccswap switch 2 or ccswap codex switch 2.
- Shows every account's 5-hour, 7-day and Codex weekly usage with reset times in
ccswap list.
ccswap auto switches to the account with the most quota left once the active one crosses 90%, before the rate limit hits.
ccswap run 2 starts Claude Code as account 2 in one terminal only, so two accounts work in parallel.
- A full-screen dashboard (
ccswap) on macOS, Linux and Windows, and an optional macOS menu bar app.
- A Raycast extension that lists accounts with their usage and switches with one keystroke.
--json output and exit codes for scripts and cron.
Quick start
uv tool install ccswap # or: pipx install ccswap
# Log into Claude Code with your first account, then:
ccswap add
# Log in with the next account, then:
ccswap add
ccswap list # every account's usage and reset times
ccswap switch 2 # or: ccswap switch --strategy best
ccswap auto # or let it switch for you before a limit is hit
Codex accounts work the same way: run codex login, then ccswap codex add.
For personal Google Antigravity accounts, sign in with agy, then run ccswap agy add. Use ccswap agy usage for every quota group and ccswap agy switch 2 to change the shared login. Existing CLI, App and IDE sessions may need a restart. Antigravity accounts
You usually don't need to restart Claude Code after a switch. Codex always needs one. See restarts.
Common tasks
Switch by quota. ccswap switch --strategy best picks the account with the most quota left. --strategy consume-first picks the one whose weekly limit resets soonest, so none of it expires unused. All switch options
Switch automatically. ccswap auto polls every 60 seconds and is safe to run while Claude Code works. Thresholds, per-model limits, cron mode and strategies are in auto-switching.
Optional five-hour window warming sends a minimal Haiku prompt for idle Claude accounts. It uses subscription quota and is disabled by default.