Skip to content

Proposal: include a pairing code when starting remote control #32826

Open

Description

@Maaarcocr

Problem statement

codex remote-control start enables remote control but does not return a manual pairing code. Users must run codex remote-control pair as a second command, which makes initial setup less discoverable and adds an unnecessary gap between enabling remote control and connecting a controller. The foreground form has the same limitation.

Prototype fix

After remote control becomes ready, the CLI requests a short-lived pairing artifact with a manual code and includes it in the start output. Human output prints the pairing code, while JSON output includes the pairing object. The existing codex remote-control pair command remains available, and the start help text now documents the behavior.

Prototype: Maaarcocr@5fc1f4f9f

Validation: just test -p codex-cli (294 tests passed); just test -p codex-app-server-daemon (30 tests passed).

Activity

  1. added
    enhancement
    CLI
    on Jul 13, 2026
  2. cendyandreoli commented on Aug 25, 2026

    @cendyandreoli

    I tested a complementary setup flow on WSL2: expose Remote Control directly inside an active TUI session as /remote-control, then render the opaque pairingCode as the same https://chatgpt.com/codex/pair?pairing_code=... QR/deep link used by the desktop flow. The short manual code remains visible as fallback.

    Reference implementation: https://github.com/cendyandreoli/codex/tree/cli-remote-control

    Relevant commits:

    This preserves the existing remote-control start and remote-control pair subcommands while making setup discoverable without leaving the current Codex session. The flow has focused unit tests, an insta UI snapshot, and was validated interactively in a WSL terminal.

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