Approving Codex CLI commands from your phone is reasonably safe if the setup is narrow: only phones you paired can answer, the phone can only answer approval prompts Codex was already going to show you, and each answer covers only that one request. The real risks are human and practical: approving a command you haven't read properly on a small screen, someone else holding your unlocked phone, and project details passing through a relay service and showing on a lock screen. A well-built remote approval tool limits the first set; you manage the second with a few settings.
01What a phone approval can and can't do
Remote approval works through Codex's PermissionRequest hook, which runs just before Codex shows an approval prompt. That shapes what a phone can do:
- It can only answer prompts that exist. The hook fires when Codex is about to ask. A phone can't ask Codex to run something new, and actions the sandbox already allows never reach it.
- It answers one request at a time. The decision is
allowordenyfor this request. There's no "allow everything from now on" in the hook's answer. - Any deny wins. If you run a policy hook alongside, its deny beats the phone's allow.
- It can't change the sandbox. The hook can't widen what Codex is allowed to do for future commands, and an administrator's managed policy still applies.
- Silence is safe. If the hook gives no decision, Codex falls back to its normal terminal prompt.
What it can do is approve the thing in front of it, which can be serious: a command that deletes files, pushes to a remote or touches production. So the main safeguard is you reading the request.
02The risks, and what limits them
03What leaves your computer
To show you a request, some details have to reach your phone. With a typical tool, that includes the project's name and folder path, the command or the files a patch changes, Codex's message or question, and your computer's name.
Notifier for Codex, for example, sends notifications through its own encrypted relay server and deletes them within 48 hours. It has no accounts, sends nothing to OpenAI, and doesn't sell or advertise with the data. Questions Codex marks as secret never leave your computer. The Privacy Policy lists every field.
If you build your own setup with a public ntfy topic or a chat channel, the same details go to that service, and anyone who knows the topic or is in the channel can read them. See the ntfy guide for ways to lock that down.
04Settings that keep it safe
In Codex:
- Keep the sandbox on. Auto (
workspace-writewithon-request) means only actions beyond the project reach you, and that's the set worth a human look. Avoid--yolooutside throwaway environments. - Allow network access inside the sandbox when a task needs it, rather than approving every download from your phone.
- Add a policy hook that denies what must never happen (for example anything mentioning production). Its deny wins over the phone.
See Codex approval modes explained.
In Notifier for Codex:
hold_ceiling_secondscaps how long Codex waits for the phone (10 minutes by default). After that, the terminal prompt appears; nothing is approved by a timeout.- Presence detection means that if you typed in the last 30 seconds, nothing goes to the phone for an answer; you answer in the terminal.
quiet_hoursstops approvals going to the phone at night, so you're not approving half-asleep.codex-notifier config set notify_on_permission offkeeps "finished" pushes but leaves every approval to the terminal.codex-notifier deviceslists paired phones andcodex-notifier devices revoke <name>removes one. Up to three phones can pair with a computer.codex-notifier forgeterases the computer and its pairings from the server.
On the phone:
- Use a passcode or biometrics.
- If your phone or app offers it, hide notification details on the lock screen, so commands don't show while it's locked.
05Rejecting is cheap
When a request looks odd, reject it with a note: "don't install that, use the existing client" or "stop and wait for me". Codex reads the note as the reason and adjusts. A wrong rejection costs a minute; a wrong approval can cost much more.
06FAQ
Can someone approve commands if they find my pairing code?
A code only pairs a new phone while it is valid (24 hours), and pairing shows up in codex-notifier devices, where you can revoke it. Don't share codes or screenshots of them, and check your paired devices if you're unsure.
Does the relay server see my code?
It sees what's in the notification: the command or the list of files, Codex's message and the project path, not your repository. It deletes notifications within 48 hours.
Is the phone's answer trusted more than a policy hook?
No. If any hook denies, the request is denied, whatever the phone says.
Is OpenAI's own mobile approval safer?
It's a different design: OpenAI's Codex on mobile connects the ChatGPT app to the ChatGPT desktop app through your OpenAI account, with your workspace's policies. Both approaches rely on the same thing in the end: you reading what you approve.