Codex on a Linux server, from your phone

OpenAI's way to control Codex from a phone pairs the ChatGPT app with the ChatGPT desktop app on macOS or Windows, so a headless Linux server is not a supported host. To run Codex on a Linux server and steer it from your phone, sign the Codex CLI in on the server, install the Riff runner there as a service, and use Riff in your phone's browser.

By Riff · Updated · 4 min read · Facts about other products checked

Key takeaways

  • Desktop app required by OpenAI. Remote connections are set up from the ChatGPT desktop app, not from the CLI.
  • Keeps running after logout. Riff's Linux runner is a systemd user service with lingering, so it survives SSH logout and reboots.
  • x86-64 and arm64. Works on cloud VMs, home servers and single-board computers on either architecture.
  • Several machines, one list. Add more servers or a Mac; every session shows on the same phone screen.

Why a Linux server needs a different path

OpenAI's remote connections are started in the ChatGPT desktop app on macOS or Windows; the docs say setup cannot be done from the CLI or IDE extension, one phone pairs with one host, and Linux or headless hosts are not listed (checked 2026-11-15). The closest official option is a desktop host that opens an SSH project on the Linux box.

Riff talks to the Codex CLI directly. Its installer sets up a systemd user service and turns on lingering, so the runner starts at boot and keeps working after you close the SSH session. The server connects out over HTTPS; no port is opened. See Codex on your phone for the general comparison.

Codex hosts you can control from a phone (checked 2026-11-15)
HostChatGPT app remote connectionRiff
Mac with ChatGPT desktop appSupportedSupported (Codex CLI)
Windows PC with ChatGPT desktop appSupportedNot supported
Linux desktopNot listedSupported
Headless Linux server over SSHOnly through a desktop host's SSH projectSupported, runs after logout

How to set it up

  1. Sign Codex in on the server. Over SSH, install the Codex CLI and run codex once to sign in; confirm it works in a project.
  2. Install the runner. Run curl -fsSL https://goriff.dev/install.sh | sh on the server and open the approval link it prints on any device. If lingering cannot be turned on, it prints the one sudo command to run.
  3. Allow the repositories. Choose which git repositories on the server Riff may run agents in.
  4. Start Codex from your phone. Open Riff, pick the server, the project and Codex, and start the task.

Who it is for

  • You use more than one agent. Claude Code, Codex and Cursor sit in one session list so you stop jumping between separate apps to find which run is waiting.
  • You step away from your desk. Check a run between meetings, answer a prompt on the train, and inspect changed files without opening a laptop.
  • Your agents execute locally. Execution uses your connected machine and local tools. AI providers still receive prompts and relevant code; their policies apply.

Try Riff with your own machine

One terminal command on your Mac or Linux machine, or the Mac app. Then open Riff on your phone.

Download the runner

FAQ

Can I control Codex on a Linux server from the ChatGPT app?

Not directly. OpenAI's remote connections pair with the ChatGPT desktop app on macOS or Windows, and Linux or headless hosts are not listed. A desktop host can open an SSH project on the Linux machine instead.

Does the Riff runner keep working after I log out of SSH?

Yes. On Linux it installs as a systemd user service and enables lingering, so it starts at boot and keeps running after the last login ends. If your distribution does not allow that without root, the installer prints the sudo command.

Do I need to open a port on the server?

No. The runner connects outbound over HTTPS to the relay; nothing listens for inbound connections.

Which Linux machines are supported?

Linux on x86-64 and arm64 with systemd, such as Ubuntu or Debian servers, cloud VMs and arm64 boards. The Codex CLI must run there too.