codex-account-switcher
Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
Best use case
codex-account-switcher is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
Teams using codex-account-switcher should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/codex-account-switcher/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How codex-account-switcher Compares
| Feature / Agent | codex-account-switcher | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
Related Guides
SKILL.md Source
# 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 ```bash ./codex-accounts.py list ``` To include emails/diagnostics: ```bash ./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@…`). ```bash ./codex-accounts.py add ``` ### 3. Switch Account Instantly swap the active login. ```bash ./codex-accounts.py use work ``` ### 4. Auto-Switch to Best Quota Check all accounts and switch to the one with most weekly quota available. ```bash ./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: ```bash ln -s $(pwd)/codex-accounts.py ~/bin/codex-accounts ```
Related Skills
codexmonitor
List/inspect/watch local OpenAI Codex sessions (CLI + VS Code) using the CodexMonitor Homebrew formula.
codex-quota
Check OpenAI Codex CLI rate limit status (daily/weekly quotas) using local session logs. Portable Python script.
codex-orchestration
General-purpose orchestration for Codex. Uses update_plan plus background PTY terminals to run parallel codex exec workers.
codex-cli
Use OpenAI Codex CLI for coding tasks. Triggers: codex, code review, fix CI, refactor code, implement feature, coding agent, gpt-5-codex. Enables Clawdbot to delegate coding work to Codex CLI as a subagent or direct tool.
portfolio-watcher
Monitor stock/crypto holdings, get price alerts, track portfolio performance
portainer
Control Docker containers and stacks via Portainer API. List containers, start/stop/restart, view logs, and redeploy stacks from git.
portable-tools
Build cross-device tools without hardcoding paths or account names
polymarket
Trade prediction markets on Polymarket. Analyze odds, place bets, track positions, automate alerts, and maximize returns from event outcomes. Covers sports, politics, entertainment, and more.
polymarket-traiding-bot
No description provided.
polymarket-analysis
Analyze Polymarket prediction markets for trading edges. Pair Cost arbitrage, whale tracking, sentiment analysis, momentum signals, user profile tracking. No execution.
polymarket-agent
Autonomous prediction market agent - analyzes markets, researches news, and identifies trading opportunities
polymarket-5
Query Polymarket prediction markets. Use for questions about prediction markets, betting odds, market prices, event probabilities, or when user asks about Polymarket data.