Guide
Auto-continue Codex CLI after a usage limit
Published
Codex hit its usage limit halfway through a refactor. The reset’s four hours away and you’d rather be asleep than babysitting it.
Codex CLI gives you a smaller model meanwhile, but won’t pick your thread back up on the full one at the reset. Agent Auto-Continue will. It’s a free macOS menu-bar app that sends “Continue” into your Codex thread once the limit resets, so the work carries on overnight.
What Codex already does
- Plus and Business get a five-hour allowance (Pro currently has no five-hour limit), and weekly limits may apply too (OpenAI’s pricing page).
- Hit the limit mid-turn and Codex lets that turn finish, within fair use (same page).
- After that, Codex CLI 0.160 switched to a smaller model, Luna Reserve, on 2 October 2026, offering Upgrade, Reset usage or Continue with Luna Reserve.
-mdidn’t override it, and OpenAI’s docs don’t describe it yet. - The advanced models return at the reset, but Codex waits for your next message. For a simple task, the smaller model may be all you need.
- The feature request to sleep until the known reset, then carry on, is still open.


What the app adds
- When free. Codex reports its rate limits with reset times, so the app starts as soon as the limit lifts. Nothing goes out while the limit holds.
- More than one turn. Up to a set number, or until you stop it.
Turns that end at a usage limit don’t count.
Add a stop phrase like
TASK COMPLETEand it finishes when Codex’s last message contains it. - Proven delivery. Each message carries an ID the app then looks for in the thread. If it can’t tell, it marks the message unconfirmed and never resends.
- Manners. It re-checks the thread first and won’t send if it’s gone, archived or you’ve replied since.


It speaks Codex’s own app-server protocol, through the shared codex app-server daemon if one’s running, a private one if not.
No fake keystrokes, no remote service, no changes to Codex (verified with codex-cli 0.159).
Set it up
- Install the Codex CLI and sign in.
If the app can’t find
codex, set its path in Settings > Agents. - Download the disk image (button at the bottom), drag the app into Applications and open it. macOS asks once whether to open an app from the internet; choose Open.
- Click the menu-bar icon and pick your Codex thread.
- Choose when: When free, or a time with the “wait for it” box ticked.
- Choose how far: Once, Up to a number of turns, or Until done. For a stop phrase, ask Codex to end its final message with it when done.
- Press Continue.
The honest limits
- Approval prompts pause it. Nobody’s there to approve, so the turn’s interrupted and the chain waits. Run Codex with approval settings you’d happily leave overnight.
- Your Mac has to be awake and the app running. Missed schedules catch up after wake, and keep-awake is opt-in.
- Quitting the app leaves a turn in the shared daemon running, but interrupts one the app started through a private server.
- Runaway chains pause. Three usage-limited turns in a row do it. So will three completed turns in a row that each took under a minute (the task may be done).
The terminal wrappers
| Tool | How it works | At a usage limit |
|---|---|---|
| codexc | macOS tmux wrapper; retries transient errors, queues timed prompts | Deliberately doesn’t continue |
| codex-auto-continue | Linux tmux watcher; sends your prompt after every completed turn | Pauses until you resume |
| codex-continue | Expect-style wrapper you run Codex through | Sleeps until the printed “try again at” time, types Continue |
All three need Codex running in a terminal session they control, and none has a stop phrase or GUI. The app works on threads you already have and reads the reset time from Codex’s protocol, not error text. If your Codex still prints a “try again at” time, codex-continue does that fine.
Agent Auto-Continue is an independent project. It is not affiliated with, endorsed by, or supported by T3 Tools, Anthropic, OpenAI, or any other agent vendor. Product names are trademarks of their respective owners and are used only to describe compatibility.
Logo moon: Albrecht Altdorfer, The Battle of Alexander at Issus (detail of the crescent), 1529. Alte Pinakothek, Munich, inv. 688. Public domain scan, Google Art Project via Wikimedia Commons.