Named profiles
Give the accounts you manage clear aliases, such as personal and work.
Multi-account workflow for the Codex CLI
Switch managed Codex accounts at a safe turn boundary, verify the target identity, and keep working in the same conversation.
curl -fsSL https://raw.githubusercontent.com/Lem0nTree/codexmarathon/main/scripts/install.sh | shLatest release · Linux ARM64 · installs to ~/.local/bin
$ codex marathon status
No mid-turn credential rewrite.
codex executableSafe turn boundaryVerified identityOpaque credentialsWhy CodexMarathon
Give the accounts you manage clear aliases, such as personal and work.
Use the usual browser flow locally, or device code on a headless server. There is no separate controller process.
Marathon waits for model, tool, and subagent work to finish. It verifies the target identity before the thread resumes.
See whether Marathon is enabled, the aliases it knows, and quota summaries. Credentials stay hidden.
Usage-aware selection
CodexMarathon checks the availability of managed accounts, skips accounts observed at zero, and checks again before making a reset-time decision. It coordinates accounts you control. It does not bypass provider limits or policy.
Quota Spin will choose the next eligible five-hour availability window from cooldown observations. It is planned, not part of the current release.
After installation
Install the custom codex binary, sign in to the accounts you manage, and enable Marathon. You can also run the same actions as /marathon commands in an interactive Codex session.
codex marathon statuscodex marathon login personal --device-code
codex marathon login work --device-codecodex marathon on
codex marathon switch workQuestions
Add managed profiles, enable Marathon, then run codex marathon switch <alias>. The change waits for a safe turn boundary.
No model response, tool call, or subagent turn is changed while it is running. Once the target identity is verified, the same thread resumes.
No. It reports managed-account state and has no provider quota-reset action.