How to open a Codex cloud task's app with HTTP Previews and connect over SSH
Codex cloud tasks run in a virtual machine (VM). Since November 30, you can open a web app Codex started in that VM in your own browser, or connect to the VM over SSH from your local terminal or editor. The controls you see depend on your app version, workspace and environment.
To watch Codex interact with the app, open Desktop in the task. To try the app yourself, use HTTP Previews.
- Ask Codex to start the server and tell you which port it uses.
Start the dev server and tell me which port it uses
-
If the port isn't listed under HTTP Previews, edit the task's environment. Under HTTP Previews, add the port, press Enter, select Apply, then select Apply to this chat.
-
Open the port under HTTP Previews in the task. The link is a private HTTPS link only you can access. Remove the port to block new requests to the link.
SSH works when SSH access is enabled for the environment.
-
In the desktop app, select Set up SSH next to SSH.
-
Choose a profile name and select Create and copy command. Codex adds a profile to your local SSH configuration.
-
Run the copied command in your terminal, or select the profile in your editor.
Turning off SSH access may leave existing connections active, so close open sessions yourself when you're done.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.