776ā
by odrobnik
codex-account-switcher ā OpenClaw Skill
codex-account-switcher is an OpenClaw Skills integration for coding workflows. Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
Skill Snapshot
| name | codex-account-switcher |
| description | Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly. OpenClaw Skills integration. |
| owner | odrobnik |
| repository | odrobnik/codex-account-switcher |
| language | Markdown |
| license | MIT |
| topics | |
| security | L1 |
| install | openclaw add @odrobnik/codex-account-switcher |
| last updated | Feb 7, 2026 |
Maintainer

name: codex-account-switcher description: Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly. metadata: clawdbot: emoji: "š" requires: bins: ["python3"]
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.
--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 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.
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
How It Works
- Stores
auth.jsonfiles in~/.codex/accounts/<name>.json. - Identifies accounts by decoding the JWT
id_tokento find the email address. - "Switching" simply overwrites
~/.codex/auth.jsonwith the saved copy.
Installation
Add the script to your path for easy access:
ln -s $(pwd)/codex-accounts.py ~/bin/codex-accounts
No README available.
Permissions & Security
Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.
Requirements
- OpenClaw CLI installed and configured.
- Language: Markdown
- License: MIT
- Topics:
FAQ
How do I install codex-account-switcher?
Run openclaw add @odrobnik/codex-account-switcher in your terminal. This installs codex-account-switcher into your OpenClaw Skills catalog.
Does this skill run locally or in the cloud?
OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.
Where can I verify the source code?
The source repository is available at https://github.com/openclaw/skills/tree/main/skills/odrobnik/codex-account-switcher. Review commits and README documentation before installing.
