Codex Pool
Use this skill when the user wants to inspect, switch, or repair Codex CLI accounts managed by codex-pool.
Workflow
- Check that the official
codexCLI is installed before doing anything else. - Check whether
codex-poolis already installed withcommand -v codex-pool, and if present compare its current version to the pinnedv0.1.2skill version. - If
codex-poolis missing or older than the pinned skill version, explain that the skill will download the pinnedv0.1.2release archive and SHA256 file from this repository's GitHub Releases, verify the checksum, and install or upgrade the binary at${INSTALL_DIR:-$HOME/.local/bin}/codex-pool. - Only after explicit user confirmation, install or upgrade it with
CODEX_POOL_INSTALL_APPROVED=1 ./scripts/ensure-codex-pool.sh. - Prefer non-mutating commands first:
codex-pool doctorcodex-pool list --refreshcodex-pool watchcodex-pool refresh
- Only run mutating commands after the user clearly asks for them or explicitly confirms:
codex-pool initcodex-pool addcodex-pool reauth <account-ref>codex-pool use <account-ref>orcodex-pool use --bestcodex-pool run <account-ref> ...orcodex-pool run --best ...
Safety Boundary
./scripts/ensure-codex-pool.shdownloads from this repository's GitHub Releases (github.comwith GitHub-owned release asset redirects) and installs or upgradescodex-poolin${INSTALL_DIR:-$HOME/.local/bin}.codex-pool list --refresh,codex-pool watch, andcodex-pool refreshmay call ChatGPT usage endpoints onchatgpt.com, or another host already configured in the local Codex config.- Token refresh paths may call the OAuth issuer in the existing auth token, typically
auth.openai.com. codex-pool use,codex-pool run,codex-pool init,codex-pool add, andcodex-pool reauthmay overwrite the live auth file at~/.codex/auth.json.codex-pool init,codex-pool add,codex-pool reauth, and other account-management commands may create or update~/.codex-pool/accounts.jsonand~/.codex-pool/config.toml.codex-pool add,codex-pool init, andcodex-pool reauthmay launch the browser viacodex login.codex-pool run ...starts another process after switching auth; only use it when the user explicitly asks to launchcodexor another program.codex-pool updatedownloads a GitHub Release archive plus checksum and overwrites the installed binary in place; only use it after explicit user confirmation.- Do not install or upgrade
codex-pool, switch accounts, start re-authorization, or launch a child process without explicit user confirmation.
Recommended Sequence
- If
codex-poolis missing or older thanv0.1.2, stop and ask for install or upgrade confirmation before running the installer. - Start with
codex-pool doctorto confirm prerequisites. - Use
codex-pool list --refreshto inspect account status and usage. - If the user wants the best account, prefer
codex-pool use --bestafter confirmation. - Only use
codex-pool run --bestwhen the user explicitly wants to launchcodexor another program after switching. - If an account is expired or requires login, use
codex-pool reauth <account-ref>after confirmation. - If the user explicitly wants to upgrade
codex-pooloutside the skill bootstrap flow, prefercodex-pool updateor rerunning the publishedinstall.sh.
References
- For command behavior and ranking rules, read
./references/commands.md.