cerium
All guides

How-to 2 min read

Keep going in Codex when Claude Code hits a limit

Hitting a 5-hour cap mid-refactor shouldn't send you back to square one. Let Cerium hand the thread to Codex automatically, or switch before you hit zero.

A Cerium thread where Claude Code hits its 5-hour limit mid-refactor and Codex GPT-6 Luna picks up automatically in the same thread.
Claude Code runs out halfway through the refactor; Codex picks up the notice, reads the work on disk, and finishes the remaining edits in the same thread.

Turn on automatic failover

By default, Cerium pauses when a limit runs out and resumes the same session once it resets. Once both claude and codex are signed in on your machine, switch that policy so Codex takes over right away:

  1. Set the default in Settings → General

    Under Usage limits, change When a limit runs out to Switch harness. Cerium picks the next available model from another harness and never bounces back to an exhausted provider.

  2. Or change it for a single thread

    Open the model menu in the composer and set When usage runs out to Switch (or Wait / Stop) just for that conversation.

Cerium Settings showing When a limit runs out set to Switch harness.
Settings → General → Usage limits: pick Switch harness to move interrupted turns automatically.

Switch early before you hit zero

You don't have to wait for an interrupted turn. When Claude Code drops to 5% left on a meter, a pill appears above the composer showing what remains, when it resets, and a Continue on Codex button.

You can also switch manually at any turn: click the active model in the composer (or type /), choose a Codex model, review what carries across, and confirm. If a turn is already running, Cerium wraps it up cleanly before handing over.

What moves over, and what stays behind

Providers don't share private session state, so Cerium writes a short handoff brief into the new Codex session alongside your live folder or worktree:

  • Carries over to Codex

    • Your recent turns verbatim plus a summary of older ones
    • Tool calls from the cut-off turn so finished edits aren't redone
    • All changed files on disk in the same folder or git worktree
    • Your active plan, checkpoints, and any running subagents
  • Stays behind

    • Claude Code's private internal session memory
    • Raw tool outputs from earlier turns (Codex re-reads files on disk)
    • Open approval prompts from the interrupted turn

Once Codex finishes the work, you can run a cross-lab diff review before committing.