codex icon indicating copy to clipboard operation
codex copied to clipboard

Rate limit reached for organization on tokens per min (TPM)

Open EicHub opened this issue 10 months ago • 7 comments

What version of Codex is running?

0.92

What subscription do you have?

Pro

Which model were you using?

gpt-5.2

What platform is your computer?

windows wsl

What terminal emulator and version are you using (if applicable)?

codex cli

What issue are you seeing?

I checked the documentation for this limit, which should be the limit of the API? I am a Pro subscriber and using the official client of codex cli (in wsl environment), I tried to open a new thread and enter hello and I also get this error • Reconnecting... 3/5 (10s • esc to interrupt) └ Stream disconnected before completion: Rate limit reached for organization org-BOvpEHVcDPTe8h4lZnwMO5Ly on tokens per min (TPM): Limit 250000, Used 250000, Requested 18667. Please try again in 4.48s. Visit https://platform.openai.com/account/rate-limits to learn more

Meanwhile, I checked my usage/status 5h limit: [███████████████████░] 97% left (resets 13:33) │ Weekly limit: [████████████████░░░░] 78% left (reloaded 23:13 on 31 Jan)

I tried to start codex in another small warehouse and type hello, and it gave the same prompt, but it showed 3000 Uesd 3000 limit

What steps can reproduce the bug?

Uploaded thread: 019c027a-d0cf-7750-ad4b-21b0c60d6abc

What is the expected behavior?

No response

Additional information

I updated to 0.92 before this issue, and added ~/.codex/config.toml collab = true collaboration_modes = true

Then I did a small bug fix, but I deleted the configuration after the problem occurred, but I couldn't go back to normal

EicHub avatar Jan 28 '26 04:01 EicHub

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #10057
  • #10055
  • #10053
  • #10052
  • #10051

Powered by Codex Action

github-actions[bot] avatar Jan 28 '26 04:01 github-actions[bot]

same

ssh352 avatar Jan 28 '26 04:01 ssh352

Image same, not the same org as in my setting, on starlink

tyc0on avatar Jan 28 '26 04:01 tyc0on

It looks like all requests are counted under the same organization, causing concurrency limits. I'm also having issues with org-BOvpEHVcDPTe8h4lZnwMO5Ly, which is an issue with the organization's TPM limit

zyb2569-ops avatar Jan 28 '26 04:01 zyb2569-ops

This worked for me:

The issue was a stale, cached authentication session in the local config (it was prioritizing an old/limited API Org instead of my ChatGPT subscription).

  1. Kill lingering processes and remove the cached auth file:
pkill -f codex
rm ~/.codex/auth.json
  1. Start fresh (forcing no env vars to ensure a clean login):
env -u OPENAI_API_KEY -u OPENAI_ORGANIZATION codex
  1. Select "Sign in with ChatGPT" when prompted.

Lmk if it also works for you or helps?

ahmed-ela avatar Jan 28 '26 04:01 ahmed-ela

It seems that the official has fixed the bug and it is now working as normal

EicHub avatar Jan 28 '26 05:01 EicHub

Thanks for reporting. There was a temporary service issue that caused the responses API to incorrectly report rate limit errors when it shouldn't. The issue has been mitigated. Everything should be back to normal now. Apologies for the disruption.

etraut-openai avatar Jan 28 '26 06:01 etraut-openai