Key takeaways

  • Codex CLI 0.171.0, released November 20, 2026, adds /rc and /remote to turn on remote control and show device pairing codes from the terminal UI.
  • The experimental codex remote-control command has start, stop and pair subcommands, and pair prints a short-lived manual pairing code.
  • OpenAI's pricing page lists mobile remote control on Plus, Pro, Business and Enterprise, not with API key sign-in.

Codex remote control lets you drive a Codex session running on one computer from another device, such as the ChatGPT app on your phone. In the Codex CLI you turn it on with the codex remote-control command or, since version 0.171.0 released on November 20, 2026, with the /rc slash command inside the terminal UI, which also shows a pairing code for a new device.

OpenAI's docs describe two separate things under "remote". One is the phone-to-computer link, where ChatGPT on your phone sends prompts and approvals to a host computer. The other is the CLI's --remote flag, which points a Codex terminal at an app server, the background process that runs Codex sessions, on another machine. This guide covers both, with commands taken only from OpenAI's command line reference, its remote connections guide and the GitHub release notes. The commands were not run for this guide.

Who can use Codex remote control

OpenAI's pricing page lists mobile remote control on the Plus, Pro, Business and Enterprise plans, as of November 20, 2026. It is not available when you sign in to Codex with an API key, and the page says nothing about remote access on the Free and Go plans.

The remote connections guide sets these requirements for the phone link:

  • The host computer runs the ChatGPT desktop app on macOS or Windows.
  • The phone runs the latest ChatGPT app on iOS or Android.
  • Both devices are signed in to the same ChatGPT account and workspace, with Codex access.
  • The host stays awake, online and signed in.
  • In a workspace, an admin may need to turn on Remote Control access first.

OpenAI's Codex on mobile page adds that availability "depends on rollout and your workspace settings."

How to start remote control from the Codex CLI

The CLI reference lists codex remote-control as experimental. It runs remote control for the local app server, or creates a short-lived pairing code.

  1. Start remote control. Run it bare, and Codex uses the managed background server when it can and falls back to the foreground when it can't:

    codex remote-control
    
  2. Or manage the background server yourself:

    codex remote-control start
    codex remote-control stop
    

    start launches the local app-server daemon with remote control on, and stop shuts it down.

  3. To keep it in the foreground, add --no-daemon. The reference says this flag works only with the bare command, not with start, stop or pair:

    codex remote-control --no-daemon
    
  4. With the daemon running, create a pairing code:

    codex remote-control pair
    

    It prints a short-lived manual pairing code. Add --json to any remote-control command for machine-readable output. For pair, the JSON includes pairingCode, manualPairingCode, environmentId and expiresAt.

How to use /rc and /remote in the terminal UI

Version 0.171.0 added /rc and /remote, two names for the same command, to manage local remote control and show device pairing codes without leaving a session. According to the pull request that added it:

  1. Type /rc (or /remote) in the Codex terminal UI.
  2. In the menu, turn remote control on or off for the managed local background server. The menu tells you whether the setting was saved for the next restart, and warns you if saving failed.
  3. Once remote control is on, choose Add device. Codex shows a manual pairing code.

The command can manage the local server while you are looking at a cloud session, but its actions apply only to local sessions.

How to pair your phone

The documented way to pair a phone starts in the ChatGPT desktop app, not the CLI:

  1. On the host, open the ChatGPT desktop app and go to Settings > Connections > Control this Mac or PC. Select Set up or Add, approve remote access and finish any verification.
  2. Scan the QR code with your phone. It opens ChatGPT.
  3. Confirm the same account and workspace, and complete any MFA, SSO or passkey prompt.
  4. The host now appears under Codex in the ChatGPT app, or under Remote in older versions.

Each QR code pairs one device with one host, so pair again for each extra computer.

This is where the docs fall short. The remote connections guide says you "can't set up mobile access from the Codex CLI or IDE extension," while the CLI reference and the 0.171.0 release notes describe CLI pairing codes. Neither page says where on the phone you type a manual code. Until OpenAI documents that step, the desktop app's QR code is the only pairing path with official instructions.

How to connect a Codex terminal to a remote app server

The --remote flag is for developers who run Codex on a server and want to drive it from another terminal. The app server docs give this pair of commands, one on the host and one on the client:

codex app-server --listen ws://127.0.0.1:4500
codex --remote ws://127.0.0.1:4500

--remote accepts ws://, wss:// and unix:// addresses. It works with codex, codex resume, codex fork and a few session commands. To send a bearer token, name an environment variable with --remote-auth-token-env. The reference says tokens are sent only over wss:// or local-only ws:// addresses. It calls codex app-server a tool mainly for development and debugging that "may change without notice."

Version 0.171.0 also added codex exec --remote <ADDR>. Its pull request says it runs a non-interactive turn on an existing app server, starting a new thread or resuming one by its ID, with the same optional --remote-auth-token-env. The CLI reference had not caught up on November 20 and still lists codex exec among the commands that reject remote mode.

Common problems

From the troubleshooting section of the remote connections guide:

  • The host doesn't show up on the phone. Check that the desktop app is running, that connections from other devices are allowed, and that both devices use the same account and workspace. If you haven't used the connection since June 8, 2026, update both apps and pair again.
  • Remote Control is off after you signed back in. Signing out turns it off but keeps your pairings. Turn Remote Control back on.
  • The session keeps dropping. The host probably slept, lost its network or closed the app. On a Mac laptop, keep it plugged in with the lid open.
  • Setup stops at sign-in. Finish the MFA, SSO or passkey prompt. If it still fails in a workspace, ask an admin to confirm Remote Control access.

OpenAI also says not to expose app-server connections on shared or public networks, and to use a VPN or mesh network to reach a host from outside your network. Connect only devices you own.

Where to go next

Install or update the CLI first with the steps in the Codex install guide, since /rc needs version 0.171.0 or later. For more terminal UI tips, see how to add a new line in Codex, and if the CLI misbehaves, try the Codex fixes guide.

Frequently asked questions

Can I control Codex from my phone?

Yes. With a Plus, Pro, Business or Enterprise plan, pair the ChatGPT app on iOS or Android with a Mac or Windows computer running the ChatGPT desktop app, then start and approve Codex tasks from the phone.

Does Codex remote control work on Linux?

OpenAI's remote connections guide lists only macOS and Windows hosts for the phone link. The CLI's --remote flag can connect to an app server over WebSocket or a Unix socket, and the docs don't limit that to an operating system.

What does /rc do in Codex?

/rc, also typed as /remote, opens a menu in the Codex terminal UI that turns remote control on or off for the local background server. Once it is on, Add device shows a manual pairing code.

Why is Codex remote not working?

Usually the host slept, lost its network or closed the ChatGPT desktop app, or the two devices use different accounts or workspaces. Signing out also turns Remote Control off, so turn it back on after signing in.

Sources

  1. Codex rust-v0.171.0 release notesOpenAI
  2. Command line options (Codex CLI reference)OpenAI
  3. Remote connections in ChatGPT and CodexOpenAI
  4. Codex on mobileOpenAI
  5. Codex pricingOpenAI
  6. Codex App ServerOpenAI
  7. Add /rc to manage remote control from the TUI (#62121)OpenAI
  8. Support remote app servers in codex exec (#61707)OpenAI