You can approve Codex CLI requests from your phone because Codex runs a PermissionRequest hook just before it shows an approval prompt, and that hook can return the decision itself. A tool that sends the request to your phone, waits for your tap and hands back allow or deny lets you answer from anywhere. Notifier for Codex does this with a small command line tool, codex-notifier, on Mac, Windows and Linux, plus an iPhone or Android app. You can also build a basic version yourself.
01How remote approval works
When Codex wants to do something that needs your say-so, such as running a command that needs the network, editing files outside the workspace or calling an MCP tool that requires approval, it fires PermissionRequest before it shows the prompt. The hook gets the tool name and the command or patch as JSON. It can:
- print an
allowdecision, and Codex goes ahead without a prompt; - print a
denydecision with a message, and Codex tells the model why; - print nothing, and Codex shows the normal prompt in the terminal.
A remote approval tool sits in the middle: it posts the request to a server your phone listens to, waits, then prints whatever you chose. The details of the hook are in the PermissionRequest guide.
02The quick way: Notifier for Codex
Notifier for Codex is an independent app (not made by or affiliated with OpenAI). The command line part, codex-notifier, is free and installs its hooks for you.
- Get the Notifier for Codex app on your iPhone or Android phone.
- In the app, add a computer. It shows a 6-digit code and the line to run.
- Run that line on the computer. On Mac or Linux it looks like this:
curl -fsSL https://notifierforcodex.com/install.sh | sh -s 482913
On Windows, in PowerShell (Windows support is in beta):
irm https://notifierforcodex.com/install.ps1 | iex; codex-notifier pair 482913
- Run
codexas usual.
Installing adds six hook entries to ~/.codex/hooks.json and marks them trusted in ~/.codex/config.toml, so you don't have to approve them in /hooks. Other install routes, including Homebrew and npm, are on the codex-notifier page, and pairing your phone covers the QR code route.
03What you see on the phone
When Codex wants approval, the phone shows what it wants to do:
- A command: the exact command line, and Codex's reason when it gives one.
- A patch: which files it wants to edit, before you say yes.
- A tool call: the MCP tool and its arguments.
You can approve, reject, or reject with a note. A note is passed to Codex as the reason for the refusal, so "use staging, not production" changes what it does next. Each approval covers one request; the next request asks again.
The same app also gets "Codex has finished" pushes, Codex's questions (see answering questions from your phone) and a box to send the next instruction.
04When the phone is asked, and when it isn't
codex-notifier checks whether you are at the computer before it makes Codex wait.
- You typed in the last 30 seconds: nothing waits. The prompt appears in the terminal as usual. If you are in another app, the phone gets an informational note; if you are looking at the terminal Codex runs in, it gets nothing.
- You are away: the request goes to the phone and Codex waits for your answer, up to a limit you set (
hold_ceiling_seconds, 10 minutes by default). - You come back: touch the keyboard and the wait ends at once. The terminal prompt takes over.
- Nobody answers: when the limit passes, the hook returns no decision and Codex shows its normal prompt. A timeout never approves anything.
codex-notifier config set hold_ceiling_seconds 300 shortens the wait. codex-notifier config set quiet_hours 22:00-08:00 keeps the phone silent at night.
05Doing it yourself
If you only need a basic version, a script can do the same job with a push service that supports replies. The outline:
- A
PermissionRequesthook reads the JSON from stdin. - It posts
tool_input.commandto your phone with two actions, Approve and Reject, each of which calls a URL you control. - It polls that URL (or a message queue) until an answer appears, up to a timeout.
- It prints the
allowordenydecision, or nothing if time ran out.
Set the handler's timeout above your polling limit, so Codex doesn't kill the hook mid-wait. The hard parts are the ones a ready-made tool has already solved: knowing whether you are at the keyboard, not stalling Codex when you are, making sure only your phone can answer, and keeping the command text private on the way. The security guide goes through what to watch.
For one-way alerts only (no answering), ntfy or a chat webhook is simpler.
06What about OpenAI's own mobile access?
OpenAI lets you start, follow and approve Codex work from the ChatGPT mobile app on a connected Mac or Windows computer, set up from the ChatGPT desktop app on that computer. Availability depends on rollout and workspace settings, and OpenAI says mobile setup can't be started from the Codex CLI. If you work in the Codex CLI, on Linux, or over SSH, a hook-based tool covers those sessions. Using Codex from your phone compares the options.
07FAQ
Can I approve "for the whole session" from the phone?
No. Codex's hook decision covers one request, so each approval request reaches you separately. To stop being asked about a kind of command, adjust your sandbox or approval settings on the computer.
What if I approve on the phone and also press a key in the terminal?
If the phone's answer arrives first, Codex acts on it. If you touch the keyboard first, the wait ends and the normal terminal prompt appears, so you answer it there.
Does it work in the VS Code terminal or over SSH?
Yes. The hooks run from Codex itself, so any terminal you run codex in is covered, including IDE terminals, tmux and SSH sessions. See notifications over SSH.
Do approvals still go to the phone if I use --yolo?
--dangerously-bypass-approvals-and-sandbox (alias --yolo) turns approvals off, so there is nothing to send. You still get "finished" pushes.
Does it cost anything?
codex-notifier is free. The phone apps need a subscription or a one-off purchase. See pricing.