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
I selected Gemini 2.5 Flash (which I believe is a free model), and am regularly seeing this:
However after waiting a short while, I can submit a new prompt and continue without any issues. This makes sense because according to https://ai.google.dev/gemini-api/docs/rate-limits, the free model is limited to 10 requests per minute.
So ideally opencode would:
know the rate limits for each model
keep track of how close its usage is to that limit
warn when it's getting close to the limit
when the limit gets hit, pause for the appropriate amount of time showing a countdown timer and an explanation of what's going on together with some suggestions on how to overcome the limit (e.g. by changing to a paid model)
Activity
[-]hitting Gemini rate limits[/-][+]handle Gemini rate limits more gracefully[/+][-]handle Gemini rate limits more gracefully[/-][+]handle (Gemini) rate limits more gracefully[/+]furai commentedon Jun 30, 2025
I'm actually getting the same for Claude, should I open new issue?
EDIT: it seems that this only applies for using anthropic through API key not oauth?
grigio commentedon Aug 4, 2025
I also have this issue with openrouter
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!