Test an app on localhost
TaloTrace’s browsers run in the cloud. A tunnel from your laptop carries the page, and any API it calls, to that browser. The app keeps its localhost address in the browser, in your code and in the session. Never rewrite a URL or add a host name for TaloTrace.
Only the development and staging environments of TaloTrace can reach an app on your computer today. A production session needs a deployed address.
Steps
-
Start your dev server, for example on
http://localhost:3000. -
Run the one-command setup with the local option, and restart your agent. See One-command setup.
-
Ask your agent to test the app. Tell it the port. It never assumes one.
-
The agent opens the tunnel itself when the session starts. A second session on the same port reuses it.
The tunnel closes after the idle time you set with mcp --idle, and when the agent exits. If the tunnel is not up in 15 seconds, the start is refused with the port it needs.
A page and its API on two ports
When the page calls an API on another local port, list both. Port 3000 is the page and 3001 is the API:
Through your agent, pass the extra ports with the start, or start the local server with mcp --ports 3001. At most eight ports go in one session. Without the API’s port, the API calls fail.
List and stop tunnels
Your agent can list the tunnels that are open on your computer and stop one. A tunnel that nothing uses closes by itself. Press Ctrl-C to end talotrace connect; it stops within two seconds.
Who owns a tunnel
A tunnel is visible only to the sign-in that opened it. An API key and a browser sign-in cannot share one. If a start is refused with TT_LOCAL_APP_UNREACHABLE, use the same sign-in for the tunnel and the session. See Sign in.