CallMeMCP/call-me

Codex remote control from your phone, and a call when it needs you

·

Give Codex your phone number. With the number you get from callmemcp.com, Codex can ring you when it needs a yes or no, and what you say goes back to it as text.

Before the setup, the direct answer. Codex remote control is built in. Since May 14, 2026, Codex is in the ChatGPT mobile app (OpenAI), on iPhone and Android today, and from there you can follow a session on your computer, approve its commands and give it new instructions. The catch is the host: it has to be the ChatGPT desktop app on a Mac or Windows PC that stays awake. If your Codex is a CLI on Linux or on a server, or you are away from the screen when it asks, read on.

Does Codex allow remote control?

Yes, through the ChatGPT app, which is what Codex mobile means today. On the computer, open the ChatGPT desktop app, go to Settings > Connections > Control this Mac or PC and pick Set up. Scan the QR code with your phone, confirm the same account, and the computer shows up under Codex in the ChatGPT app. From there you can start chats in its projects, steer one that's running, approve commands, read diffs and test output, and get notified "when ChatGPT completes a task or needs your attention" (remote connections docs).

If you have a Mac or PC with the desktop app, set this up first. It's OpenAI's own, and it's enough to follow along and tap Approve.

Can I use Codex remote control from the Codex CLI or a Linux box?

Not officially. The docs spell out the host: "the ChatGPT desktop app on macOS and Windows", running on a computer that's "awake, online, and signed in", and "you can't set it up from the Codex CLI or IDE extension". If that computer sleeps or drops off the network, remote access stops until it's back. The desktop app can open projects on an SSH host and your phone works through it, but then that Mac or PC is the one that has to stay up.

