github errhythm/ccswap v1.4.0

one hour ago

Features

  • Quota can count down. ccswap config set ui.quotaDisplay remaining shows what's left (88% used reads as 12%) in the dashboard, CLI, statusline, Claude Code mod, Raycast and menu bar. ui.quotaLabels (none, used, left (default), both) picks which word goes after the percentage. ccswap --remaining list or ccswap --used list switch the direction for one command. In the menu bar, both are under Settings → General. The switch threshold is shown in the same direction, so 10% left means 90% used. Auto-switch, warning colours and --json fields still work in percent used. Thanks @samuelclay (#72).
  • Launch at login in the macOS menu bar, under Settings → General (popover) or Settings (classic). It writes the same launch agent as ccswap menubar --install-service, so an existing install shows as on. If macOS wants approval, the setting points you to Login Items in System Settings. Thanks @samuelclay (#73).
  • ccswap history charts each account's weekly usage and estimates when the window fills, for Claude, Codex and Antigravity. Readings are stored locally as JSON Lines. history.enabled (default on) and history.retentionDays (default 400) control it (#67).
  • Standby accounts: ccswap standby NUM (also ccswap codex standby and ccswap agy standby) marks an account as a last resort. Auto-switch and switch --strategy pick a standby account only when no regular account qualifies. list shows (standby), and --json rows carry "standby" (#68).
  • ccswap map 4,1 <path> maps several accounts to one directory in order of preference. ccswap run there picks the first account that can be switched to and is under its thresholds. ccswap map --add 1 <path> appends one. Existing single-account mappings load unchanged (#64).
  • autoswitch.refreshAheadMinutes (10 to 240, off when unset) makes ccswap auto refresh the active Claude login that many minutes before it expires. Claude Code then has no reason to refresh it, which keeps many sessions on one login from all refreshing at once and getting the login revoked (#70).
  • Five-hour warm-up for idle Codex and Antigravity accounts, like autoswitch.warmupFiveHour for Claude: autoswitch.codexWarmup and autoswitch.antigravityWarmup, both off by default (#69, #65).

Fixes

  • ccswap list shows saved Antigravity accounts from cache when ccswap can't tell which login agy is using (Keychain and fallback file both present), instead of hiding the whole section behind the conflict error (#63, fixes #56).
  • Refresh-ahead keeps a refreshed Claude login that only reached the backup. A later usage poll on the old token no longer overwrites it, so nobody has to sign in again (#71).
  • ccswap map never picks an API-key account, which run would refuse (#71).
  • Every HTTP request now sends User-Agent: ccswap/<version>. Claude requests used to send claude-swap/1.0 (#66).

Don't miss a new ccswap release

NewReleases is sending notifications on new releases.