Google logo
4.9 on Google
Get a free Magento audit

Recommendations on page speed, accessibility issues, and real user experience data

Skip to main article

Using Claude and Gemini in a codespaces environment

Auto login error work around

Using Claude and Gemini in a codespaces environment
10 mins

Develo is a leading Magento agency and eCommerce web development company based in Birmingham, in the UK, serving clients globally since 2010.

When using Codespaces and Gemini or Claude for A.I development you'll be asked to login using a special link. 

But when you open that it results in a broken page, don't close this page yet you'll need it for the fix.


It breaks because the URL contains a Call-back reference to localhost:{PORT#}, but your Codespaces instance is running on an external url https://codespaces_id-{PORT#}.app.github.dev/ 


To fix this look in the Codespaces Ports Tab, you'll see a newly opened port for Gemini or Claude. In my example it's on port 45349.


Click the Copy Local Address Icon. 

Then go back in the tab with the broken URL

Paste this value as a replacement for the localhost:{PORT} part of the tabs URL. 


Once replaced visit the full URL, and the call back should be successful. 


And the terminal should shortly log you in. 


Find our complete Magento + Codespaces setup here for free 

https://github.com/develodesign/codespaces-mageos-hyva

Last updated: December 18, 2025

Contact Develo for Magento + Hyvä eCommerce support

Learn with us

Latest learning resources

Practical ideas, helpful platform tips, and smart strategies to help your eCommerce store thrive.