Codex remote
Run Codex on your box from the ChatGPT desktop app, with every edit syncing back to your Mac.
On this page4
Add your box
With Prized set up on this Mac (Quickstart), open Settings > Connections in the ChatGPT app:
-
Click Add under SSH connections from this Mac.

-
Tick your box and click Add. It is listed by its name.

-
Check it says Connected, then pick a project on the box; synced projects are in
~/code.
What the app needs on the box
The app starts Codex on the box over SSH, through a login shell, so codex has to be on that shell's PATH and signed in there (OpenAI's docs). A box has the Codex CLI preinstalled, and the sign-in above covers the rest. The app lists the hosts named in ~/.ssh/config itself, so Prized adds the box there in a marked block. The block ends in Host *, so your own settings below it still apply to every host.
The app starts its own Codex server on the box and leaves it running between chats. The box keeps the Codex CLI on its latest release, and when Codex updates, that server restarts on the new release once nothing in it is in use (no chat working, no background terminal); the app reconnects by itself.
If chats on the box fail after the ChatGPT app updated, or you want the new Codex now, restart the server yourself. Open a shell on the box:
prized ssh figThen restart it:
pkill -HUP -u "$USER" -f 'code_mode_host=true app-server --liste[n]'The server lets a running chat finish (a new chat can't start until then), stops the background terminals it runs, and exits; the app starts it again on the current Codex.
Hand off moves a chat and its git state between your Mac and the box, into a worktree there, and back again later; both need a project saved for the same repository.
Give Codex a browser on the box
Codex can drive the ChatGPT app's built-in browser (@Browser) only in chats on your Mac: a chat on an SSH host gets no tool to control it, a limitation of OpenAI's app (openai/codex#34263). Give Codex on the box a browser of its own, from this Mac:
prized agents browserThen start a new chat on the box and ask Codex to use the browser: it can open pages, click, type and take screenshots, and a dev server on the box is at http://localhost:PORT there. --headed shows the window on the box desktop, and --cdp drives the signed-in window prized browser streams (Give agents a browser).
If your prized doesn't have agents browser yet (prized update), add the same kind of server by hand. On the box (prized ssh fig):
[ -x /usr/bin/npx ] || { curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt-get install -y nodejs; }
command -v google-chrome-stable >/dev/null || { curl -fsSL -o /tmp/chrome.deb https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo apt-get install -y /tmp/chrome.deb; }
codex mcp add playwright -- npx -y @playwright/mcp@latest --browser chrome --headless --isolated --output-dir /tmp/playwright-mcpThe first two lines install Node.js and Chrome if the box lacks them. The last adds the Playwright MCP server, listed in Codex as playwright, which keeps its page snapshots and screenshots in /tmp/playwright-mcp, out of your project. prized agents browser --force replaces it later.
A Codex or ChatGPT handoff, from prized setup or prized agents handoff (Credentials), replaces the box's ~/.codex/config.toml with this Mac's, so run prized agents browser (or the last line) again after one.
From your phone
The ChatGPT mobile app connects to the box directly, no Mac needed:
- Open the box in the dashboard, go to Settings, and click Set up beside Phone access. Generate the password; it is shown once.
- In the ChatGPT app, open Settings > Connections > Add SSH host and paste the host, port, username, and password.
- One password per box. A new one replaces the old, and Revoke stops new logins immediately. Active connections close shortly afterward; an older connection may remain open for up to twelve hours, but the old password cannot reconnect.
- Connecting wakes a paused box and waits for it to start. Retrying from several clients at once does not make it start sooner. If the wait times out, use Resume in the dashboard, then reconnect.
- A busy gateway may close a new connection. Wait briefly and reconnect with the same phone password; this does not revoke it.
- Terminal only. No port forwarding; use
prized portson your Mac. - Idle connections close after about fifteen minutes; the app reconnects on its own.
- A connection in use stays open for as long as you use it. If the box stops answering (it paused, or lost its network), the connection closes shortly afterward instead of hanging, and the app can reconnect.
No Add SSH host? OpenAI is still rolling it out; update the app and look again.