codex-account-switcher
Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly. ⚠️ Reads and writes ~/.codex/auth.json and ~/.codex/accounts/*.json (sensitive authentication tokens).
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/odrobnik/codex-account-switcherCodex Account Switcher
Manage multiple OpenAI Codex identities (e.g. personal vs. work) by swapping the authentication token file.
Usage
1. List Accounts
Show saved accounts (active one is marked with ACTIVE on the right). Default output is compact.
--verboseincludes refresh age + token TTL (debug)--jsonoutputs the verbose info as JSON
./codex-accounts.py list
To include emails/diagnostics:
./codex-accounts.py list --verbose
2. Add an Account
Interactive wizard to capture login(s).
- Always starts a fresh browser login (
codex logout && codex login) so you explicitly choose the identity to capture. - After each login it saves a snapshot.
- In an interactive terminal it asks if you want to add another.
- When invoked non-interactively (e.g. via Moltbot), it runs single-shot (no "add another" prompt).
- When naming an account, press Enter to accept the default name (local-part of the detected email, e.g.
oliverfromoliver@…).
./codex-accounts.py add
3. Switch Account
Instantly swap the active login.
./codex-accounts.py use work
4. Auto-Switch to Best Quota
Check all accounts and switch to the one with most weekly quota available.
./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% weekly
Setup
See SETUP.md for prerequisites and setup instructions.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-odrobnik-codex-account-switcher": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
elevenlabs
Text-to-speech, sound effects, music generation, voice management, and quota checks via the ElevenLabs API. Use when generating audio with ElevenLabs or managing voices.
tesla-fleet-api
Use when integrating with Tesla's official Fleet API to read vehicle/energy device data or issue remote commands (e.g. start HVAC preconditioning, wake vehicle, charge controls). Covers onboarding (developer app registration, regions/base URLs), OAuth token flows (third-party + partner tokens, refresh rotation), required domain/public-key hosting, and using Tesla's official vehicle-command/tesla-http-proxy for signed vehicle commands.
unifi
Monitor UniFi network infrastructure via the UniFi Site Manager API. Use to list hosts/sites/devices/APs and get high-level client/device counts.
codexmonitor
List/inspect/watch local OpenAI Codex sessions (CLI + VS Code) using the CodexMonitor Homebrew formula. Reads sessions from ~/.codex/sessions by default (or via CODEX_SESSIONS_DIR / CODEX_HOME overrides). Requires the cocoanetics/tap Homebrew tap.
printer
Print images and PDFs to any CUPS printer. PPD-aware: reads paper sizes, margins, resolution, and duplex at runtime. Use when the user wants to print files (images like PNG/JPG or PDFs) or query printer capabilities.