Codex account switcher

From sundial-org/awesome-openclaw-skills · View interactive version

Codex account switcher is an AI agent skill from the GitHub repository sundial-org/awesome-openclaw-skills. Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.

How to use this skill

Skill file

Codex 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.

./codex-accounts.py list

To include emails/diagnostics:

./codex-accounts.py list --verbose

2. Add an Account

Interactive wizard to capture login(s).

./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

How It Works

Installation

Add the script to your path for easy access:

ln -s $(pwd)/codex-accounts.py ~/bin/codex-accounts
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.