Codex usage limit reached: what to do next
When Codex says you've hit your usage limit, the message itself tells you when to try again. Until then you can buy credits on Plus or Pro, sign Codex in with an API key and pay per token, or carry on under another ChatGPT account you own.
Contents
When Codex says "You've hit your usage limit", the same message tells you when to try again: a time today, such as 3:05 PM, or a date when the reset falls on another day. Until then you have three ways on: buy credits (Plus and Pro), sign Codex in with an API key and pay per token, or carry on under another ChatGPT account you own.
Which of those makes sense depends on what the message says after the first sentence, so start there. Everything below was read in OpenAI's docs and in Codex's open-source code on 24 October 2026.
What the Codex usage limit message says#
Codex builds the message from your plan type, in codex-rs/protocol/src/error.rs (source). We read every branch of it, because Shuriken has to recognise each version:
| Your plan | After "You've hit your usage limit." |
|---|---|
| Free or Go | Upgrade to Plus, or try again at the reset |
| Plus | Upgrade to Pro, buy more credits on the usage page, or try again at the reset |
| Pro | Buy more credits on the usage page, or try again at the reset |
| Business, Team and similar workspaces | Send a request to your admin, or try again at the reset |
| Enterprise and Edu | Try again at the reset |
On Pro, with the reset later the same day, the whole line reads "You've hit your usage limit. Visit https://chatgpt.com/settings/usage to purchase more credits or try again at 3:05 PM." A reset on another day prints with the date first, in the form "Oct 27th, 2026 9:00 AM".
Two variants change the answer:
- "You've hit your usage limit for …" with a name after it means one model's own limit ran out, not the whole plan. The message goes on "Switch to another model now".
- "Your workspace is out of credits" or "You hit your spend cap" come from a workspace's billing. Only the workspace owner can change those, so waiting for a reset won't help.
When the message ends in "try again later" instead of a time, OpenAI sent Codex no reset time. Check it yourself with /status.
If the turn stops with stream disconnected before completion instead, it isn't your limit. That's a dropped connection or a server error, and our guide to Codex stream disconnected shows how to tell the two apart.
Check when your Codex limit resets#
Type /status in a running Codex session for your remaining limits. On the web, the usage dashboard shows the same limits with their reset times.
Two windows sit behind the message, and which one you hit decides whether to wait:
- Plus has a five-hour window, and OpenAI's pricing page adds that "weekly limits may also apply".
- Pro plans "currently have no five-hour limit", the same page says. A Pro user who hits the wall has usually spent the week.
A five-hour reset is worth waiting for; a weekly one often isn't. How both windows changed in 2026 is in the Codex usage limits guide.
A turn that was already running when you crossed the line isn't cut off. OpenAI says the agent can finish that turn, subject to fair use. It's the next message that gets refused.
Your options, in order#
-
Wait for the reset. Free, and the right call when it's an hour away.
-
Buy credits. Plus and Pro can buy credits and keep working without changing plan. Business, Edu and Enterprise workspaces on flexible pricing buy workspace credits instead. Credits are charged by the tokens each task uses, at the per-model rates on the pricing page.
-
Sign in with an API key. OpenAI's page says "all users may also run extra local chats using an API key", billed at API prices. Codex in the cloud doesn't take a key.
bashprintenv OPENAI_API_KEY | codex login --with-api-keyThis replaces the ChatGPT sign-in Codex has stored, so once the plan resets, run
codex logoutand thencodex loginto go back.codex login statusshows which one is active. If the ChatGPT sign-in then stalls in the browser, or the machine has no browser, the port 1455 and device-code fixes cover each error. -
Use another ChatGPT account you own. Covered next.
-
Move the task to another agent you pay for. If you have a Claude plan too, Claude Code can pick up from a written summary of where Codex stopped. We compare the two in Claude Code vs Codex.
Carry on under another ChatGPT account#
A second account often has an ordinary reason, such as a Business seat from work next to a personal Plus. Only use accounts you own and are entitled to use. Providers' terms may not allow sharing a subscription sign-in, and buying or borrowing accounts to get around a limit can put them at risk.
One CODEX_HOME folder holds one sign-in, and the default folder is ~/.codex (OpenAI's auth docs). To change accounts, run codex logout and codex login, or give each account a folder of its own:
mkdir -p ~/.codex-work
CODEX_HOME=~/.codex-work codex login
CODEX_HOME=~/.codex-work codex
OpenAI's environment variables page says the folder must already exist, so mkdir -p comes first. CODEX_HOME holds more than the sign-in: config, MCP servers, skills and sessions live there too. ~/.codex-work starts empty, and a session you began under the first account won't show up in the second one's list. Run cp ~/.codex/config.toml ~/.codex-work/ and plan on a fresh session.
How Shuriken handles a Codex limit#
This is the problem we built Shuriken for. Each ChatGPT sign-in you add is a source with its own CODEX_HOME. Into every one, Shuriken links six entries from your ~/.codex: sessions, archived_sessions, config.toml, AGENTS.md, prompts and skills. The second account doesn't start empty, and the folder's own auth.json holds its sign-in, because Shuriken starts Codex there with cli_auth_credentials_store="file" rather than the OS keyring.
Hot swapping is our name for what happens next: Shuriken moves your chats to another of your accounts or sources when one nears its limit. For Codex, the switch comes when the account in use reaches your switch point (99% by default, adjustable from 50% to 100%) or when OpenAI reports the limit. The chat moves when its current turn ends and keeps its conversation. A "Switched to …" card names the account that took over, on every device you've linked.
API keys stay out of it unless you say so. Switch to API keys (Sources › Settings) is off by default. Turned on, it lets keys take chats only once every subscription is out, and Spend cap per fallback, $25, ends each fallback run: "Past this, chats wait for a subscription". The switch point and the rest are on the source switching page, and the setup for a second ChatGPT account is in Codex with several ChatGPT accounts.
If you'd rather not sit out the next reset, download Shuriken and add your ChatGPT accounts under Sources.
Try the free tool: Codex limit reset tracker
Sources
- OpenAI: Codex pricing (accessed 24 October 2026)
- OpenAI: Codex authentication (accessed 24 October 2026)
- OpenAI: Codex environment variables (CODEX_HOME) (accessed 24 October 2026)
- openai/codex on GitHub: codex-rs/protocol/src/error.rs (the usage limit messages) (accessed 24 October 2026)
Frequently asked questions
How long is the Codex usage limit?
Until the reset in the message. Codex prints it as a time, such as try again at 3:05 PM, or with the date in front, such as Oct 27th, 2026 9:00 AM, when the reset is on another day. Type /status in a Codex session or open the usage dashboard to see every window and when it resets.
Does Codex stop in the middle of a task when the limit hits?
OpenAI's pricing page says a turn that is already running when you reach your limit can finish, subject to fair use. The next message is the one that gets refused.
Can I keep using Codex with an API key after the limit?
Yes, for local chats. OpenAI's pricing page says all users may also run extra local chats using an API key, billed at API prices; Codex in the cloud doesn't take a key. Pipe the key in with printenv OPENAI_API_KEY | codex login --with-api-key, then run codex logout and codex login after the reset.
Do Codex credits remove the limit?
They let you keep working past it. Plus and Pro can buy credits without changing plan, and Business, Edu and Enterprise workspaces on flexible pricing buy workspace credits. Credits are charged by the tokens a task uses, at the rates per million tokens on OpenAI's pricing page.
Is it allowed to switch to another ChatGPT account?
Only to accounts you own and are entitled to use. Providers' terms may not allow sharing a subscription sign-in, and a borrowed or bought account can put the account at risk.