Quick answer
First read the error: it names the window that ran out. If it is the 5-hour window, wait for capacity to age back in or switch to a cheaper model. If it is the weekly window, your options are the API, another tool, or waiting for the weekly reset. Compacting context and starting a new session reduce burn immediately.
Seven fixes, fastest first
- Read the error text. It distinguishes the short window from the weekly one, which decides everything else.
- Start a new session. A fresh context is cheaper per turn than a compacted 200k-token thread.
- Switch to a smaller model for exploration and keep the strong model for the final pass.
- Trim the task. Ask for one file or one function instead of the whole refactor.
- Check the weekly percentage. If it is near zero, waiting will not help today.
- Move the work to API billing, which is separate from the plan windows.
- Use another tool you already pay for, such as Claude Code or Copilot, for the remainder.
Understand which limit you hit
| Symptom | Likely window | Realistic wait |
|---|---|---|
| Stopped after a long agent run | Short | Minutes to a few hours |
| Stopped early in the day with low weekly % | Short | Until older usage ages out |
| Stopped with weekly % at or near zero | Weekly | Until the weekly reset |
| Stopped right after a plan change | Either | Check the panel for the new allowance |
If both percentages look healthy and requests still fail, the problem may be authentication or a provider incident rather than usage. Sign out and back in, then check the provider status page.
Stop hitting it next time
- Set an alert at 20% remaining so you are warned before the stop.
- Keep AGENTS.md short; every token in it is resent on every turn.
- Ask for diffs and file ranges instead of whole-file dumps.
- Run one agent at a time when the weekly budget is tight.
- Track tokens per task so you can estimate the next one.
The Codex reset tracker shows when capacity returns, and reduce Codex token usage covers the habits that stretch a window.
Questions, answered
How long do I have to wait after hitting the Codex limit?
For the short window, capacity returns as older usage ages out, often within a few hours. For the weekly window, you wait until the stated weekly reset.
Does restarting Codex reset the limit?
No. The limit belongs to your account, not the process. Restarting only clears the local session.
Can I keep working with the Codex API after the plan limit?
Yes. API usage is billed per token and is separate from the ChatGPT plan windows. You need API billing enabled on the account.