Jump to related tools in the same category or review the original source on GitHub.

Coding Agents & IDEs @odrobnik Updated 2/26/2026

šŸŽ­ Codex Account Switcher OpenClaw Skill - ClawHub

Do you want your AI agent to automate Codex Account Switcher workflows? This free skill from ClawHub helps with coding agents & ides tasks without building custom tools from scratch.

What this skill does

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

npx clawhub@latest install codex-account-switcher

Full SKILL.md

Open original
nameversiondescriptionhomepage
codex-account-switcher1.2.3Manage 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). https://github.com/odrobnik/codex-account-switcher-skill

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

Setup

See SETUP.md for prerequisites and setup instructions.

Original URL: https://github.com/openclaw/skills/blob/main/skills/odrobnik/codex-account-switcher

Related skills

If this matches your use case, these are close alternatives in the same category.