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
Hi, I experienced the same problem. The way I solved it was by clearing all the browser cache, Reinstall gemini cli (latest version) but make sure uninstall or remove the old version and clear the cache npm cache clean then trying to log in again, and i don't know why its worked.
I was facing the same problem and the gemini-cli report
Failed to login. Message: Failed to exchange authorization code for tokens: request to https://oauth2.googleapis.com/token failed, reason: connect ETIMEDOUT
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Activity
gemini-cli commentedon Nov 15, 2025
Found possible duplicate issues:
If you believe this is not a duplicate, please remove the
status/possible-duplicatelabel.mahidul-islam-v commentedon Nov 15, 2025
I dunno how to remove labels :')
bazik210 commentedon Nov 15, 2025
This bug with lastest kilo-code in vs code persists.
Shadab-4123 commentedon Nov 18, 2025
I am facing the same issue, please if anyone have found the solution please share it.
bazik210 commentedon Nov 19, 2025
new account with new project, tho seems rate limits became more harsher to free users.
ilramdhan commentedon Nov 20, 2025
Hi, I experienced the same problem. The way I solved it was by clearing all the browser cache, Reinstall gemini cli (latest version) but make sure uninstall or remove the old version and clear the cache
npm cache cleanthen trying to log in again, and i don't know why its worked.aliceisjustplaying commentedon Nov 30, 2025
I tried the above and it did not work for me at all. I continue to be unable to log into the CLI.
aliceisjustplaying commentedon Nov 30, 2025
I was wrong. I tried the above with... bun. As it turns out, you should never install the gemini cli with bun, see #8102 (comment)
uninstalling with bun and reinstalling with npm fixed it for me.
zero2hj commentedon Jan 23, 2026
I was facing the same problem and the gemini-cli report
It turns out I didn't configure the right vpn in my cli environment and cannot reach https://oauth2.googleapis.com/token.
johncy65 commentedon Feb 16, 2026
I had VPN enabled on my system for work. As soon as I disconnected the VPN it started working.
johncy65 commentedon Feb 16, 2026
Spent hours debugging this.
gemini-cli commentedon Feb 22, 2026
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!