openclaw-openai-multi-account
Installation
SKILL.md
OpenClaw OpenAI Account Switcher
Use this skill for multiple OpenAI OAuth login accounts managed inside OpenClaw, especially OpenClaw's own openai-codex OAuth accounts, not just plain Codex CLI account files.
What this skill does
- Save the current OpenClaw
openai-codex:defaultOAuth profile as a named snapshot - Add a new account by running
openclaw models auth login --provider openai-codex - Switch all agents to a named snapshot
- Show the current active account (email/account id when available)
- Show cached/observed 5-hour and weekly usage when quota data can be collected
- Auto-switch to the account with remaining quota
- Fall back to a backup model when all accounts are exhausted
Files
- Main script:
scripts/openclaw-openai-accounts.py - Regression test script:
scripts/test_openclaw_openai_accounts.py - State store:
~/.openclaw/openai-codex-accounts/