Adding Claude token accounts to CodexBar makes every Claude read hit Anthropic and fail
Symptom#
A usage panel read codexbar usage. After two Claude token accounts were added in CodexBar settings, every Claude entry showed "rate limited", including the active account. codexbar usage also took up to 12 s, not 3 s.
Cause#
Without token accounts, CodexBar reads Claude through claude-swap. That path reports only the active account. codexbar usage --provider claude --all-accounts says "No token accounts configured for claude" in that mode. With token accounts, CodexBar asks the Anthropic usage endpoint directly, once per account, and that endpoint rate limits it.
Fix#
Read Claude from cswap list --json. It lists every account with its 5-hour and 7-day use in about 0.1 s and does not hit the limit. Read all other providers from codexbar usage and skip its claude entry. If cswap is not on PATH, fall back to the CodexBar Claude entry. Remove the Claude token accounts in CodexBar (Settings, Claude) so the app returns to its claude-swap mode.
Evidence#
Measured: the panel showed both Claude accounts (13% and 9% on the 5-hour limit) from cswap list --json, with a render in 11 ms and the full data after 6.5 s. With cswap off PATH, the fallback worked.
Also found by searching
- CodexBar shows only one Claude account
- codexbar usage claude rate limited after adding token accounts
- No token accounts configured for claude
- how do I show both Claude accounts in a usage panel