[Blog](/blog/)

# Letting an AI agent start its own setup, safely

An agent can ask to use your Sempera Phone line without ever seeing your password. How the code-and-link sign-in works, and what the agent ends up holding.

October 26, 2026 · 4 min read

Connecting an AI agent to a service usually means a person copying keys between windows. That is tedious, and worse, it trains people to paste secrets where they should not. There is a better pattern, familiar from signing a smart TV in to a streaming account: the device asks, you confirm on a device you trust, and the device receives its own limited access.

Sempera uses that pattern so an agent you built, or a script with no sign-in of its own, can ask to use your [Sempera Phone](/ai-phone-number/) line. Here is how it goes.

## The whole idea in a paragraph

The agent starts a request without any credential. Sempera hands it a private device code, plus a short user code and a link meant for you. The agent passes the link along. You open it, sign in to your Sempera account, see who is asking, choose what it may do and approve it for one workspace. The agent, which has been checking back at a polite pace, then receives one limited credential for the phone routes. Approving charges nothing and starts no plan.

## Step by step

### 1. The agent asks

The agent calls the onboarding start route, optionally with a name for itself such as "Home server helper". It needs no key for this. Sempera answers with:

- a device code the agent keeps to itself,
- a short user code for you,
- a link that already carries that code, and
- how often the agent may check back.

### 2. You get the link

The agent tells you something like "open this link to let me use your phone line". The link goes to Sempera's own site. Only approve a request you started yourself, just now. If a link like this arrives out of the blue, close it.

### 3. You decide

You sign in. The page shows the name the agent gave itself, with a plain warning that the name is whatever the requester typed. Then you choose what it may do:

- Read : see the number, the plan state, what is left and call results
- Call : place calls you approve
- Text : send texts you approve, and read text threads

By default it gets read access only; you turn on more if you want it. You pick the workspace and approve.

### 4. The agent collects

While you were deciding, the agent kept checking back at the interval it was given. A faster check is told to slow down. After you approve, the next check returns the credential, exactly once. If you never approve, the request expires after about fifteen minutes and nothing is granted.

## What the credential can and cannot do

It is narrow on purpose:

- It works on the phone routes only, not on anything else in your account.
- It expires after 90 days, and the agent then has to ask again.
- It holds only the permissions you ticked.
- It is listed under Settings, Connected clients, where you can revoke it. Revoking it ends that credential and changes nothing else.

It can never approve a call or a text. Every call and text still goes through a preview and your approval, or a standing approval you set for one number. It cannot buy a plan, subscribe, top up or change billing either.

## Why approving charges nothing

Letting an app in and agreeing to pay are separate decisions on purpose. You might connect an agent before you have a plan, to see what it would do. You might have a plan and connect three agents to it. Mixing the two makes both decisions worse, so the approval page says it plainly: approving charges nothing.

## Who uses this flow

Not every assistant needs it. ChatGPT, Claude and Codex sign in with a standard browser sign-in when you add Sempera's hosted MCP endpoint; see the [ChatGPT](/ai-phone-number/chatgpt/) and [Codex](/ai-phone-number/codex-mcp/) guides. Grok may do the same, or may need a REST credential, and Muse uses a REST credential you create. The code-and-link flow suits agents you build yourself, scripts and home automations. The [agents page](/ai-phone-number/agents/) covers that case, and the exact routes are in the [phone plan docs](https://docs.sempera.org/phone-plan).

None of the five named assistants has yet completed a verified connection from a live account, and each setup guide says so.

## Where it stands

The onboarding flow, the credential and the approval pages are built. Sempera Phone itself is coming soon: the plan is not open for purchase, and its price will be published when it opens. An agent can be approved, but there is no line to use until the plan opens and has a number and a pinned answering agent on it.

An agent should be able to ask for access without you handing it the keys to everything. A code, a link and a narrow credential you can revoke is what that looks like in practice.
