Skip to content

Manage paired devices ​

Use Settings → Devices to inspect, rename, limit, or revoke a phone, tablet, or agent hub that already has access. Start with a full-access device, such as the desktop app. A Limited phone can rename or remove only itself.

For a new connection, choose phone or tablet setup or pair a remote fleet member. This guide owns reachability controls, pairing recovery, and the existing-device lifecycle.

Before you pair: make this agent reachable ​

A phone or a hub on another machine can't reach an agent bound to loopback (127.0.0.1), which is the default for a desktop or local run. Open Settings ▸ Devices ▸ Add a device (or Pair an agent). If the agent is loopback-bound, the reachability notice offers two fixes.

If this machine is on Tailscale, use HTTPS via Tailscale. Select Use HTTPS via Tailscale. The agent stays on localhost, and Tailscale serves it at https://<machine>.<tailnet>.ts.net. No restart is needed. The phone needs the Tailscale app, signed in to the same tailnet. A token is required. For setup, including turning on HTTPS certificates for your tailnet, see HTTPS via Tailscale.

Otherwise, pick an address. The notice lists this machine's Tailnet and Wi-Fi addresses, tailnet first. A tailnet address works from any network, but only for devices on your tailnet that its access rules (ACLs) allow. A Wi-Fi address works only on that Wi-Fi, and anything else on the network can reach it too.

Picking an address does three things:

  1. It makes sure the agent has a token. A non-loopback bind with no token refuses to start, so if this agent has none, one is generated, saved as its auth.token, and shown once. Save it: the desktop app after the restart, the CLI and any other browser will ask for it. (If the agent already has a token, nothing changes.)

  2. It sets the bind interface (network.bind) to the address you picked. The agent listens on that address and on 127.0.0.1, so the desktop app keeps working (it reaches its own server over loopback). Nothing else is exposed: a tailnet pick isn't reachable from your Wi-Fi.

    • If the address is gone at startup, the agent serves 127.0.0.1 only and logs a warning instead of failing to start. This happens when the Wi-Fi lease changed, or when Tailscale wasn't connected yet. Pick the address again, or use Tailscale HTTPS, which doesn't depend on an IP.
    • An agent older than this release listens on one address only. Binding one address would drop loopback there, so the panel writes 0.0.0.0 (every interface) for it.
  3. It offers Restart now. The bind only takes effect at startup. Restart now restarts the server with the same command line (POST /api/restart). The console waits for it to come back and reopens the dialog. The panel shows instructions instead of the button in these cases:

    Launched asWhat to do
    Desktop app, protoagent serve, or python -m serverRestart now works.
    With --host on the command line--host overrides network.bind, and a restart keeps it. Start the agent again without --host, or with the address you want.
    In a containerPhones reach the ports the container publishes, not the bind inside it. Publish the port in your compose file.
    A fleet member's Devices, opened from the hubRestart that member from its own console or the Fleet panel.

To undo it, set Bind interface back to 127.0.0.1 and restart. It is one of the box-runtime knobs on Settings ▸ Fleet (the command palette finds it under network); in YAML it is network.bind in the host config. The agent is loopback-only again. The token stays; clear or rotate it under Settings ▸ Operator & access if you no longer want one. Revoke any paired devices you don't need first, since they stop being reachable anyway.

On a headless server, skip the panel and start it reachable, with a token:

bash
PROTOAGENT_PAIR_TOKEN=$(openssl rand -hex 24)
printf '%s\n' "$PROTOAGENT_PAIR_TOKEN"
A2A_AUTH_TOKEN="$PROTOAGENT_PAIR_TOKEN" protoagent serve --host 100.64.0.5 --port 7870

Use the address you want to serve (it also listens on 127.0.0.1), or 0.0.0.0 for every interface. Or keep the default loopback bind and put tailscale serve in front of it. Keep the displayed token for any client that needs the shared operator login. In a source checkout, replace protoagent serve with uv run python -m server.

Never turn on PROTOAGENT_ALLOW_OPEN=1 to make pairing work. Pairing adds clients to a secured instance; it is not a way to open one up.

Recover a pairing attempt ​

For QR and typed-code steps, follow Pair the phone. A code lasts five minutes and works once; QR and typing spend the same code.

If the code doesn't work ​

The agent answers every bad code the same way, on purpose: it never tells a guesser which codes exist. The phone shows That code didn't work and names the possible causes.

