Codex notifications on your iPhone

Give Codex a task and get on with your day. Your iPhone tells you when it's done, when it's stuck on a permission prompt, and when it needs your approval.

Paste this into Codex to set it up

Set up ActivitySmith so you can notify me on my iPhone.
Follow https://activitysmith.com/agent-setup.md

It adds the MCP server, walks you through the sign-in, and checks that your iPhone is paired. Free for 7 days, no credit card. Prefer to do it yourself? Set it up by hand.

An iPhone Lock Screen with a Live Activity for API rate limits at step 3 of 4, an approval request from Codex, and a Push Notification that says the flaky export tests are fixed

Three ways to get notified

Ask for it once, make it a rule, or add a hook that doesn't depend on Codex remembering.

Ask for it in one task

Add a sentence to the end of your request. Codex writes the notification itself, so it tells you what it did.

Tell Codex

Fix the flaky export tests, then send me a Push Notification with the result.

The first time, Codex asks if it may use the tool. Choose Always allow, and it won't ask again.

Push Notification from Codex: Flaky export tests fixed. Fixed 3 race conditions. All 214 tests pass, and PR #87 is ready.

Make it a rule for every session

Add this note to ~/.codex/AGENTS.md. Codex reads that file in every project. For one project only, put it in the AGENTS.md at the top of that repository.

A rule is an instruction, so Codex can still skip it. When that matters, use a hook.

## ActivitySmith
- When a long task finishes, fails, or needs my input, send me a Push Notification with the ActivitySmith `send_push_notification` tool.
- When I ask you to get my approval before a kind of action, treat it as a rule. Every time, call `request_approval` first and continue only after I approve.

Add a hook that fires every time

Codex runs hooks itself. These two call ActivitySmith directly, so you write no script and need no API key.

  1. 1. Connect ActivitySmith first, with the setup prompt or by hand.
  2. 2. Open ~/.codex/hooks.json, or create it, and add one of the hooks below.
  3. 3. Start Codex. It asks you to review the new hook. Trust it, or Codex skips it.

When Codex wants to run a command

The best one to start with. Codex stops at a permission prompt and waits, and you see which command it's about. Go back to Codex to answer it.

{
"hooks": {
"PermissionRequest": [{
"matcher": "Bash",
"hooks": [{
"type": "mcp_tool",
"server": "activitysmith",
"tool": "send_push_notification",
"input": {
"title": "Codex is waiting for you",
"message": "${tool_input.command}",
"from_hook": true
}
}]
}]
}
}
Push Notification titled Codex is waiting for you, with the command it wants to run: npm install @sentry/node

Every time Codex finishes

You get the last reply as the message. It fires after short answers too, so it suits long runs better than back-and-forth work.

To use both hooks, put PermissionRequest and Stop inside the same hooks object.

{
"hooks": {
"Stop": [{
"hooks": [{
"type": "mcp_tool",
"server": "activitysmith",
"tool": "send_push_notification",
"input": {
"title": "Codex finished",
"message": "${last_assistant_message}",
"from_hook": true
}
}]
}]
}
}
Push Notification titled Codex finished, with the last reply: Added subtract to test_add.py with one assertion. The file runs, and both tests pass.

Approve the risky steps from your iPhone

Tell Codex which steps need your OK. It sends you the question and the exact command, then waits. Approve it, reject it, or type what you want instead, and Codex carries on from there.

Tell Codex

Ask for my approval with ActivitySmith before you deploy to production or delete any data.

See what an approval request looks like

Time Sensitive Push Notification: Codex needs your approval. Deploy the new API rate limits to production?

See how far along it is

On a longer run, Codex can keep a Live Activity on your Lock Screen and move it forward after each step. You see where it is without opening your laptop.

Tell Codex

Start a Live Activity with the steps of this plan. Update it as you go, and end it when you are done.

Read the guide to agent progress

Live Activity on the iPhone Lock Screen: API rate limits, running 62 tests, step 3 of 4

Set it up by hand

