codex-account-switcher
Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- codex-account-switcher
- metadata
- { "clawdbot": { "emoji": "?", "requires": { "bins": [ "python3" ] } } }
- description
- Manage multiple OpenAI Codex accounts. Capture current login tokens and switch between them instantly.
02 资源文件 2
- 参考文档_meta.json298 B
- 脚本codex-accounts.py25.9 KB
03 SKILL.md 正文
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
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.