Handle rate limits
Resolved 💬 6 comments Opened Apr 19, 2025 by samyarkd Closed Apr 22, 2025
What version of Codex is running?
0.1.2504172351
Which model were you using?
o4-mini
What platform is your computer?
ubuntu 24.10 nodejs 22
What steps can reproduce the bug?
Use it on a little big repo
e [Error]: Rate limit reached for o4-mini in organization org-XXX on tokens per min (TPM): Limit 200000, Used 161431, Requested 45504. Please try again
in 2.08s. Visit https://platform.openai.com/account/rate-limits to learn more.
at e.a [as iterator] (file:///home/user/.nvm/versions/node/v22.11.0/lib/node_modules/@openai/codex/dist/cli.js:449:1514)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async T0.run (file:///home/user/.nvm/versions/node/v22.11.0/lib/node_modules/@openai/codex/dist/cli.js:466:2933) {
status: undefined,
headers: undefined,
request_id: undefined,
error: {
type: 'tokens',
What is the expected behavior?
Wait and try from where it was left
What do you see instead?
Rate limit error and i have to it all over again
Additional information
_No response_
This issue has 6 comments on GitHub. Read the full discussion on GitHub ↗