The CLI does ship an experimental codex remote-control command, and Codex 0.171.0 (November 20, 2026) added /rc to show a pairing code from the terminal UI (release notes). In the open request for official Linux hosts (#38115), people report it connecting from Ubuntu, and one of them found the phone losing the later part of long threads. Headless Linux hosts are another open request, with 68 thumbs up (#23200). On a Linux server or an SSH box I wouldn't build on it yet.

Does Codex have notifications?

Yes, in three places. The terminal UI can alert you through tui.notifications, for a finished turn and for an approval request, as a desktop notification or a terminal bell. The desktop app has its own switches for finished turns, permission requests and questions (notifications docs). And with remote control, the ChatGPT app pushes to your phone, though iPhone pushes that never arrive have been an open bug since July (#32908).

All of these are banners. A banner waits until you look at the phone, and in the car or with the phone in a pocket that can take an hour.

How do I make Codex notify me when it's done?

With notify in ~/.codex/config.toml. Codex runs your program with one JSON argument when a turn finishes, and the last thing it said is in last-assistant-message (config docs). The docs say the only event today is agent-turn-complete, so notify never fires while Codex waits for an approval. The request to change that is still open (#19921).

This script texts that last message to your /call-me number, but only while a marker file says you're away. Run touch ~/.callme-away when you leave and rm ~/.callme-away when you're back. Save it as ~/.codex/notify-callme.sh:

#!/bin/bash
# Codex runs this with one JSON argument each time a turn finishes.
[ -f ~/.callme-away ] || exit 0
to=5550001234   # the demo line; put your own 10 digits here
jq -c --arg to "$to" '{to: $to, from: "Codex",
  body: ("Codex: " + ((."last-assistant-message" // "turn finished")[0:1900]))}' <<<"${1}" |
  curl -sS --max-time 10 https://callmemcp.com/text -H 'content-type: application/json' -d @- >/dev/null

Then add one line near the top of config.toml, above any [section] header, or TOML reads it as part of that section. Use the full path:

notify = ["bash", "/home/you/.codex/notify-callme.sh"]

5550001234 is the /call-me demo line, which answers by itself, so you can try all of this before you put your own number in. If a banner is all you want, the same script can post to ntfy or Pushover instead.

Can Codex call my phone?

Yes, with /call-me. The app (iPhone or Android) gives you a 10-digit number, and Codex calls it like a person would: it rings on the lock screen, in your AirPods or through CarPlay, you answer out loud, and your words come back to Codex as text. Add the server:

codex mcp add call-me --url https://callmemcp.com/mcp

That writes a [mcp_servers.call-me] entry to ~/.codex/config.toml. Add one line to it:

[mcp_servers.call-me]
url = "https://callmemcp.com/mcp"
default_tools_approval_mode = "approve"

Without that line, Codex wanted my approval before it would use the call-me tools, and a call that first waits for you at the keyboard reaches nobody. Then tell Codex your number once, or put it in ~/.codex/AGENTS.md: "My /call-me number is 555 123 4567. If you need a decision from me and I'm not answering here, call me with /call-me." The ChatGPT desktop app, the CLI and the IDE extension share this MCP setup (MCP docs), so a Mac you drive from the ChatGPT app can ring you too. To keep the number out of AGENTS.md, the GitHub README has a local server that reads it from a file on your machine.

Can I approve Codex commands from my phone?

Yes, by saying yes. Codex has had hooks since March 2026 (#2109), and a PermissionRequest hook runs when Codex is about to ask for approval. It can allow the request, deny it, or stay out of it and leave the normal prompt (hooks docs). This one rings you while you're away, reads out the command and turns your answer into the decision. Save it as ~/.codex/hooks/approve-by-phone.sh:

#!/bin/bash
# PermissionRequest hook: Codex sends the approval request as JSON on stdin.
[ -f ~/.callme-away ] || exit 0    # at the desk: the normal prompt
to=5550001234                      # the demo line; put your own 10 digits here
q=$(jq -r '"Codex wants to run " + ((.tool_input.command // .tool_name) | tostring)[0:300] + ". Yes or no?"')
r=$(jq -nc --arg to "$to" --arg q "$q" '{to: $to, from: "Codex", text: $q, timeout_s: 120}' |
  curl -sS --max-time 150 https://callmemcp.com/ring -H 'content-type: application/json' -d @-)
id=$(jq -r '.call_id // empty' <<<"$r" 2>/dev/null)
[ -n "$id" ] && curl -sS --max-time 10 "https://callmemcp.com/aiphone/calls/$id/hangup" \
  -H 'content-type: application/json' -d "$(jq -c '{session_token, text: "Okay."}' <<<"$r")" >/dev/null
case "$(jq -r '.transcript // ""' <<<"$r" 2>/dev/null | tr '[:upper:]' '[:lower:]')" in
  yes*|yeah*|yep*|sure*|ok*|"go ahead"*)
    echo '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"allow"}}}' ;;
  no|no[!a-z]*|nope*|stop*|"don't"*)
    echo '{"hookSpecificOutput":{"hookEventName":"PermissionRequest","decision":{"behavior":"deny","message":"Declined on the phone."}}}' ;;
esac                               # anything else: the normal prompt

A /call-me call stays open after your answer so an agent can keep talking, which is why the script hangs up with one last word. A missed call, or an answer that isn't a clear yes or no, decides nothing, and Codex shows its normal prompt. One caveat from the tracker: with auto-review on, this hook also fires for requests the reviewer would have handled, so you can get calls you didn't need (#28833).

Can Codex keep working on what I say?

Yes, with a Stop hook. Stop runs when a turn ends, and if the hook answers {"decision": "block", "reason": "..."}, Codex doesn't stop: it takes the reason as a new prompt and carries on. So this script calls you with what Codex just said plus "Anything else?" and hands your answer back as the next prompt. Say no or that's all, or miss the call, and the turn ends. When Codex finishes what you asked for on the phone, it texts you the result instead of calling again, so it can't loop. Save it as ~/.codex/hooks/call-when-done.sh:

#!/bin/bash
# Stop hook: rings with Codex's last message; what you say back becomes its next prompt.
in=$(cat)
[ -f ~/.callme-away ] || { echo '{}'; exit 0; }
to=5550001234                      # the demo line; put your own 10 digits here
msg=$(jq -r '.last_assistant_message // "Codex is done."' <<<"$in")
if [ "$(jq -r .stop_hook_active <<<"$in")" = true ]; then   # it already took one answer: text this one
  jq -nc --arg to "$to" --arg b "$msg" '{to: $to, from: "Codex", body: $b[0:1900]}' |
    curl -sS --max-time 10 https://callmemcp.com/text -H 'content-type: application/json' -d @- >/dev/null
  echo '{}'; exit 0
fi
r=$(jq -nc --arg to "$to" --arg t "$msg" '{to: $to, from: "Codex", text: ($t[0:1800] + " Anything else?"), timeout_s: 120}' |
  curl -sS --max-time 150 https://callmemcp.com/ring -H 'content-type: application/json' -d @-)
id=$(jq -r '.call_id // empty' <<<"$r" 2>/dev/null)
[ -n "$id" ] && curl -sS --max-time 10 "https://callmemcp.com/aiphone/calls/$id/hangup" \
  -H 'content-type: application/json' -d "$(jq -c '{session_token, text: "Got it."}' <<<"$r")" >/dev/null
a=$(jq -r '.transcript // ""' <<<"$r" 2>/dev/null)
case "$(tr '[:upper:]' '[:lower:]' <<<"$a")" in
  ""|no|no[!a-z]*|nope*|nothing*|"that's all"*|thats*|stop*|bye*) echo '{}' ;;
  *) jq -nc --arg a "$a" '{decision: "block", reason: ("My answer on the phone: " + $a)}' ;;
esac

Use this or the notify script, not both, or one turn gets you a call and a text.

Register both hooks at the end of config.toml. The matcher covers shell commands; other approvals still ask on your screen:

[[hooks.PermissionRequest]]
matcher = "Bash"
[[hooks.PermissionRequest.hooks]]
type = "command"
command = "bash ~/.codex/hooks/approve-by-phone.sh"
timeout = 180
[[hooks.Stop]]
[[hooks.Stop.hooks]]
type = "command"
command = "bash ~/.codex/hooks/call-when-done.sh"
timeout = 180

Codex runs a new hook only after you trust it, so open /hooks in the CLI once and trust both. The scripts need jq and curl. I ran all three in Codex CLI 0.169.0 before writing this: a yes ran the command, a no blocked it with "Declined on the phone", and the answer from a call came back as Codex's next prompt.

Which one should you use?

If Codex runs in the desktop app on a Mac or PC, pair the ChatGPT app first. For a ping when a turn is done, notify. When Codex needs a decision and I'm away from the screen, I want a call: it rings in my AirPods or the car, I answer out loud, and Codex carries on. That works the same from the CLI on a Linux server, and the same number works for Claude Code (Remote Control from your phone, notifications). What /call-me is covers the rest, and you can hear a call in the live demo.

All posts

Give your AI a number to call you

Get the app, give your agent the number, and it can ring you or text you.