Skip to content

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

Open

Description

@Weihong-Liu

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!

Activity

  1. added
    enhancement
    CLI
    on May 25, 2026
  2. kaiwu-astro commented on Jun 19, 2026

    @kaiwu-astro

    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.

  3. 5mghost commented on Sep 23, 2026

    @5mghost

    Concrete reproduction from September 23, 2026, for SSH-connected remote projects:

    • Codex Desktop on Windows could use gpt-6-sol locally with the same ChatGPT account.
    • The SSH-connected Linux host was running the standalone Codex CLI and app-server at 0.154.0. Selecting gpt-6-sol for an existing remote task failed before inference with HTTP 400: The 'gpt-6-sol' model is not supported when using Codex with a ChatGPT account. This suggested an account entitlement problem, although the account was not the cause.
    • Running the standalone CLI's codex update upgraded it to 0.156.1. A direct, ephemeral, read-only codex exec -m gpt-6-sol on that host then returned OK using the existing login.
    • The Desktop remote task still received the same 400 while its already-running app-server remained at 0.154.0. After a graceful restart, the app-server reported 0.156.1, and the same remote model request completed without error.

    Please have the SSH connection check the running app-server version when a newly available model is selected. Ideally, offer a safe update/restart of the remote standalone helper. At minimum, show the selected binary path, CLI version, app-server version, and an actionable version-mismatch message instead of the misleading ChatGPT-account error. Users should not have to diagnose and manually update/restart the remote host each time a model rollout requires a newer Codex runtime.

    Related stale-helper report: #41759.

  4. loee300-lab commented on Nov 24, 2026

    @loee300-lab

    Dear Codex Team,

    Please improve the SSH remote development experience in the Codex desktop app by adopting a seamless setup process similar to Cursor.

    Users should only need to provide their SSH connection details. Codex should automatically detect the remote environment, install the required components, and manage version updates.

    Please also support SSH password authentication in addition to private keys.

    Manually configuring SSH keys, installing Node.js and Codex CLI, and troubleshooting dependencies creates unnecessary friction for developers.

    Remote development should be simple, secure, and automated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIenhancementremote

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions