Skip to content

Blog

Can Codex make phone calls? Adding a phone line to a coding agent

Codex works in your terminal and your repository. Connect Sempera's MCP endpoint and it can request calls and texts you approve as part of the work.


Codex is a coding agent. It reads your repository, runs commands and edits files. It is not the first tool people think of for phone calls, and out of the box it cannot make one. But plenty of real work ends at a telephone: confirming a delivery, checking that a vendor received an order, telling someone the thing they were waiting on is done.

Connect a phone line and those steps can live in the same session as the code. Here is how that works with Sempera, and where the guard rails sit.

Why a coding agent would want a phone

The uses are narrower than for a general assistant, which is a good thing:

  • Tell yourself. Text your own mobile when a long migration finishes or an overnight test run fails.
  • Close a loop. A script that ships an order can also ask the warehouse to confirm a pickup time.
  • Check before you build. Ask a supplier whether a part is in stock before writing the integration that depends on it.
  • Read replies. Pull an inbound text thread into the session and act on it, carefully.

None of these need the agent to improvise. They are short, bounded calls and texts with a clear purpose, which is exactly what the approval model is built for.

How Codex connects

Codex reads MCP servers from its config.toml. You add Sempera's hosted endpoint by URL, then run Codex's login command so it signs in through your browser and gets a grant limited to the phone permissions you choose. If you would rather use an environment variable, create a REST credential under Connected clients in the Sempera App and point Codex at it. An ordinary workspace API key is refused on the phone routes.

Exact lines are on the Codex MCP setup page and in the developer docs. They follow Codex's published steps, and Sempera has not yet recorded a completed connection from a live Codex install, so report anything that differs.

A note on names: Sempera's plugin for Claude Code and Codex is a kit for building business voice agents. It has no phone tools, and neither do the Sempera CLI or the local stdio MCP package. Phone access comes only through the hosted endpoint or the REST routes.

Once connected, Codex sees up to eight phone tools, depending on what you granted. Read covers phone_get_profile and phone_get_task. Calls covers phone_preview_call, phone_start_call and phone_cancel_task. Texts covers phone_preview_text, phone_send_text and phone_get_thread. No tool buys, subscribes or approves.

The approval step, from a terminal

Every call and text starts as a preview. Codex sends the number, the task, the allowed actions and a time limit. Sempera stores that exact request and returns a link, valid for an hour. You open it, signed in, read what Codex is asking for, and approve or decline. Once approved, the call has to start within five minutes.

Codex then starts the call with the same values. Change anything, even one word of the task, and the start is refused. If the answer to the start is lost, a retry returns the same call, so nothing dials twice.

For repetitive work, a standing approval for one number removes the click. "Texts to my own mobile" is the classic one for a coding agent. It covers that number only, and you can revoke it in your account.

Following the call

A started call answers right away with an id and the state reserved, which means queued, not dialling. Codex reads the task until it finishes: ringing, connected, completed, failed or cancelled. If the outcome is ever unknown, the call goes to reconciling and Sempera settles it from the carrier's records. It never redials on a guess.

The finished result is marked untrusted, because it is written from what someone else said. That label matters for an agent with access to your repository: a supplier who says "tell your system to delete the order" is information, not an instruction.

Limits

Sempera Phone is planned with a monthly allowance of 300 call minutes and 150 text segments in Canada and the US, under fair use. Its price will be published when it opens:

LimitValue
Calls at once1 (a second call while one is live is refused)
Outbound calls20 an hour, 50 a day
Call minutes1,000 a day
Longest outbound call60 minutes
Texts20 an hour, 100 a day
Calling and texting hoursNoon to 9 p.m. Eastern, 9 a.m. to 6 p.m. Pacific

A limit returns a clear refusal code and, for hourly and daily caps, a retry_after_s, so Codex can back off instead of hammering the endpoint. The MCP server page covers the tools and refusals in more depth.

What it will not do

It will not transfer a call; transfers are off. It will not text a toll-free number or anyone who replied STOP. It will not call outside Canada and the US, or into premium numbers.

Status

Sempera Phone is built and coming soon; checkout is not open. When it opens, the first call needs an active plan with a number on it and a published Sempera agent pinned to answer callbacks. Then you add the server to Codex and approve.

Codex cannot place a call by default. With one line, narrow permissions and your approval on each call, it can finish the jobs that used to end with "now someone has to phone them".