codex keeps its account until it is started again.
Turn it on
- App
- Command line
In Settings > General, under Before an account runs out, turn on Switch Claude Code automatically. Switch when a limit reaches 95% sets the share, from 50% to 99%.The app switches only while it is open. After each switch, it posts a notification such as Switched Claude Code to personal. To stop, turn the setting off.
pitboard watch and pitboard use can run at once without making two switches from one reading. Who starts a switch explains why.
Which account it switches to
Pitboard watches each limit of the account in use. Besides the five-hour and weekly limits, an account can report a weekly limit for one model, such as Opus. Once any limit reaches the share, it looks for another enrolled Claude Code account that:- Has a parked login that can still be put in use.
- Has used less than the share of every limit it reports.
- Reports each limit the account in use has. The exception is a weekly limit for one model that did not reach the share. Plans limit different models, so an account without it qualifies if it reports its five-hour and weekly limits.
pitboard watch says so once. When the account runs out, the app offers a switch if another account has room then, as When an account runs out describes.
The switch is the one pitboard use makes, with the same checks, and pitboard log records it as auto-switch.
What it never does
- Switch back by itself. The next time the account in use reaches the share, Pitboard chooses again, perhaps the account it left.
- Switch away from one limit of an account twice before that limit resets. If you put the account back in use, it stays.
- Switch away from an account within 5 minutes of its being put in use, by anyone.
- Try one limit more than three times before it resets, or twice within 1 minute.
- Quit an app.
When it holds back
Pitboard does not switch in these cases:- A switch is interrupted. The next change you make finishes it, or
pitboard abandongives up on it. See Interrupted switches. - Claude Code uses
CLAUDE_CODE_CUSTOM_OAUTH_URL. - Claude Code signs in another way that
pitboard doctorwarns about, such asapiKeyHelper.
pitboard watch say each once until the next switch.
Keep the numbers fresh
Pitboard decides from usage it has already read, sending no request. The app andpitboard watch read every account every 5 minutes, less often while Anthropic rate limits usage checks. A session using its account fast can pass the share and reach the limit between two reads.
Add pitboard statusline to Claude Code, as Show usage in Claude Code’s status line describes. Each session then records its usage after every response, and the app and pitboard watch see it within 2 seconds. The status line itself never switches.