Short answer: connect Codex to Dial (getdial.ai). Dial gives AI agents real phone numbers: SMS, iMessage, WhatsApp, AI voice calls, and inbound events. Once it's connected, you ask Codex in plain language, "text the client that the deploy is done", and it sends from its own number.
There are two ways to set it up. Both end with the same account and the same number.
The fastest way: one sentence
Tell Codex:
"Follow https://getdial.ai/skills.md to install and onboard the dial CLI."
That page is written for agents. Codex installs the CLI and starts your signup. It asks you for two things along the way: the code Dial emails you, and a phone number of yours that can receive a text, to confirm it's you.
Option 1: The Dial CLI skill (recommended)
Install the CLI (needs Node 22+):
curl -fsSL https://getdial.ai/install | bashSign up, and add --agent codex so the Dial skill is copied into Codex's config:
dial auth login [email protected]
dial auth verify-otp --code <code> --agent codexNew accounts also confirm a phone number of yours:
dial auth register-number +14155550123
dial auth verify-otp --number --code <code>The skill is a single markdown file that describes every dial command. Codex loads it when a Dial task comes up and runs the right command itself. Re-run the --agent codex command after a CLI upgrade to refresh the skill.
Option 2: Dial's MCP server
If you'd rather Codex call Dial's tools directly:
Local server (reuses your saved CLI key):
codex mcp add dial -- npx -y @getdial/cli mcpOr in ~/.codex/config.toml:
[mcp_servers.dial]
command = "npx"
args = ["-y", "@getdial/cli", "mcp"]Remote server (sign in through the browser, no local CLI needed):
# ~/.codex/config.toml
[mcp_servers.dial]
url = "https://getdial.ai/mcp"codex mcp add only handles local servers, so the remote one goes in the config file.
Then ask Codex
"Send an SMS to +1 415 555 0123: the deploy is done, release notes are in your inbox."
"Call +1 415 555 0123 and confirm the 3pm demo for tomorrow. Tell me what they say."
"Text me when the test suite finishes."
With the CLI skill, Codex picks the right dial command and runs it. With MCP, it calls tools like send_message, place_call and wait_for_event.
Let incoming texts wake Codex (optional)
Codex can react to texts even when you aren't in a session. Install Dial's listen service:
dial listen installThen point it at a small handler script that starts a fresh Codex run for each event. The Codex page in Dial's docs has a ready-made handler that passes the sender and message text to codex exec.
Good to know
FAQ
Can Codex send text messages?
Yes, once it's connected to Dial. Install the Dial CLI skill with --agent codex, or add Dial's MCP server, and Codex can send SMS and iMessage from its own number.
Can Codex make phone calls?
Yes. Ask it to call someone and say what the call is for. Dial's AI voice runs the conversation, and the transcript comes back when the call ends.
CLI skill or MCP: which should I use?
The docs recommend the CLI skill. Use MCP if you want Codex to call Dial's tools directly, or the remote server if you don't want to install the CLI.
Is it my phone number?
No. Codex gets its own Dial number. People see that number and can reply to it.
Can Codex receive replies?
Yes. Ask it to wait for a reply, or set up the listen service so each incoming text starts a new Codex run.
Does this work with other coding agents?
Yes. The same --agent flag works for claude-code, cursor, opencode, pi, openclaw, nanoclaw and hermes.
Docs: Dial for Codex · MCP