codex-multi-auth Features

May 3, 2026 ยท View on GitHub

User-facing capability map for Codex CLI multi-account OAuth, ChatGPT account switching, health checks, recovery tooling, project-scoped storage, and local runtime Responses rotation.


Manage Multiple Codex CLI Accounts

CapabilityWhat it gives youPrimary entry
Multi-account dashboard loginAdd and manage multiple OAuth identities from one terminal flowcodex-multi-auth login
Onboarding backup restoreRestores the latest named backup or lets you choose a named backup manually when a fresh install or empty pool needs to recover saved accounts fastcodex-multi-auth login
Account dedupe and identity normalizationAvoid duplicate saved account rowslogin flow
Explicit active-account switchingPick the current account by index instead of relying on hidden statecodex-multi-auth switch <index>
Fast and deep health checksSee whether the current pool is usable before a coding sessioncodex-multi-auth check
Flagged-account verification and restoreRecover accounts that were sidelined during prior failurescodex-multi-auth verify-flagged

Choose The Best Account Before A Session

CapabilityWhat it gives youPrimary entry
Readiness and risk forecastSuggests the best next accountcodex-multi-auth forecast
Live quota probe modeUses live headers for stronger decisionscodex-multi-auth forecast --live
JSON report outputLets you inspect account state in automation or support workflowscodex-multi-auth report --live --json
Runtime rotation proxy (default-on)Lets forwarded official Codex CLI/app sessions rotate managed accounts between Responses requests without restarting the session. Disable per install when needed.codex-multi-auth rotation status

Rotate Live Codex Runtime Requests

Runtime rotation is part of the current architecture. It is default-on and local-only.

CapabilityWhat it gives youPrimary entry
Local Responses proxyRoutes forwarded official Codex Responses/model traffic through a loopback provider named codex-multi-auth-runtime-proxycodex-multi-auth rotation status
Per-request account rotationMoves to another managed account on quota, auth refresh, network, or server failure before streaming response bytesruntime proxy
Shadow CODEX_HOME launchKeeps temporary provider config isolated from normal official Codex state for wrapper-launched CLI sessionscodex-multi-auth-codex wrapper
Runtime status telemetryShows setting state, app helper state, app bind state, account waits, cooldowns, and last-account proxy metadatacodex-multi-auth rotation status
Reversible desktop app bindLets packaged Codex app launches use the same local router without patching official app filescodex-multi-auth rotation bind-app
Launcher routing helperRetargets supported user-level app shortcuts or creates a managed macOS wrapper appcodex-multi-auth-app-launcher

Recover From Local Auth And Storage Problems

CapabilityWhat it gives youPrimary entry
Safe repair workflowDetects and repairs known local storage inconsistenciescodex-multi-auth fix
Diagnostics with optional repairOne command to inspect and optionally fix common failurescodex-multi-auth doctor
Backup and WAL recoverySafer persistence when local writes are interrupted or partially appliedstorage runtime

Keep Account State Local And Predictable

CapabilityWhat it gives you
Canonical local data rootConsistent storage under ~/.codex/multi-auth
Project-scoped account poolsRepo-specific account state when you need separation
Linked-worktree identity sharingThe same repository can share account state across worktrees
Quota cache persistenceFaster forecast and dashboard visibility between runs

Improve Day-To-Day Terminal Use

CapabilityWhat it gives you
Quick switch and search hotkeysFaster navigation in the dashboard
Account action hotkeysPer-account set, refresh, toggle, and delete shortcuts
In-dashboard settings hubRuntime and display tuning without editing files directly
Experimental settings hotkeysKeyboard shortcuts for sync preview, backup export, and refresh-guard tuning
Browser-first OAuth with device/manual fallbackcodex-multi-auth login stays browser-first, while --device-auth is preferred for remote/headless shells and --manual, --no-browser, and CODEX_AUTH_NO_BROWSER=1 remain callback-paste fallbacks

Device auth prints https://auth.openai.com/codex/device plus a one-time code and does not rely on a local browser or callback server. Manual/non-TTY login accepts the full callback URL on stdin for environments where device auth is unavailable.


Optional Plugin-Host Runtime

Some users only need the wrapper and codex-multi-auth ... commands. If you also run the plugin-host path, codex-multi-auth can use the same account pool for:

  • request transformation for Codex or ChatGPT-backed flows
  • token refresh and refresh deduplication
  • retry, cooldown, and stream failover handling
  • session affinity and live account sync
  • capability and quota-aware account selection