Automatically install and update the CLI for remote connections, similar to VS Code

Open 💬 2 comments Opened May 25, 2026 by Weihong-Liu
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

Hi Codex team,

I’d like to request an improvement for the remote connection experience.

Currently, when using Codex in a remote environment, the CLI needs to be installed or updated manually. This creates friction, especially when switching between machines or working in frequently rebuilt remote environments.

It would be great if Codex could handle this automatically, similar to how VS Code Remote works:

  • Detect whether the required CLI is installed on the remote machine
  • Automatically download and install the correct version if missing
  • Automatically update the CLI when the local/client version requires it
  • Avoid requiring users to manually run update commands each time

This would make the remote workflow much smoother and reduce setup overhead.

Thanks!

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 3 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #24034
  • #24283
  • #24035

Powered by Codex Action

kaiwu-astro · 2 months ago

this issue is nothing relevant to the action bot mentioned above and nothing duplicated... This is also an headache for me because I have quite a lot of remote machines via SSH but every time after the desktop app upgrades I need to upgrade CLI each of them.