CauseWhat happenedWhat to do
MistypedA character is wrong. The Pair this device button stays disabled until all ten characters are entered, so a short code never spends a try.Check it against the agent's screen and try again.
ExpiredCodes last five minutes. Restarting the agent, or closing the Add a device card, also cancels the code.Make a new code.
Already usedEach code works once, by QR or by typing.Make a new code if this phone isn't in the Devices list.

Wrong guesses never cancel a code. A code stays valid until it expires, is used, or you close the card, however many wrong codes anyone sends.

Too many attempts ​

If the phone shows Too many attempts — try again in N s, the agent has paused pairing attempts for a while. It did not check your code, so the code still works once the wait is over (as long as it hasn't expired). This happens when:

  • This device sent five wrong codes in five minutes. It gets one more try each minute, and all five back after five minutes.
  • Thirty wrong codes arrived from anywhere in one minute. That usually means someone is guessing. Pairing resumes within a couple of seconds once the guessing stops.

Only wrong codes count. A code that works never uses up a try. The same limits apply to agent pairing codes, and a hub reports them as "try the same code again in N s". See Security & the trust model for why the limits look like this.

If every device behind a reverse proxy hits the limit together, the agent sees them all as the proxy. Set network.trusted_proxies to the proxy's address.

If the phone says Couldn't reach this agent, the problem is the network, not the code. See Troubleshooting.

Pair a phone from a headless box ​

A server or container with no screen can still pair a phone. Run this on the machine where the agent is running:

bash
protoagent pair --device

It finds the running instance the same way protoagent pair does, starts a phone pairing, and prints a QR in the terminal, the code, and the console URL for each address the phone can use, best first (tailnet HTTPS, your public URL when set, the tailnet name, a tailnet IP, then Wi-Fi), with what each one needs. The QR uses the first one. Scan the QR, or open a URL on the phone and type the code as described above. --no-qr skips the drawing, --light draws it for a light-background terminal, and --json prints the raw response. See the CLI reference for example output.

The agent must serve the console (the default --ui console) and be reachable with a token, as in Before you pair. On a --ui none agent the command says to restart it with --ui console and exits 1, without making a code. Pairing another agent doesn't need the console.

To install the console on the phone's home screen, and for the Tailscale and public URL setup, see Use protoAgent on your phone or tablet.

Manage devices ​

Settings ▸ Devices lists every phone, tablet and hub paired to this agent. Each row shows the name, a Device or Agent badge, and when it was last used.

  • active means the device made a request in the last few minutes. The agent records last use at most once every five minutes, to avoid a disk write on every request, so the badge covers that whole window and the row reads in use in the last few minutes rather than a misleading exact time.
  • This device marks the row for the browser you're using, when that browser was paired. A browser signed in with the operator token isn't a paired device, so no row is marked.

Full access and Limited ​

Phone and tablet rows also show what the device may change (ADR 0121):

  • Limited: every phone or tablet you pair now, over Wi-Fi, a tailnet or anything else. It can use the whole console (chat, goals, knowledge, plugins and most settings) and rename or remove itself. It can't pair devices or agents, change or remove another device, install or change plugins or MCP servers, use the secrets manager or provider sign-ins, restart the agent, or change credential-plane settings such as the auth token and network.bind. Those attempts answer This device can't change pairing or credentials — use a full-access device.
  • Full access: a phone paired before this change. It can do everything the desktop can.

Agent hubs are always full access, so their rows carry no badge.

To change one, open Settings ▸ Devices on a full-access device (the desktop app, or a browser signed in with the auth token):

  • Promote on a Limited row gives that phone full access.
  • Limit on a Full access row takes it away.

A limited phone sees neither action, and the server refuses a phone that tries to promote itself. Limited is not a sandbox: a chat turn from a limited phone still runs with the agent's tools. See Device tokens.

Rename a device ​

Select the pencil icon on its row, type a new name and press Enter (or Save). Escape cancels. Names are 1 to 64 characters on one line. Control and invisible formatting characters are refused, so a name can't be made to display as something else. Renaming changes only the label: the device stays signed in.

A paired phone can rename its own row from its own Settings, which is the quickest way to replace a guessed name like iPhone.

Revoke ​

On the agent that was paired to: Settings ▸ Devices, then the trash icon on the phone's or hub's row. The token stops working at once, and nothing else is signed out: the shared bearer, the desktop app and every other device keep working. Anything the phone has open, such as the live event stream or a running chat, closes within about 15 seconds.

  • A revoked phone is asked for a token again on its next request.
  • A revoked hub sees its next proxied call to that remote answer 401, and its fleet row turns to token rejected — re-pair within about 30 seconds (the next token check). Get a new code on the remote and Re-pair from the hub's row.
  • Revoking this device (the row marked This device) asks first, in the panel: Remove and sign out or Keep. Removing it forgets the device token in this browser. If the browser also holds the operator token, you stay signed in with that; otherwise the console asks you to pair again or enter a token.

Removing the remote from the hub's fleet only unregisters it on the hub; revoke it on the remote too if the hub shouldn't hold a working token.

The agent can also revoke a phone by itself. Its token rotates every week (below), and if an old copy of the token is used after the phone has switched to the new one, someone else is holding a copy. The agent removes the device and writes the event to its audit log. The phone is asked for a token on its next request; pair it again.

Expired ​

A Limited phone that goes unused for 30 days stops working: its row shows Expired, and the phone is asked for a token on its next request. Change the number of days, or set it to 0 to never expire, with devices.idle_ttl_days. Full-access devices and agent hubs never expire. A Limited row that hasn't expired says how long it has left, for example expires in 30 days if unused.

An expired row stays in the list until you remove it, so you can see which phone it was. To use that phone again, remove its row with the trash icon, then pair it again.

Push status on each row ​

Each phone or tablet row has one line that says where its alerts stand. An agent hub has no such line: it isn't a browser. To turn alerts on for a device, use the device itself (Turn on alerts).

The row saysWhat it means
Push offThe device hasn't turned alerts on, or turned them off.
Push on · Apple (or Google, Mozilla)Alerts are on through that push service. No alert has been sent yet.
Push on · Apple accepted the last alert at <time>The push service took the last alert.
Push on · Apple didn't accept the last alertThe last alert failed. The next line says why.
Push on · last alert sent at <time>An alert was sent and the push service hasn't answered yet.
Renew neededThe agent dropped this device's alerts. The next line says why (Renew needed).
Not reported yetThe agent sent no push status for this row. An agent from before push status does this.

Accepted means the push service took the alert. It doesn't mean you saw it. The phone can be off, out of signal or in a focus mode.

When the push service didn't accept an alert, the row gives one of these reasons:

  • The push service took too long to answer.
  • The alert couldn't reach the push service. Check this machine's internet connection.
  • The push service was busy or had a problem.
  • The push service refused this alert. It won't be sent again.
  • protoAgent stopped trying before the push service took the alert.
  • Error code: <code>, for anything else.

A failed alert doesn't lose the decision or update behind it. It is still in the console.

Renew needed ​

The agent drops a device's alerts in three cases. The device's row shows Renew needed, and the device's own Notifications on this device card shows Renew on this device, each with the reason:

Reason shownWhat happened
This agent changed its notification key.The key was rotated and this device didn't renew before the old version retired.
This phone moved to a new address, which needs its own notifications.You used Move this phone to…. A browser's alerts belong to one address.
This device went unused for too long.The device idled past its limit (Expired).

To fix it, open the console on that device, go to Settings ▸ Devices and select Renew notifications. Nobody can renew a device from another device.

Notification key ​

The agent signs every alert with its own notification key, so a push service knows the alert came from this agent. The agent creates the key when a device first turns on notifications.

A full-access sign-in sees a Notification key card in Settings ▸ Devices. It shows which key version is active, when each older version retires and how many devices still use it. It shows versions and dates only, never the key. A Limited device doesn't get the card.

Rotate the key if you think it leaked, for example from a copied backup:

  1. Select Rotate key….
  2. Read the confirmation. It says how long devices have to renew (30 days).
  3. Select Rotate key. Cancel or Esc backs out and changes nothing.

After a rotation, each device renews on its own the next time you open the console on it. The old version keeps working until its retirement date. A device that doesn't open the console by then stops getting alerts and shows Renew needed.

Weekly token rotation ​

A paired phone swaps its token for a new one about once a week, on its own, while you use it. Nothing changes on screen and you don't need to do anything. If the browser can't store the new token (its storage is full, for example), the phone keeps using the old one, which keeps working. See Device token lifetime.

Where the phone keeps its token ​

A paired browser stores its device token in its own localStorage key, protoagent.deviceToken, next to protoagent.deviceId. The operator token you type into Authentication required stays in protoagent.authToken. Pairing a browser that already holds the operator token no longer overwrites it. When both are present, the console sends the device token. Entering a token in Authentication required replaces a device token that stopped working.

Phones paired before this change kept their device token in protoagent.authToken. The console moves it to the new key the next time it loads, without signing the phone out.

Pair a remote fleet member covers agent pairing, transport permissions, authentication status, and remote delegation.

Part of the protoLabs autonomous development studio.