Guides · Updated October 23, 2026

Codex usage limit reached: 5-hour and weekly limits explained

“You’ve hit your usage limit” in Codex means one of your ChatGPT plan’s allowances is used up. Which one, and what you can do about it, depends on your plan and on the exact wording of the message. This guide covers the windows Codex meters, what each message means, how a usage limit differs from a rate limit, where to watch your remaining usage, and why a single long or looping session can empty a window early.

The limits on a ChatGPT plan

From OpenAI’s Codex pricing page and help articles on using Codex with your ChatGPT plan and resets:

OpenAI doesn’t publish a fixed number of messages. Its estimates for local messages per 5-hour window on Plus are 15–160 with GPT-6.1 Sol, 5–45 with GPT-6 Astra and 350–3,000 with GPT-6 Luna, and it stresses that these are not fixed limits: model, context, reasoning, tool use and caching all change how much a message uses. Fast mode uses included usage at 2.5× the Standard rate, and Ultrafast at 8×.

On an API key none of this applies. You pay per token at API prices, and the controls are spend limits on the OpenAI platform (see capping Codex CLI spend).

Which message did you get?

The wording depends on your plan. These are the strings in the Codex CLI source (codex-rs/protocol/src/error.rs, checked October 23, 2026):

Message starts withWhat it means
You’ve hit your usage limit. Upgrade to Pro …, visit https://chatgpt.com/settings/usage to purchase more credits or try again at …Plus: an allowance is used up. Buy credits, upgrade or wait.
You’ve hit your usage limit. Visit https://chatgpt.com/settings/usage to purchase more credits or try again at …Pro: your allowance is used up (Pro currently has only the weekly window). Buy credits or wait.
You’ve hit your usage limit. Upgrade to Plus to continue using Codex …Free or Go.
You’ve hit your usage limit. To get more access now, send a request to your admin …Business and other workspace plans: an admin controls more access.
You’ve hit your usage limit for <name>. Switch to another model now, …A limit for one model or feature only. Another model still works: switch with /model.
Your workspace is out of credits. / You hit your spend cap set in your workspace.Credit-based workspace: the credits or a spend cap set by the owner ran out.

The time after “try again at” is when the exhausted window refreshes, in your computer’s local time: just a clock time if it’s today, a full date otherwise. A date several days out means it’s the weekly window, not the 5-hour one.

Usage limit or rate limit?

They are different errors in the source, and Codex treats them differently:

If you hit the limit in the middle of a turn, OpenAI says Codex can keep working on that turn, subject to fair-use limits. The next turn is the one that stops.

How to see where you stand

What to do when you hit it

OpenAI Support doesn’t reset usage limits. Contact them only if the numbers look wrong or access hasn’t returned after the stated reset time.

Why one session empties a window

A Codex turn sends your prompt, files, chat history and tool results, and OpenAI notes that long-running tasks and sessions that hold a lot of context use far more per message. A few things make it worse:

Catch a looping Codex session before it eats the window

Plan limits stop you after the usage is gone. To stop one bad session early, something has to check on every tool call. Codex CLI runs hooks for that, and LoopGuard is an open-source (MIT) CLI that installs them. It needs no proxy and no API key, so it works on a ChatGPT plan.

npm i -g loopguard-cli         # puts `loopguard` on your PATH
loopguard init --agent codex   # adds PreToolUse, PostToolUse and Stop hooks (original config backed up)
codex                          # then run /hooks and trust the three LoopGuard hooks

loopguard config set sessionCapUsd 10   # estimated $ per session (default 25)
loopguard report --agent codex --by session   # what recent sessions would have cost at API prices

Be clear about what this measures. LoopGuard does not read your plan percentage; the dollar figure is an estimate at API prices, which OpenAI says not to use to estimate included usage. Treat it as a consistent measure of how heavy a session is, and calibrate it against /status after a few days (if about $15 of estimated spend is your 5-hour window, set sessionCapUsd below that). Checks run at each tool call, so a single long model response isn’t cut off mid-stream.

Related

LoopGuard on GitHub · Pricing