Use this skill to manage multiple local Codex accounts on one OpenClaw host with a simple snapshot workflow.
Bundled executable:
scripts/cs.shThis is a small local account manager for Codex on OpenClaw.
Core idea:
openai-codex:default~/.openclaw/auth-snapshots/~/.openclaw/agents/main/agent/auth-profiles.jsonThis avoids filling openclaw.json with a growing roster of Codex aliases.
cs listShow all saved snapshots with:
cs currentShow the real active account email, not just the internal profile id.
cs quotaRead the current active token and query remaining Codex usage quota.
cs switch Switch to a saved account snapshot by updating only the active Codex credentials in:
~/.openclaw/agents/main/agent/auth-profiles.jsonAfter switching, show:
cs add [alias]Start a new OAuth login flow for a brand-new account.
Workflow:
cs add or cs add cs add --apply '' [alias] cs refresh Force-refresh one snapshot using its refresh token.
cs refresh-allScan every snapshot and automatically refresh only those expiring within 24 hours.
This is intended for cron usage.
This skill touches high-sensitivity local auth material.
Main files involved:
~/.openclaw/agents/main/agent/auth-profiles.json~/.openclaw/auth-snapshots/*.json~/.openclaw/auth-snapshots/backups/*~/.openclaw/Treat all snapshot files as secrets.
Never expose full access tokens or refresh tokens in chat.
curl | bash installers.cs add or cs add cs add --apply '' [alias] cs listcs switch Run cs refresh-all from cron once or twice per day.
references/security-notes.md.scripts/README-local-flow.md.共 1 个版本