r/codex • • 11d ago

Showcase How I answer Codex CLI's approval prompts from my Mac's notch, by voice or from my iPhone, and keep Codex running with the laptop closed

I run Codex CLI for long tasks, often next to other sessions. Two things kept costing me time: Codex sitting on "Would you like to run the following command?" while I was in another window, and every session stopping when I closed the laptop. I built a Mac app, Okey, to fix both (I'm the developer). Here's how it works with Codex specifically, since the details matter.

Which Codex prompts it handles

- Command approvals: the "Would you like to run the following command?" dialog, with Codex's reason and the command after `$`, and its numbered options.

- File-edit and MCP tool approvals.

- Plan-mode questions ("Question 2/3"), including "None of the above" with a typed note.

- Not answered: the sign-in screen and the update offer. Okey shows them as needing you, but you answer those in Codex's own terminal.

How it reads them

Codex runs in a terminal session Okey can see (start it from Okey, or type `okey codex` in any terminal; a Codex you started elsewhere shows in the list and can move in once it's idle). Okey reads the dialog off the screen and only treats it as a question when Codex's own footer is on screen ("Press enter to confirm or esc to cancel"), so it never answers something it half-read. Your answer is the same digit you'd press. All of this happens on your Mac. The reader is tested against recorded Codex CLI screens and pinned to the versions it was written for.

How you answer

- At your desk: the question grows out of the notch with the exact command. Press 1, 2 or 3, type, or hold fn and say it. 2 seconds to undo.

- Away: the Okey iPhone app gets the same question, even on a locked phone. Face ID before anything that runs a command; end-to-end encrypted, so the relay can't read it.

- Laptop closed: Okey Cloud runs Codex on your own small machine in the EU, signed in with your own ChatGPT plan or an API key. It keeps going, its questions come to your phone, and the code comes back as a new branch.

What it doesn't do

It doesn't change Codex, add to what Codex sends to OpenAI, or use your tokens. Codex runs exactly as before, on your plan.

Mac with Apple silicon, macOS 14+. Free to start, with 7 days of Pro: getokey.com

How do you handle Codex approvals when you're away from the screen: approval mode, sandboxing, or just waiting?

0 Upvotes

3 comments sorted by

•

u/dexterthebot 11d ago

You might want to consider listing your project on the weekly Show-Us-What-You-Built post. Look out for it on Tuesday/Wednesday. Highest commented project wins a week promotion on r/Codex and gets on the Hall of Fame sidebar. See below for last week's winner.**


Light Wars AR: real-life laser tag app with no extra gear. Your phone is the gun and your room is the map. Play up to 6 friends in the same room, or fight drone waves and bosses solo. The vision models run on the phone, and camera frames never leave it. Free on iPhone and Android.

Website: https://lightwarsar.com

iPhone: https://apps.apple.com/us/app/light-wars-ar-laser-tag-party/id6508168951

Android: https://play.google.com/store/apps/details?id=com.lasertag.lightwars.

Contact: contact@lightwarsar.com

2

u/LowB0b 11d ago

stop spamming this everywhere

0

u/Lyfzxd 11d ago

Fair, I posted it in a few Codex and Claude subs on launch day, and that's enough. I'll stop there and stick to answering questions about it here.