⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 4/5 in 1.471s while I am running free models from openrouter
Resolved 💬 18 comments Opened Aug 23, 2025 by Priyabhunia Closed Aug 26, 2025
💡 Likely answer: A maintainer (oyiakoumis, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.23.0
Which model were you using?
etc.. opensource free models like quencoder and kimi
What platform is your computer?
windows 11 x64
What steps can reproduce the bug?
Just run any free or opensource model from openrouter.
What is the expected behavior?
This should behave normal like working like a agent and give me ans .
What do you see instead?
After 1 minute or use this is not even working not even giving a reply only one error is showing .
---------------------------------------------------------------------------------------------------------------------------------------
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 1/5 in 207ms…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 2/5 in 429ms…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 3/5 in 743ms…
⚠ stream error: unexpected status 400 Bad Request: {"error":{"message":"Provider returned error","code":400,"metadata":{"raw":"{\"details\":{\"_errors\":[],\"tools\":
{\"0\":{\"_errors\":[],\"function\":{\"_errors\":[\"Unrecognized key(s) in object: 'strict'\"]}},\"1\":{\"_errors\":[],\"function\":{\"_errors\":[\"Unrecognized key(s)
in object: 'strict'\"]}},\"_errors\":[]}},\"issues\":[{\"code\":\"unrecognized_keys\",\"keys\":[\"strict\"],\"path\":[\"tools\",0,\"function\"],\"message\":\"Unrecognized
key(s) in object: 'strict'\"},{\"code\":\"unrecognized_keys\",\"keys\":[\"strict\"],\"path\":[\"tools\",1,\"function\"],\"message\":\"Unrecognized key(s) in object:
'strict'\"}]}","provider_name":"Venice"}},"user_id":"user_2xURwxNi7G6RUn2NG0Ur7kQvKDb"}; retrying 4/5 in 1.754s…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 5/5 in 3.253s…
🖐 exceeded retry limit, last status: 429 Too Many Requests
### Additional information
After that this thing never worked .
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 1/5 in 211ms…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 2/5 in 373ms…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 3/5 in 864ms…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 4/5 in 1.555s…
⚠ stream error: exceeded retry limit, last status: 429 Too Many Requests; retrying 5/5 in 3.312s…
🖐 exceeded retry limit, last status: 429 Too Many Requests
Even the OSS models are not working.
18 Comments
This is not a bug. You can use Gemini or ollama as a model_provider.
You can try my Codex GUI - https://github.com/milisp/codexia - missing GUI/IDE for the openai Codex CLI built with Tauri v2. @file from FileTree and notes system
That's just from openrouter rate limiting....
Worked for me on MacOS:
my
~/.codex/config.toml:then:
codex --profile qwen3coderAs Medard-prog mentioned, it could be also OpenRouter's rate limit.
just use gemini
Required set system env
GEMINI_API_KEYEdit
~/.codex/config.tomlRun one of these
I did exact same thing but still this error
error: profile
geminiis not definedbtw I have two toml file one is from this cloned repo and other is from my C drive .
this cloned repo one mostly not working thats why I am using the application version (.codex).
<img width="458" height="61" alt="Image" src="https://github.com/user-attachments/assets/3556ee1e-f598-49ca-9b29-a06af934f72b" />
Maybe you put it at the wrong directory
You should create a
.codexathomethen createconfig.tomlon Windows
I know thats the right one . I am already doing in that. but still not working
I tried at windows 11
C:\Users\username\.codex\config.tomlit works.Do you forget set env or restart the terminal cmd/powershell
Maybe you should delete the .codex folder and try again.
cmd
powershell
Or are you using VPN?
Your config path seems not right from the screenshot
You should show the absolute path not the screenshot.
C:\Users\priya\.codex\config.toml-I am using this oneand other one is
E:\openai\codex\codex\.github\codex\home\config.toml. this is the one I am not using because this is not working.here is my path and yes I set the api key every time .
No why should I be using vpn . I am just using the vscode powershell and cmd.
It seems you missed a
\It should be
C:\Users\priya\.codex\config.toml<img width="1174" height="1163" alt="Image" src="https://github.com/user-attachments/assets/8e7518ee-f1bb-4fe1-bb7f-35fc3127db0d" />
I know what should i say but i pasted the right thing
Screenshot your vscode with
C:\Users\priya\.codex\config.tomlcontentMaybe it's the problem of vscode, you can try to use powershell or cmd to see if they are working
<img width="803" height="353" alt="Image" src="https://github.com/user-attachments/assets/de913f77-1c30-4ccb-94e9-49c1df46910a" />
bro I almost tried everything
<img width="1228" height="91" alt="Image" src="https://github.com/user-attachments/assets/2e27e4ad-30ff-4dcf-bdbc-61523b15827f" />
I still dont know why is that even. I tried in administrator powershell and cmd and every free model
I ask ChatGPT because you use cargo, you should do it like this, it work for me on macOS:
<img width="681" height="353" alt="Image" src="https://github.com/user-attachments/assets/5b834153-88b4-4a39-b244-3faf69be19c2" />
this is showing working something but still this error
Because of The URL has an extra / at the end.
It should be:
https://generativelanguage.googleapis.com/v1beta/openai<img width="471" height="211" alt="Image" src="https://github.com/user-attachments/assets/9e8d59c2-3203-40c8-94cb-ac146208bda6" />
bro there must be something wrong with me 😭😭.. Thanks.
btw just to be curious is this case for every baseurl.
its time to move on from chatgpt free tier
<img width="980" height="462" alt="Image" src="https://github.com/user-attachments/assets/3e888af3-28d0-4ccb-9a0e-165a0b40db0f" />