Cloud Coding Agents Can't Reach Localhost: Three Ways to Preview Your App
Cloud coding agents such as Codex, Claude Code on the web, and Jules run in remote sandboxes, so a localhost address points to their own loopback rather than the developer's machine. As a result, a dev server running locally cannot be opened by the agent, and an agent-started server cannot be opened by the user. The article outlines three remedies: tunneling the local port to a public HTTPS URL, running the project inside the agent's sandbox and returning screenshots, or deploying a branch to a temporary preview URL. It also warns that public preview URLs need authentication, such as Basic Auth, because anyone who finds them can access them. The problem is largely absent for agents running on the user's own computer, which can open local servers directly.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in