Skip to content
flow

Sync & devicesSync and devices overview

Sync and devices overview

How Flow links your own devices. Pair Macs into a Puddle, share live terminals, sync sessions and pages, reach SSH hosts, and use the iPhone app.

View as Markdown
On this page

Flow can reach other machines in two different ways. Puddles links your own devices that run Flow: you pair them once, then each one can list, open and start the other's terminal sessions, and the state of your sessions, Trash, Schedules and notifications follows you between them. Remote hosts are a different feature: an ordinary group whose panes run on a server over ssh, so the other machine doesn't need Flow at all.

This page explains how the pieces fit together and where each one is documented.

The pieces at a glance

PieceWhat it doesNeeds on the other machinePage
Puddles and flow-remotePairs your devices and carries an encrypted link between them. The Puddle page (Tools › Puddle) is its face in the app; flow-remote is the daemon and CLI behind itFlow, with Puddles onPair devices with flow-remote
Device spaces and mirror groupsShows a paired Mac's sessions in your sidebar and opens them live in local panesA grant from that MacUse another Mac's sessions
Sync (sink)Keeps a live copy of each paired device's sessions, tabs, labels, Trash, Schedules, notifications and tools, and sends your closes, pins and renames back to the device that owns themFlow, with sync onHow Flow syncs data
Remote hostsRuns a group's panes on a server over ssh (an ~/.ssh/config alias, user@host or a Tailscale name)ssh, optionally flow-session or tmuxRemote hosts
Flow for iPhoneYour desktop's sessions on a phone, paired like any other deviceFlow on the Mac, with Puddles onFlow for iPhone

Turn on Puddles

Puddles is an experiment, off by default.

  1. Open Settings (⌘,) and go to Experiments.
  2. Switch on Puddles (setting key features.remote, bool, default false, marked BETA).
  3. A Puddle row appears in the Tools band. Open it, or press ⌃⌥⌘2 (Go to Puddle).

While Puddles is on, Flow starts the flow-remote daemon in the background and keeps it running. When you switch Puddles off, Flow stops the daemon it started. The daemon keeps running when you quit Flow, so your other devices can still reach your sessions.

What a paired device may do

Pairing is mutual: both devices store each other. What each device may do on the other is decided separately on each side, per device.

PermissionOn the Puddle pageGranted byWhat the other device can do
List(always, while paired)PairingSee the names and states of your terminal sessions, refreshed every 15 seconds
OpenCan open my sessionsYou, per deviceWatch any shareable session and type into it. This is full shell access on your Mac
CreateCan create sessionsYou, per deviceHave Flow on your Mac start new sessions

Open and Create are off for every new pairing, and they stay as they were if you pair the same device again. Most of what syncs needs Open; see Security and trust before you grant it.

What syncs between devices

With Puddles on and Sync sessions with your devices on (puddle.sync, bool, default true), each Mac publishes its own state and mirrors the state of every paired Mac that lets it open sessions:

  • your sessions (sidebar groups), their tabs, labels, icons, agents, unread dots, folders, branches and pull requests
  • the Trash page's worktrees and the Schedules page's schedules and recent runs
  • notifications that follow you, and which Mac you are using right now
  • your New session picker's favorite and recent folders
  • your CLI tool registry; the flow tools in ~/.flow/tools are offered to your other Macs, which install one only when you confirm

Closing, renaming or pinning a session on another device sends the change to that device, which applies it. With sync off, other devices fall back to the 15-second session listing. The details are on How Flow syncs data, and every synced table is listed in Built-in synced tables.

How the devices connect

Every device is a peer: there is no server and no account. The daemon listens where the Puddle page's Network setting says (puddle.bind):

  • Automatic (auto, the default): your Tailscale address when Tailscale is up, else this Mac only.
  • Tailscale (tailscale): your tailnet address only.
  • Local network (lan): every network interface.
  • Tailcat (tailcat): across networks through public relays, direct when it can be. Never picked automatically.

The link is end-to-end encrypted and both ends authenticate each other's key. See Security and trust.

Pages in this section

Limits

  • Puddles is a Beta experiment. Its settings, its shortcuts and its notification rows only appear while it is on.
  • Device spaces belong to the vertical sidebar. With horizontal tabs there are no device chips.
  • When a paired device is asleep or offline, its device space says so, and the Trash and Schedules pages show its last-known rows greyed, with their age, until it is back.
Sources

Written from these files in the Flow app repo

  • docs/flow-remote.md
  • docs/sink.md
  • docs/mobile.md
  • docs/remote-hosts.md
  • src/features.rs
  • src/puddle.rs
  • src/puddle_ui.rs
  • src/sink_app.rs
  • src/settings_catalog.rs
  • src/remote.rs