Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
.claude/skills/sundial-org-codex-account-switcher/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -46% | 0% |
| case-06 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-07 | ✗→✓ | ▲ Improved | -50% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -47% | 0% |
| case-10 | ✗→✓ | ▲ Improved | 59% | 0% |
Manage multiple OpenAI Codex identities (e.g. personal vs. work) by swapping the authentication token file.
Show saved accounts (active one is marked with ACTIVE on the right). Default output is compact.
--verbose includes refresh age + token TTL (debug)--json outputs the verbose info as JSONbash./codex-accounts.py list
To include emails/diagnostics:
bash./codex-accounts.py list --verbose
Interactive wizard to capture login(s).
codex logout && codex login) so you explicitly choose the identity to capture.oliver from oliver@…).bash./codex-accounts.py add
Instantly swap the active login.
bash./codex-accounts.py use work
Check all accounts and switch to the one with most weekly quota available.
bash./codex-accounts.py auto ./codex-accounts.py auto --json
Output:
🔄 Checking quota for 2 account(s)...
→ sylvia... weekly 27% used
→ oliver... weekly 100% used
✅ Switched to: sylvia
Weekly quota: 27% used (73% available)
All accounts:
sylvia: 27% weekly ←
oliver: 100% weeklyauth.json files in ~/.codex/accounts/<name>.json.id_token to find the email address.~/.codex/auth.json with the saved copy.Add the script to your path for easy access:
bashln -s $(pwd)/codex-accounts.py ~/bin/codex-accounts
Other measured skills in the registry, with their headline benchmark lift.