# 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.

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

| Piece | What it does | Needs on the other machine | Page |
|---|---|---|---|
| Puddles and `flow-remote` | Pairs 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 it | Flow, with Puddles on | [Pair devices with flow-remote](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md) |
| Device spaces and mirror groups | Shows a paired Mac's sessions in your sidebar and opens them live in local panes | A grant from that Mac | [Use another Mac's sessions](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md#use-another-macs-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 them | Flow, with sync on | [How Flow syncs data](https://flow.worldbreakstudios.com/docs/sync/sink.md) |
| Remote hosts | Runs a group's panes on a server over `ssh` (an `~/.ssh/config` alias, `user@host` or a Tailscale name) | `ssh`, optionally `flow-session` or `tmux` | [Remote hosts](https://flow.worldbreakstudios.com/docs/sync/remote-hosts.md) |
| Flow for iPhone | Your desktop's sessions on a phone, paired like any other device | Flow on the Mac, with Puddles on | [Flow for iPhone](https://flow.worldbreakstudios.com/docs/sync/mobile.md) |

## 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.

| Permission | On the Puddle page | Granted by | What the other device can do |
|---|---|---|---|
| List | (always, while paired) | Pairing | See the names and states of your terminal sessions, refreshed every 15 seconds |
| Open | **Can open my sessions** | You, per device | Watch any shareable session and type into it. This is full shell access on your Mac |
| Create | **Can create sessions** | You, per device | Have 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](https://flow.worldbreakstudios.com/docs/sync/security.md) 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](https://flow.worldbreakstudios.com/docs/sync/sink.md), and every synced table is listed in [Built-in synced tables](https://flow.worldbreakstudios.com/docs/sync/sink-schemas.md).

## 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](https://flow.worldbreakstudios.com/docs/sync/security.md).

## Pages in this section

- [Pair devices with flow-remote](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md): pairing step by step, grants, device spaces and mirror groups.
- [flow-remote command reference](https://flow.worldbreakstudios.com/docs/sync/flow-remote-commands.md): every `flow-remote` command and flag.
- [Security and trust](https://flow.worldbreakstudios.com/docs/sync/security.md): what is encrypted, what a paired device can do, how to unpair and revoke.
- [Remote hosts](https://flow.worldbreakstudios.com/docs/sync/remote-hosts.md): groups that run over `ssh` or Tailscale.
- [Flow for iPhone](https://flow.worldbreakstudios.com/docs/sync/mobile.md): the phone app's current state, pairing and the key bar.
- [How Flow syncs data](https://flow.worldbreakstudios.com/docs/sync/sink.md): what syncs, where it is stored, how conflicts resolve, and how a tool defines its own synced tables.
- [Built-in synced tables](https://flow.worldbreakstudios.com/docs/sync/sink-schemas.md): the fields of every built-in synced table.

## 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.
