Auto-Resume After a Usage Limit: Claude Code and Codex
The short answer
Claude Code can wait out a usage limit and pick the task back up on its own. It's on by default in interactive sessions signed in with a Claude subscription, as long as you're on version 2.1.234 or later and keep the session open.
Codex has no built-in auto-resume. OpenAI says that if you hit the limit during an active turn, Codex can keep working on that turn, subject to fair-use limits. After that, you can add credits, use a saved reset, upgrade, or wait, then resume the session yourself.
Source: Claude Code docs: Interactive mode; Codex pricing; OpenAI help: Using Codex with your ChatGPT plan · checked 2026-10-21
Recent official note
On 2026-11-25, Andrew Ambrosino said they added retries for more capacity errors. That can help with a brief overload around 3am. If the Goal has already stopped, you still have to resume it.
This is about capacity and overload errors, not auto-resume after a usage limit. A stopped Goal does not resume on its own.
Source (checked 2026-11-28):
Claude Code: how auto-continue works
When a claude.ai usage limit stops Claude mid-task, Claude Code waits in the open session. You'll see a line like "Usage limit reached · limit resets 3:45pm", then "Continuing automatically at 3:45pm · esc to cancel". At the reset, Claude Code prompts Claude to pick the task up where it stopped. It doesn't resend your last message.
You don't need to turn anything on. To turn it off, open /config and switch off "Continue automatically at usage limit", or set autoContinueAtUsageLimit to false in your user settings. The /config key=value form can turn it off but not back on.
The Claude desktop app has its own "Auto-continue when limits reset" checkbox on the session-limit card. It's separate from the terminal setting, so turn each one off on its own.
Source: Claude Code docs: Interactive mode; Claude Code docs: Commands; Claude Code docs: Errors; Claude Code changelog · checked 2026-10-21
Where Claude Code's auto-continue stops
Auto-continue needs the session to stay open, and it can still stop in a few cases:
- Keep the session open. If you exit Claude Code, the wait ends and doesn't restart when you resume the session.
- Permission prompts still stop it. Claude Code asks for permissions as usual, so the task can stop on a prompt while you're away.
- Sleep can pause it. If your computer slept for more than about 30 minutes and the limit reset meanwhile, you'll need to press Enter to continue.
- It gives up after repeats. If it hits the limit again, it re-arms the wait at most twice in a row, then stops. Run
/rate-limit-optionsto try again. - Weekly limits aren't automatic. It doesn't start the wait on its own when the reset is more than 24 hours away, which a weekly limit can be. You can start it yourself: run
/rate-limit-optionsand pick the row that starts "Wait here, then continue automatically". - Not every setup gets it. It isn't offered in background sessions,
-pruns, or when you use an API key, a cloud provider or usage-based billing, since those are billed per request and have no reset to wait for.
Source: Claude Code docs: Interactive mode; Claude Code docs: Commands · checked 2026-10-21
Resume Claude Code by hand
If the wait ended or you closed the terminal, start Claude Code again in the same folder:
claude --continue(or-c) loads the most recent conversation in the current directory.claude --resume(or-r) resumes a session by ID or name, or shows a picker.- In a
-prun, add--continueor--resumewith a session ID to carry on.
Source: Claude Code docs: CLI reference; Claude Code docs: Headless mode · checked 2026-10-21
Codex: what OpenAI offers instead
OpenAI documents no setting that resumes a Codex task after a limit resets. If you hit the limit during an active turn, Codex can keep working on that turn, subject to fair-use limits. After that, check the Codex usage page or the limit banner for what your plan offers: adding credits, using a saved reset, upgrading, or waiting.
Once you have usage again, pick up where you left off:
codex resumecontinues a previous interactive session by ID, or the most recent one.codex exec resume --lastcontinues the most recent non-interactive session in the current folder. Add--allto look in any folder, and you can add a follow-up prompt.- In the Codex CLI,
/resumereloads a saved chat with its history.
Cloud tasks can continue while your computer is asleep.
Source: OpenAI help: Using Codex with your ChatGPT plan; ChatGPT Learn: Developer commands; ChatGPT Learn: Non-interactive mode · checked 2026-10-21
Other ways to keep working
Claude. Turn on usage credits in Settings > Usage, or run /usage-credits in Claude Code, to keep going at standard API rates instead of being blocked. If you add credits with /usage-credits during a wait, Claude Code continues right away. A purchase you make in a browser on your own isn't detected. Switching models doesn't help, because the session and weekly limits are shared across models.
Codex. On Plus and Pro, you can add credits when you hit a limit. Your included usage is used first, then credits. You can also run extra local chats with an API key at standard API rates. Switching models doesn't give back allowance in a shared pool, and support can't reset your limits.
One trap: if an ANTHROPIC_API_KEY environment variable is set, Claude Code uses it instead of your subscription and bills your API account.
Source: Claude help: Manage usage credits; Claude Code docs: Commands; Claude Code docs: Interactive mode; Claude Code docs: Errors; OpenAI help: Using credits; Codex pricing; OpenAI help: Managing usage; OpenAI help: Using Codex with your ChatGPT plan; Claude help: Using Claude Code with Pro or Max · checked 2026-10-21
Scripts and wrappers
We found no official page that covers third-party auto-resume scripts by name. Anthropic says advertised Pro and Max limits "assume ordinary, individual usage of Claude Code and the Agent SDK." Its consumer terms don't allow access "through automated or non-human means, whether through a bot, script, or otherwise," unless you use an API key or Anthropic explicitly permits it. OpenAI's terms don't allow you to "circumvent any rate limits or restrictions." Read both before you run a tool that does this for you.
Source: Claude Code legal and compliance; Anthropic Consumer Terms; OpenAI Terms of Use · checked 2026-10-21
What users report
Reported, not official
Some developers have built tools that check Codex for a limit message and resume the session after the reset. Users have also asked OpenAI for a built-in auto-resume option in the Codex GitHub repo, where the request is still open. Neither is an OpenAI feature.
Questions people ask
Does Claude Code auto-continue after a weekly limit?
Not on its own when the reset is more than 24 hours away. You can start the wait yourself from /rate-limit-options, as long as the session stays open.
Do I need to turn auto-continue on?
No. It's on by default in interactive sessions signed in with a Claude subscription, on Claude Code 2.1.234 or later.
Does Claude Code resend my last message?
No. It prompts Claude to pick the task up where it stopped.
Does Codex have auto-resume?
Not built in. Codex can keep working on a turn that's already running, subject to fair-use limits. After that, you resume with codex resume or codex exec resume --last once you have usage again.
Source: Claude Code docs: Interactive mode; OpenAI help: Using Codex with your ChatGPT plan; ChatGPT Learn: Developer commands · checked 2026-10-21
Sources
All checked 2026-10-21. Link text is each page's own title.
- Interactive mode - Claude Code Docs
- Commands - Claude Code Docs
- Error reference - Claude Code Docs
- Claude Code changelog - Claude Code Docs
- CLI reference - Claude Code Docs
- Run Claude Code programmatically - Claude Code Docs
- Legal and compliance - Claude Code Docs
- Manage usage credits for paid Claude plans | Claude Help Center
- Use Claude Code with your Pro or Max plan | Claude Help Center
- Consumer Terms of Service \ Anthropic
- Using Codex with your ChatGPT plan | OpenAI Help Center
- Using Credits for Flexible Usage in ChatGPT (Personal plans) | OpenAI Help Center
- Managing usage with GPT-6 Astra in Work and Codex | OpenAI Help Center
- Pricing | ChatGPT Learn
- Developer commands | ChatGPT Learn
- Non-interactive mode | ChatGPT Learn
- Terms of Use | OpenAI
