Follow and approve Codex CLI from your phone

Codex CLI works in your terminal. Agents At Work puts that session on your phone, so you can answer it and send it work from anywhere.

The short answer

Install Agents At Work on the computer where Codex CLI runs and on your phone, and pair them with a QR code. Start Codex with codex in a project folder. The session shows on the phone with its conversation, the model it runs on, and an approval card each time Codex wants to run a command.

What you need

  • A computer where Codex CLI runs: a Mac (macOS 14.6 or later) or a Linux machine.
  • A phone or tablet: iPhone or iPad (iOS 17.6 or later) or Android (7.0 or later).
  • tmux 3.2 or later on the computer. You never type a tmux command; it only has to be installed.

There is no account to create. One computer is free. Plans for more computers →

Set it up

On a Mac: download the Mac app, open it, and choose Link Mobile in its menu bar window. It shows a QR code.

On Linux: run one command. It installs the engine, starts its background service and prints the QR code in the terminal.

curl -fsSL https://agentsatwork.app/install-linux.sh | bash

On the phone: install Agents At Work from the App Store or Google Play, tap Scan QR Code and point the camera at the code. The scan pairs the two and hands over the encryption key.

Start Codex:

cd ~/projects/my-app
codex

Trust the hooks once. Codex does not run a new hook until you have reviewed it. The first time, Codex shows a notice at startup: type /hooks in Codex and trust the Agents At Work entries. Until you do, Codex skips them and nothing reaches the phone.

What you can do from the phone

  • Approve or refuse a command with one tap, with the command shown in full.
  • Read the conversation as it happens, and get a notification when Codex finishes.
  • Send a prompt, now or scheduled for later, with files attached.
  • See the model the session runs on. It follows a /model switch at your next prompt.
  • Start a new Codex session on a folder of that computer, or stop one.

Good to know

  • Two Codex sessions on one computer each get their own cards and conversation.
  • Codex can run next to another agent on the same folder. A second agent there shows as its own session, for example my-app-codex.
  • Some commands ask twice. When Codex guards a command with its own dialog, you may be asked once more after you approved.
  • A copy of Codex that your session starts itself with codex exec stays out of the feed.

Related guides