The setup prompt adds the server and checks your iPhone for you. Step 3 is optional.

  1. 1. Add the MCP server

    Run this in your terminal. It makes the server available in all your projects.

    codex mcp add activitysmith --url https://mcp.activitysmith.com/mcp
  2. 2. Sign in

    Run this command and approve the access in your browser. You can create an account on the same page.

    codex mcp login activitysmith
  3. 3. Let Codex send without asking

    Codex asks before it uses a tool that sends something. To allow Push Notifications only, add this to ~/.codex/config.toml. You need it for codex exec, which can't stop to ask you.

    [mcp_servers.activitysmith.tools.send_push_notification]
    approval_mode = "approve"
  4. 4. Pair your iPhone

    Install the ActivitySmith app, sign in with the same account, and allow notifications.

  5. 5. Send yourself a test

    Start a new Codex session and ask for one. If it arrives, you are done.

    Tell Codex

    Send me a test Push Notification with ActivitySmith.

The ChatGPT app, or ActivitySmith?

The ChatGPT phone app can follow Codex on a computer you connect to it. If you work in the ChatGPT desktop app and want to steer whole tasks from your phone, that may be all you need. Here is where they differ.

TopicChatGPT appActivitySmith
What you needChatGPT app: The ChatGPT app on your phone, and the ChatGPT desktop app on a Mac or Windows PCActivitySmith: The ActivitySmith app and MCP server
Where you set it upChatGPT app: In the ChatGPT desktop app. You can't set it up from the Codex CLI or the IDE extension.ActivitySmith: In the Codex CLI, or with one prompt
When it notifies youChatGPT app: When a task completes or needs your attentionActivitySmith: When you ask, when your rule says so, or every time with a hook
Answering from your phoneChatGPT app: You can approve commands, review changes, and send new instructionsActivitySmith: You answer the steps you told Codex to ask about
What else can use itChatGPT app: ChatGPT and CodexActivitySmith: Claude Code, Cursor, and other agents, plus your scripts, apps, and CI
PhonesChatGPT app: iPhone and AndroidActivitySmith: iPhone and iPad
PriceChatGPT app: Comes with Codex access in your ChatGPT accountActivitySmith: 7-day free trial, then a paid plan

Checked against OpenAI's documentation in December 2026.

If nothing arrives

The hook does nothing
Codex skips a new or changed hook until you trust it. Run /hooks in the Codex CLI, review the hook, and trust it. The server value must also match the name in /mcp.
The notification arrives, but Codex says the hook failed
Add "from_hook": true to the hook's input. Codex then gets the empty reply it expects from a hook. Review and trust the changed hook again in /hooks.
MCP tool call requires approval, but approval policy is never
Codex cannot ask you when its approval policy is never, so it refuses the call. Allow the tool in ~/.codex/config.toml, as shown in step 3.
Codex says it has no ActivitySmith tools
Run codex mcp list. If activitysmith is missing, add it. If it is not signed in, run codex mcp login activitysmith. Then start a new session.
It says the notification was sent, but nothing arrives
Ask Codex to list your ActivitySmith devices. If the list is empty, install the iPhone app and sign in with the same account. If your iPhone is listed, check that notifications are allowed and that Focus is off.

Frequently asked questions

Does Codex have notifications built in?

Yes. The Codex CLI can show terminal notifications, and the ChatGPT desktop app can alert you when a turn completes. The ChatGPT phone app can notify you about tasks on a computer you connected to it. ActivitySmith adds notifications for every event you pick with a hook, approvals for the steps you choose, and progress on your Lock Screen.

Do I need an API key?

No. You approve a sign-in in your browser, and both Codex and the hooks use that connection. You need a key only for code that runs without Codex, such as a server or a CI job.

What is the difference between a hook and the notify setting?

The notify setting in config.toml runs a program on your computer when Codex completes a turn, so you write and keep a script. A hook can call the ActivitySmith tool directly, and it can also run when Codex is about to ask for your approval.

Does it work in the IDE extension and the ChatGPT desktop app?

Yes for the MCP server. OpenAI documents that the ChatGPT desktop app, the Codex CLI, and the IDE extension share the same MCP configuration, so you set it up once. We tested the hooks in the Codex CLI.

Can I approve Codex's own permission prompts from my iPhone?

Not with ActivitySmith. The hook tells you that a prompt is waiting, and you answer it in Codex. For steps you choose, such as production deploys, tell Codex to ask for your approval through ActivitySmith. You answer those on your iPhone.

What does ActivitySmith see?

Only what is in the notification, Live Activity, or approval request. It does not read your code or your conversation. The hook for finished tasks sends the text of Codex's last reply, and the hook for waiting sends the command. Leave them out if those can contain something private.

Walk away while Codex works

Start your 7-day free trial. No credit card required.