# Codex usage limit reached: what to do next

> Codex usage limit reached? Read the reset time in the message, check /status, then wait, buy credits, use an API key or another account you own.

Source: https://shuriken.sh/guides/codex-usage-limit-reached

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.

[Guides](https://shuriken.sh/guides) By Shuriken Updated 21 November 2026 5 min read

**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](https://github.com/openai/codex/blob/main/codex-rs/protocol/src/error.rs)). 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](https://shuriken.sh/guides/codex-stream-disconnected-before-completion) 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](https://chatgpt.com/codex/settings/usage) 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](https://learn.chatgpt.com/docs/pricing) 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](https://shuriken.sh/guides/codex-usage-limits).

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.

bash
printenv OPENAI_API_KEY | codex login --with-api-key

This replaces the ChatGPT sign-in Codex has stored, so once the plan resets, run codex logout and then codex login to go back. codex login status shows 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](https://shuriken.sh/guides/codex-login-not-working) 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](https://shuriken.sh/compare/claude-code-vs-codex).

Shuriken moves a running chat to another of your own accounts when one reaches its limit, on every device.

[Download](https://shuriken.sh/download)

## 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](https://learn.chatgpt.com/docs/auth)). To change accounts, run codex logout and codex login, or give each account a folder of its own:

bash
mkdir -p ~/.codex-work
CODEX_HOME=~/.codex-work codex login
CODEX_HOME=~/.codex-work codex

OpenAI's [environment variables page](https://learn.chatgpt.com/docs/config-file/environment-variables) 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](https://shuriken.sh/features/source-switching) page, and the setup for a second ChatGPT account is in [Codex with several ChatGPT accounts](https://shuriken.sh/blog/codex-multiple-chatgpt-accounts).

If you'd rather not sit out the next reset, [download Shuriken](https://shuriken.sh/download) and add your ChatGPT accounts under Sources.

Try the free tool: [Codex limit reset tracker](https://shuriken.sh/tools/limit-resets/codex)

Share

[X](https://x.com/intent/post?url=https%3A%2F%2Fshuriken.sh%2Fguides%2Fcodex-usage-limit-reached&text=Codex%20usage%20limit%20reached%3A%20what%20to%20do%20next)[LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fshuriken.sh%2Fguides%2Fcodex-usage-limit-reached)[Hacker News](https://news.ycombinator.com/submitlink?u=https%3A%2F%2Fshuriken.sh%2Fguides%2Fcodex-usage-limit-reached&t=Codex%20usage%20limit%20reached%3A%20what%20to%20do%20next)[Reddit](https://www.reddit.com/submit?url=https%3A%2F%2Fshuriken.sh%2Fguides%2Fcodex-usage-limit-reached&title=Codex%20usage%20limit%20reached%3A%20what%20to%20do%20next)[E-mail](mailto:?subject=Codex%20usage%20limit%20reached%3A%20what%20to%20do%20next&body=https%3A%2F%2Fshuriken.sh%2Fguides%2Fcodex-usage-limit-reached)

## Sources

- [OpenAI: Codex pricing](https://learn.chatgpt.com/docs/pricing) (accessed 24 October 2026)
- [OpenAI: Codex authentication](https://learn.chatgpt.com/docs/auth) (accessed 24 October 2026)
- [OpenAI: Codex environment variables (CODEX_HOME)](https://learn.chatgpt.com/docs/config-file/environment-variables) (accessed 24 October 2026)
- [openai/codex on GitHub: codex-rs/protocol/src/error.rs (the usage limit messages)](https://github.com/openai/codex/blob/main/codex-rs/protocol/src/error.rs) (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.

Source switching

One account runs dry. The next one takes over.

Add the Claude, Codex and Gemini accounts you own. At your switch point, your chats move to another of them and keep going.

[Download](https://shuriken.sh/download)

[Other platforms](https://shuriken.sh/download#main)

## Keep reading

- [Hot swapping: chats that move when an account runs out: Story 27 Oct 2026 4 min read Hot swapping AI accounts, the way Shuriken does it: your running chats move to another of your accounts when one nears its limit. What happens at 99%.](https://shuriken.sh/blog/hot-swapping-accounts)
- [How Shuriken picks the next account: Story 27 Oct 2026 5 min read At your switch point (99% by default) or a limit, Shuriken moves your chats to the source with the most room. Expiring capacity goes first, API keys last.](https://shuriken.sh/blog/how-switching-picks-the-next-account)
- [Every plan and key you own, working as one: Story 27 Oct 2026 4 min read Add your Claude, ChatGPT, Gemini and other plans and API keys to Shuriken as sources. When one runs out, your chats move to the next.](https://shuriken.sh/blog/what-is-a-source)
- [How to switch Claude accounts without logging out: Guide 27 Oct 2026 7 min read Three ways to use several Claude accounts in Claude Code without /logout and /login: one config per account, a switcher CLI, or a harness.](https://shuriken.sh/guides/switch-claude-accounts-without-logging-out)
- [Claude's 5-hour limit, explained: Guide 27 Oct 2026 7 min read Claude's 5-hour window starts with your first message and resets five hours later. An idle account has no window running, so it saves nothing up.](https://shuriken.sh/guides/claude-5-hour-limit-explained)
- [Claude usage limit reached? What to do next: Guide 27 Oct 2026 7 min read There's no early reset for Claude's 5-hour or weekly limit. Wait, pay for usage credits, switch to an API key, or carry on with another account you own.](https://shuriken.sh/guides/claude-limit-reached-what-to-do)
- [How to check your Claude Code usage: Guide 27 Oct 2026 6 min read To check Claude Code usage, type /usage or open Settings › Usage on claude.ai. Both read one pool: your 5-hour session and your weekly limit.](https://shuriken.sh/guides/check-claude-code-usage)
- [Codex account switchers compared (2026): Comparison 27 Oct 2026 9 min read Codex Switcher, swapdex, cxs, codex-multi-auth and Shuriken compared: when each Codex account switch lands, what happens to your open chat, which devices.](https://shuriken.sh/compare/codex-account-switchers)
- [CC Switch alternatives: switching providers vs accounts: Comparison 27 Oct 2026 9 min read CC Switch rewrites the endpoint, key and model for twelve tools. As an alternative, Shuriken moves a running chat between your own accounts at a limit.](https://shuriken.sh/compare/cc-switch-alternative)

## Free tools

- [Claude limit reset tracker](https://shuriken.sh/tools/limit-resets/claude)
- [Codex limit reset tracker](https://shuriken.sh/tools/limit-resets/codex)
