Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
sundial-org avatar

Codex Account Switcher

  • 26 installs
  • 638 repo stars
  • Updated March 7, 2026
  • sundial-org/awesome-openclaw-skills

Helps with ai & agent building tasks during AI-assisted development.

About

codex-account-switcher is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted coding.

  • codex-account-switcher
  • AI & Agent Building
  • AI-coding skill

Codex Account Switcher by the numbers

  • 26 all-time installs (skills.sh)
  • Ranked #9,667 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/sundial-org/awesome-openclaw-skills --skill codex-account-switcher

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs26
repo stars638
Last updatedMarch 7, 2026
Repositorysundial-org/awesome-openclaw-skills

What it does

Helps with ai & agent building tasks during AI-assisted development.

Files

SKILL.mdMarkdownGitHub ↗

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.

  • --verbose includes refresh age + token TTL (debug)
  • --json outputs 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 Clawdbot), 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. oliver from oliver@…).
./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

  • Stores auth.json files in ~/.codex/accounts/<name>.json.
  • Identifies accounts by decoding the JWT id_token to find the email address.
  • "Switching" simply overwrites ~/.codex/auth.json with the saved copy.

Installation

Add the script to your path for easy access:

ln -s $(pwd)/codex-accounts.py ~/bin/codex-accounts

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.