Skip to content

v3.81.0 — pair your phone with ruflo

Choose a tag to compare

@ruvnet ruvnet released this 30 Nov 20:53
· 15 commits to main since this release
b610002

Your phone can now connect straight to ruflo. ruflo phone pairs the RuFlo or Orca phone app with this computer, end-to-end encrypted, over your Wi-Fi or Tailscale. You don't need the ruPro desktop app, a relay or an account. The phone host is an optional add-on, about 7 MB. It is installed only when you run ruflo phone setup, so ruflo itself stays the same size. Update with npx ruflo@latest.

Pair a phone from the command line

Before: ruflo had no phone command. Now: ruflo phone setup, daemon start and pair show a QR code for the phone.

ruflo phone setup                       # one time: installs @claude-flow/phone-host into ~/.ruflo/phone-host
ruflo phone daemon start --full         # runs the host in the background; leave out --full for a read-only phone
ruflo phone pair --full --name "My iPhone"

pair prints two QR codes, one for each app, with a code you can paste under them. The host shares the repository you run it from. Pass --project <dir> or --workspace <dir> to choose, and repeat them to share several.

RuFlo app:

  1. Put the phone on the same Tailscale tailnet as this computer, or the same Wi-Fi.
  2. Open the pairing screen and scan the QR code labelled RuFlo app.
  3. Open a workspace and tap + for a new tab.

Orca app:

  • Scan the QR code labelled Orca app. ruflo phone pair --app orca prints only that one.
  • Orca's scanner only accepts Orca links, so the RuFlo QR code won't work there.
  • Both apps accept the pasted code.
  • The host sends the phone its own screens, the RuFlo build, and Orca opens them because both use the same protocol.

ruPro desktop users:

  • Nothing changes. Keep pairing phones from the desktop app as you do now.
  • ruflo phone is for when you'd rather not run the desktop app, for example on a server or a laptop you reach over Tailscale.
  • A phone paired with one host is not paired with the other. Pair it again if you switch.

Other commands:

Command What it does
ruflo phone status Whether the add-on is installed and the host is running, with its address and what it shares.
ruflo phone daemon stop Stops the host and closes every terminal a phone opened.
ruflo phone devices Lists paired phones, their access, and when they were last seen.
ruflo phone revoke <deviceId> Unpairs a phone. Within 2 seconds it is disconnected and its terminals are closed.
ruflo phone start Runs the host in the foreground with a prompt instead.
ruflo phone interfaces Lists the private addresses the host can listen on.

ruflo init now explains this in its "Phone (RuFlo / Orca app)" section.

Agents can pair a phone without ever seeing the code

Before: no MCP tool could pair a phone. Now: phone_pair opens the QR code on this computer and returns only the device id, access and expiry.

Six new MCP tools do the same jobs:

  • phone_status
  • phone_setup
  • phone_daemon (start, stop or status)
  • phone_pair
  • phone_devices
  • phone_revoke

A pairing code is a password for your computer, so phone_pair never returns it:

  • It opens the QR code as a page on this computer's screen, or writes it to a file there (mode 0600).
  • The agent gets back only the device id, access level, expiry and where the code was shown.
  • The page is deleted when the pairing expires, when the phone is revoked, or when the host stops.

From the terminal the same applies: the code prints only to an interactive terminal. When a script or agent runs ruflo phone pair, the code goes to the page instead.

An agent can pair a full-access phone when the host was started with --full. Start it with --full only while you want that, and check ruflo phone devices for phones you don't recognise.

A full-access phone opens terminals and agents on this computer

Before: no terminals or agents from the phone through ruflo. Now: a full-access phone opens terminal, Claude, Codex and Copilot tabs, and revoking it closes them.

With --full on both the host and the pairing, the phone's + menu opens:

  • a terminal tab in a shared workspace;
  • agent tabs for the coding agents installed here: Claude Code, Codex, Copilot, Gemini and others found on your PATH.

What that means:

  • Each tab is a real terminal on this computer, running as you. A workspace is only where the shell starts, not a sandbox.
  • Agent commands come from a fixed table on the computer. The phone picks an agent; it can't send its own command line.
  • Every terminal is logged when it starts and ends, in the host's daemon.log.
  • Revoking the phone closes its terminals.
  • A read-only phone can only read. It sees the workspaces you shared and their GitHub remote, and changes nothing.

Terminals need the optional @lydell/node-pty package, which ruflo phone setup installs where a prebuilt version exists. Without it, --full stops with a clear message, and a read-only phone still works.

Chat view: in this release, agent tabs work in the phone app's terminal view. The chat view for Claude and Codex tabs is coming in @claude-flow/phone-host 1.1.0. ruflo phone setup will pick it up.

Security

  • The host listens only on a private address of this computer: Tailscale, LAN or loopback. It never listens on a public address or on all interfaces.
  • It uses Orca's mobile E2EE v2: X25519 key exchange and XSalsa20-Poly1305. The phone pins the host's key from the pairing code.
  • Each phone has its own token. Only the token's hash is stored, and an unused pairing expires after 10 minutes.
  • Its tests drive the host with Orca's own phone-side encryption client, with real terminals and a real background host.

The add-on is published as @claude-flow/phone-host 1.0.0. Without ruflo, run npx @claude-flow/phone-host daemon start, then npx @claude-flow/phone-host pair. The README has the details: https://github.com/ruvnet/ruflo/tree/main/phone-host.


Published from CI with SLSA provenance for @claude-flow/cli, claude-flow and ruflo.