Free Codex CLI account switcher

Switch Codex accounts.
Keep the same conversation.

When one account runs out of quota, CodexMarathon can switch to another account you manage. Your conversation stays open.

curl -fsSL https://raw.githubusercontent.com/Lem0nTree/codexmarathon/main/scripts/install.sh | sh

Free download · Linux ARM64 · source available on GitHub

Switch when quota runs outWaits for Codex to finishChecks the new accountShows five-hour and weekly quota

Automatic quota recovery

Quota ends. Marathon keeps the thread moving.

Turn Marathon on once. When Codex reports a usage limit, the native recovery flow can choose another managed account with fresh usable quota—without asking you to copy a prompt or restart the conversation.

  1. 01Detect

    Codex reports the usage-limit event and parks its existing recovery turn.

  2. 02Select

    Marathon chooses a healthy managed account with a fresh, usable quota observation.

  3. 03Verify

    The switch waits for idle work, reloads native authentication, and verifies the intended identity.

  4. 04Continue

    Codex releases the parked continuation exactly once in the same conversation.

Included with CodexMarathon

Use more than one Codex account without losing your work.

01Free

Switch accounts when quota runs out

Marathon can move to another account with quota left. Your conversation stays open. If no account is ready, it waits.

See how it switches →
02Free

See how much quota is left

Check the five-hour and weekly quota for every account. You can also see when it resets and how recent the number is.

Learn about quota →
03Free

Back up the accounts you choose

Save some or all of your accounts in one password-protected file. Check what is inside before you restore it.

04Safe switch

Switch only when Codex is ready

Marathon waits for the current work to finish and checks the new account before it switches.

See how it protects your work →
05On servers

Sign in from another device

Running Codex on a Linux server? Open the sign-in code on your phone or laptop to add an account.

Open the server guide →
06Same chat

Continue the same conversation

Your current conversation continues after the switch. Marathon does not copy your message or send it twice.

07At login

See quota when you connect to your server

On supported Armbian servers, your account quota appears on the welcome screen as soon as you sign in.

CodexMarathon is free. Your ChatGPT plan and usage limits stay the same.

Quota you can interpret

See the value—and whether it is fresh.

A reset time is only part of the answer. CodexMarathon keeps the five-hour and weekly observations beside their freshness and account identity, so stale data cannot silently authorize an automatic switch.

Read the complete usage-limit guide →
managed accountsprovider observations
personal5h · exhaustedstale
work5h · availablefresh
studioweekly · availablefresh

Three-step setup

Add your accounts. Turn Marathon on.

One installer adds the custom Codex CLI and its private account metadata service. Automatic management stays off until you enable it.

See every command on GitHub ↗
  1. 1
    Install and check statuscurl -fsSL https://raw.githubusercontent.com/Lem0nTree/codexmarathon/main/scripts/install.sh | sh
    codex marathon status
  2. 2
    Add accounts you controlcodex marathon login personal --device-code
    codex marathon login work --device-code
  3. 3
    Enable automatic managementcodex marathon on
    codex marathon accounts --daemon

Questions

Know exactly what switches—and what does not.

What happens when Codex reaches a usage limit?

CodexMarathon parks the existing recovery turn, selects another eligible managed account with fresh usable quota, waits for account-bound work to become idle, verifies the new identity, and then releases the same continuation once. If no account is eligible, it waits.

Will automatic switching interrupt a running turn?

No. A switch is accepted only at a safe turn boundary. CodexMarathon does not replace credentials during a model response, tool call, or subagent turn.

Does CodexMarathon give me more quota?

No. It manages supported ChatGPT accounts you control and reports provider observations. It does not refill, reset, or bypass provider limits.

Is CodexMarathon free?

Yes. The CodexMarathon download and the features marked Free on this page do not require a CodexMarathon subscription. Your ChatGPT account access and provider usage remain separate.

Can I see quota across all my accounts?

Yes. The account view shows the active identity, credential health, observed five-hour and weekly quota, reset times, and freshness for managed accounts.

Can I use it on a headless server?

Yes. The Linux ARM64 release supports device-code login, so you can open the verification URL and complete sign-in on another device.

Can I back up selected accounts?

Yes. Choose individual accounts or all accounts and export a password-protected backup. Restoring does not silently replace the active identity.

Free · Linux ARM64 · source on GitHub

Let the conversation outlast the quota window.