> Index of all Nori docs pages for agents: https://docs.noriagentic.com/llms.txt · Ask a question: https://noriagentic.com/ask

# Remote control

**Stable only**

On the `next` release channel, `--remote`, `--remote-allow-nonloopback`, and `/remote-control` are removed. Connect ACP clients to [nori host](https://docs.noriagentic.com/cli/guides/nori-host/) instead: its `/acp` endpoint needs a token and serves every session.

Remote control lets another ACP client drive the session that is running in your terminal. Nori serves it at `ws://<address>/acp` over the WebSocket transport from the upstream [ACP remote transport RFD](https://agentclientprotocol.com/rfds/streamable-http-websocket-transport). The TUI stays attached: whatever the remote client sends shows up on screen too.

**No authentication, no TLS**

The endpoint has no authentication and serves plain `ws://`. Anyone who can reach the address can send prompts and answer permission requests in your session. Loopback is the default. Expose another address only on a network you trust, such as your own tailnet.

## Turn it on

At launch:

```sh
nori --remote 7000                                   # loopback only
nori --remote 100.64.0.5:7000 --remote-allow-nonloopback
```

A bare port binds loopback. Any other address needs `--remote-allow-nonloopback`, and then Nori listens on loopback and that exact address on the same port.

In a running session:

| Command                                   | What it does                                                                                            |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| `/remote-control` or `/remote-control on` | listen on loopback, on a free port                                                                      |
| `/remote-control on tailnet`              | listen on loopback and this machine’s Tailscale IPv4 address; needs `tailscale` running                 |
| `/remote-control on IP:PORT`              | listen on loopback and that exact address; a non-loopback address asks you to confirm first, every time |
| `/remote-control status`                  | show the reachable `ws://.../acp` URLs and whether a client is connected                                |
| `/remote-control off`                     | disconnect the client and stop listening; the session keeps running                                     |

Wildcard addresses such as `0.0.0.0` are refused. `/remote-control` works while the agent is busy and never reaches the agent as a prompt. Nori does not change your Tailscale Serve or Funnel settings.

## Connect a client

Any client that speaks the ACP WebSocket transport can connect to the URL that `/remote-control status` prints. For a stdio-only ACP client, such as an editor, bridge it with [Handroll](https://docs.noriagentic.com/sessions/handroll/usage/):

```sh
nori-handroll acp --endpoint ws://127.0.0.1:7000/acp
```

## How it behaves

- One remote client at a time. A new connection replaces the old one.
- Closing the connection or losing the network only detaches the client. The session, the agent, and the TUI keep running. Reconnect and load the session to get its history back.
- A remote prompt sent while any turn is running is refused as busy. It is not queued.
- Switching agents with `/agent` disconnects the remote client. It reconnects to the new session.
- Prompts from either side appear in both the TUI and the remote client.

## Common questions

**Is the address saved?** No. Remote control lasts for this run, and the confirmation for a non-loopback address is never remembered.

**Can I use it from my phone or another laptop?** Yes, over a network you trust: run `/remote-control on tailnet` and connect to the tailnet URL it prints.

**Does stopping remote control stop the agent?** No. `/remote-control off` only closes the listener and the client connection.

**Which session does it serve with several sessions open?** With `multi_session` on, a new connection serves the session on screen. A client that is already connected keeps its session until it reconnects. See [multiple sessions](https://docs.noriagentic.com/cli/guides/multi-session/).
