Skip to content

Remote control

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. The TUI stays attached: whatever the remote client sends shows up on screen too.

At launch:

Terminal window
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.

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:

Terminal window
nori-handroll acp --endpoint ws://127.0.0.1:7000/acp
  • 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.

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.

this page as markdown: /cli/guides/remote-control.md· index for agents: /llms.txt