There are six ways to get notifications from the Codex CLI: its built-in terminal notification, the notify setting, a hook you write that shows a desktop alert, a hook that sends a push through a service such as ntfy, Telegram, Slack or Discord, OpenAI's own Codex on mobile through the ChatGPT apps, and a dedicated notifier tool. The first four are free and tell you that something happened. Codex on mobile and two-way notifier tools also let you answer from your phone. Which one is best depends on whether you only need to know, or also need to act, and on whether you work in the CLI or the ChatGPT desktop app.
011. The built-in TUI notification
What it is: Codex's terminal UI alerts you when a turn completes or an approval is waiting, by default only while the terminal is unfocused. It sends an OSC 9 desktop notification in Ghostty, iTerm2, Kitty, Warp and WezTerm and rings the bell elsewhere. Settings are under [tui] in ~/.codex/config.toml.
Good for: zero setup, at your desk. Limits: depends on the terminal; nothing reaches you once you leave the computer or detach from tmux.
Details: Codex's built-in notifications.
022. The notify setting
What it is: notify = ["python3", "/path/notify.py"] in config.toml runs your program with a JSON description of each completed turn.
Good for: "finished" alerts, logging, a quick webhook, with no trust step. Limits: only agent-turn-complete, so no "needs approval"; one-way.
Details: the notify guide.
033. A desktop-alert hook
What it is: a Stop hook and a PermissionRequest hook in ~/.codex/hooks.json that run osascript, notify-send or PowerShell.
Good for: a real desktop notification in any terminal, including IDE terminals, for both "finished" and "needs approval". Limits: needs trusting in /hooks; still desk-bound.
Details: get a notification when Codex finishes, plus guides for macOS, Windows and Linux.
044. A push hook (ntfy, Telegram, Slack, Discord)
What it is: the same hooks, but they run curl to send a push or chat message.
Good for: reaching your phone from anywhere, including servers and detached tmux sessions. Free or nearly. Limits: one-way. You learn Codex is waiting, then go back to the keyboard to answer. You manage the topic or token and the privacy of what you send.
Details: ntfy and Telegram, Slack or Discord.
055. OpenAI's Codex on mobile
What it is: the ChatGPT mobile app connects to a Mac or Windows computer running the ChatGPT desktop app. You can start tasks, follow them, approve actions and get notified when work completes or needs attention. Cloud tasks work from the same app.
Good for: people who work in the ChatGPT desktop app; full control from the phone, including new tasks and diffs. Limits: set up from the desktop app, not the Codex CLI; OpenAI lists Mac and Windows hosts; availability depends on rollout and workspace settings.
Details: using Codex from your phone.
066. A dedicated notifier for the CLI
What it is: a tool that installs the hooks and pairs with a phone app that can answer. Notifier for Codex is one: a free codex-notifier command line tool for Mac, Windows and Linux and an iPhone or Android app. It is independent and not affiliated with OpenAI.
Good for: keeping CLI sessions moving while you're away. Approve or reject commands and patches (with a note), answer questions, send the next instruction after a turn. It works in any terminal, over SSH and in tmux, and only makes Codex wait when you're away from the keyboard. Limits: the phone app is paid (subscription or one-off; see pricing); you can't start new chats or browse files from the phone.
07Side by side
notifyDesktop hookPush hookCodex on mobileNotifier for Codex/hooksHooks + serviceDesktop app + QROne line08How to choose
- At your desk, in a supported terminal: the built-in notification may be all you need.
- At your desk, any terminal: add a desktop hook.
- Away, just want to know: ntfy or a chat webhook.
- Away, want to keep the work moving in the CLI: a two-way notifier.
- You work in the ChatGPT desktop app on Mac or Windows: Codex on mobile.
You can combine them. A desktop hook and a phone tool run side by side happily, because Codex runs all matching hooks.
09FAQ
Which option works when my laptop is closed?
Only the ones that push over the network from wherever Codex runs: a push hook, Notifier for Codex, or Codex on mobile (which needs the host awake). If Codex runs on the laptop itself, closing it usually sleeps it and stops Codex.
Can I use the built-in notification and a hook together?
Yes. They're independent. You might get two alerts for the same moment, so turn one off if that bothers you: notifications = false under [tui] stops the built-in one.
Are the free options good enough?
For many people, yes. If you only need to know when to come back, a push hook is free and reliable. A paid tool earns its keep when you want to answer without going back.
Does any of this cost Codex usage?
Notifications don't. Auto-review, which answers approvals with a reviewer agent instead of you, does use extra model calls.