You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing a task using gpt-5, codex sometimes fails with the above message. This seems to completely break the codex session where exiting out and starting again is the only solution.
The organisation at the time of codex session was Tier 1 (30,000 TPM).
Replaced my OpenAI organisation with placeholder <ORG> in the below error message;
🖐 stream disconnected before completion: Rate limit reached for gpt-5 in organization <ORG> on tokens per min (TPM): Limit 30000, Used 6899, Requested 24050. Please try again in 1.898s. Visit https://platform.openai.com/account/rate-limits to learn more.
What is the expected behavior?
Expected behaviour is codex respects the rate limit headers in the api response to prevent this in codex session.
What do you see instead?
🖐 stream disconnected before completion: Rate limit reached for gpt-5 in organization <ORG> on tokens per min (TPM): Limit 30000, Used 6899, Requested 24050. Please try again in 1.898s. Visit https://platform.openai.com/account/rate-limits to learn more.
This issue has been raised in several threads since April, and all were closed without a resolution. What is going on here!?
@dcarr622, once this is patched, can you confirm that it is truly resolved? @tibo-openai keeps closing this same issue while stating it’s patched, yet the overwhelming general consensus among users is that it isn’t.
Reacted by Jared-T, Paolo Massimo Veneziani and Ashok Allu
Unusable. Why do you keep closing the issue without resolving?
Many people are leaving codex for Claude because of this.
I am in the process of contacting openAI on behalf of my company to request a refund for my credits and will be referencing this thread as well as @pakrym-oai, @tibo-openai, and those other oai engineers that have been indiscriminately closing this issue without any resolution.
It looks like openAI engineers are having trouble with coding after they took away claude.
Getting your "organisation" upgraded from tier 1 to tier 2 (buy the initial $5 of credits, wait 168 hours, then buy another $45 of credits) seems to work around this problem by increasing your rate limits enough to make GPT-5 work smoothly in the CLI even with reasoning effort set to high...
The linked commits don't fix this issue, I just tested with the latest version and it's still aggressively rate limiting when using API keys and disconnecting streams.
There should be a way to set the TPUs in the config, so Codex would delay bombarding the API with so many calls and spread them out evenly.
Activity
vekexasia commentedon Aug 11, 2025
👍 impossible to use gpt-5 now
mdbro commentedon Aug 12, 2025
This issue has been raised in several threads since April, and all were closed without a resolution. What is going on here!?
@dcarr622, once this is patched, can you confirm that it is truly resolved? @tibo-openai keeps closing this same issue while stating it’s patched, yet the overwhelming general consensus among users is that it isn’t.
Wait for requested delay in rate limit errors (#2266)
lucasgrow commentedon Aug 14, 2025
unfortunately this is making me quit codex
vekexasia commentedon Aug 14, 2025
any good alternative i should look at?
pakrym-oai commentedon Aug 14, 2025
The fix for this issue is going to ship in the next release.
orialmog commentedon Aug 15, 2025
still happening in 0.21
paolomax commentedon Aug 17, 2025
Still happening in 0.22...
mdbro commentedon Aug 18, 2025
Unusable. Why do you keep closing the issue without resolving?
Many people are leaving codex for Claude because of this.
I am in the process of contacting openAI on behalf of my company to request a refund for my credits and will be referencing this thread as well as @pakrym-oai, @tibo-openai, and those other oai engineers that have been indiscriminately closing this issue without any resolution.
It looks like openAI engineers are having trouble with coding after they took away claude.
\mdbro
paolomax commentedon Aug 19, 2025
19th August... still happening... making gpt 5 in codex cli literally unusable...
tompw89 commentedon Aug 19, 2025
Getting your "organisation" upgraded from tier 1 to tier 2 (buy the initial $5 of credits, wait 168 hours, then buy another $45 of credits) seems to work around this problem by increasing your rate limits enough to make GPT-5 work smoothly in the CLI even with reasoning effort set to high...
Sync fork with upstream/main (#2)
mdbro commentedon Aug 22, 2025
Claude
mdbro commentedon Aug 22, 2025
So you closed the issue, admitted that it isn't resolved, but did not reopen the issue?
Sync upstream (#8)
Wait for requested delay in rate limit errors (openai#2266)
Wait for requested delay in rate limit errors (openai#2266)
am-will commentedon Oct 10, 2025
Come on man. Why the hell would I be rate limited when Im' paying for API credits?
ClassyCircuit commentedon Oct 15, 2025
The linked commits don't fix this issue, I just tested with the latest version and it's still aggressively rate limiting when using API keys and disconnecting streams.
There should be a way to set the TPUs in the config, so Codex would delay bombarding the API with so many calls and spread them out evenly.
am-will commentedon Oct 15, 2025
i Opened one too.
IMO they need to increase the codex rate limits, they are all handled separately by model, so it seems like a trivial fix but I am speculating.
SachitNayak commentedon Nov 21, 2025
This error is so annoying, stupid error still hinders my progress on coding work!
Wait for requested delay in rate limit errors (#2266)
Wait for requested delay in rate limit errors (openai#2266)