Auto-forward remote dev server ports to local machine in Codex Desktop remote sessions

Open 💬 1 comment Opened May 6, 2026 by shrektan

What variant of Codex are you using?

App

What feature would you like to see?

Codex Desktop now supports remote development sessions, but local preview still requires manual SSH port forwarding.

When the agent starts or detects a dev server on the remote host, Codex should offer to forward that remote port to the local machine and make it available in the in-app browser/local browser, similar to VS Code Remote SSH port forwarding.

Example:

  • Remote session runs npm run dev
  • App listens on remote 127.0.0.1:5173
  • Codex Desktop automatically exposes it locally as http://127.0.0.1:5173 or another available local port
  • The in-app browser can open the forwarded URL directly

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