# Flow for iPhone

> The iPhone app's current state, how to pair it with your Mac as a Puddle device, the session list, the terminal and the key bar.

Flow for iPhone puts your Mac's terminal sessions on your phone. The phone is an ordinary Puddle device: it pairs with the same invite link as a Mac, you approve it with the same six-digit code, and it needs the same **Can open my sessions** grant before it can list or open anything. Nothing extra runs on the Mac for it.

> **Note:** The iPhone app is in development. There is no App Store or TestFlight release yet; it runs only as a development build. This page describes what that build does today.

## What works today

These have been run on an iPhone, paired over Tailscale:

- pairing with a Mac, and unpairing;
- the session list, laid out like your Mac's sidebar;
- opening a terminal session and typing in it with the on-screen keyboard and the key bar;
- scrolling a session's history, and scrolling full-screen programs such as Claude Code.

A session screen with the session's other tabs and tools (Files, Notes, pull requests, the palette, New session) is built but has not yet been run against a Mac; treat it as untested.

## Before you pair

On the Mac:

1. Turn on **Puddles** (Settings › Experiments) and open the Puddle page. See [Pair devices with flow-remote](https://flow.worldbreakstudios.com/docs/sync/flow-remote.md).
2. Make sure the phone can reach the Mac. The phone has only been tested over Tailscale: put Tailscale on both, and leave the Mac's **Network** setting on Automatic (with Tailscale up) or Tailscale.

## Pair the phone

1. On the Mac, in **Invite a device**, press **Show invite**, then **Copy link**.
2. Get the link to the phone, then either open it there or paste it. Opening the link shows "A link asked this phone to join a Puddle. Join only if you created that invite on your own Mac just now." with **Join** and **Discard Invite**. To paste instead, put the link or token in the **Invite link or token** field on the phone's **Join a Puddle** screen and tap **Join**.
3. The phone says "Reaching your Mac…", then shows a **Confirmation code**.
4. On the Mac, check that the code is the same and press **Approve** within 60 seconds. The phone shows "Waiting for approval…" until you do.
5. On the Mac, find the phone under **Members** and turn on **Can open my sessions**. Without it the phone can't read your sessions or open them.

Grant **Can create sessions** too if you want to start sessions from the phone.

The phone can't scan the invite's QR code; use the link. An invite is good for one pairing within 5 minutes.

To unpair, open the paired Mac's menu on the phone and choose **Unpair…**, which asks first. Remove the phone on the Mac too (**Remove** on its Members row).

## The session list

The list follows your Mac's sidebar, live:

- sections **Pinned**, **Sessions** and **Snoozed**. Tap a section's caption to fold or unfold it; Snoozed starts folded, at the bottom. Folds are kept per Mac across launches.
- each session's title as the Mac's sidebar shows it, its icon stack, unread dot and pull-request glyph;
- session groups as one row you can expand;
- the label chip bar.

## The terminal

Tap a session to open its terminal. You see the session live, as on the Mac, and type into it.

- **Scrolling.** Drag to scroll back through the history, with momentum. A "↑ N" badge shows how many lines back you are; the button at the bottom right jumps back to live, and so does a tap or any key. The history keeps 3500 lines.
- **Full-screen programs.** In `less`, `vim`, `htop` or Claude Code's full-screen view, a drag sends scroll steps to the program instead, as a mouse wheel would.
- **Edge swipe.** The swipe back from the left edge still goes back to the list.
- **Screen size.** With the Mac's **Shared pane size** at its default (`puddle.pane_size` = `latest`), typing on the phone sizes the session to the phone's screen until you type on the Mac again. Use `smallest` on the Mac to keep it fitting both.

## The key bar

The key bar sits above the keyboard with the keys a phone keyboard lacks. Its first row:

| Key | Sends |
|---|---|
| 🔍 | opens the palette |
| `esc`, `tab` | Escape, Tab |
| `ctrl`, `alt`, `⇧` | modifiers (see below) |
| `←` `↑` `↓` `→` | arrow keys |
| `home`, `end`, `pgup`, `pgdn`, `del` | Home, End, Page Up, Page Down, Delete |
| `paste` | pastes the clipboard into the terminal |

The second row is symbols:

```text
| ~ / \ - _ ` ' " : ; & * $ # ! ? < > [ ] { } ( ) = + % ^ @
```

A key with a keyboard glyph hides the keyboard.

### Modifiers

- **Tap** `ctrl`, `alt` or `⇧` once: it applies to the next single keystroke, from the bar or the keyboard, then turns off. Tap it again to cancel. A one-shot modifier is tinted.
- **Tap twice quickly** to lock it on until you tap it again. A locked modifier is filled, with a bar under its label.
- Text longer than one character (a paste, a dictated phrase) goes through as it is and leaves a one-shot modifier armed.
- `ctrl` plus a letter sends that letter's control code even when the keyboard capitalized it, so `ctrl` then `c` is always Ctrl-C.
- Arrows, Home and End follow the program's cursor-key mode, as a desktop terminal does.

Holding an arrow, `pgup`, `pgdn` or `del` repeats it: after 400 ms, then 15 times a second until you lift your finger. Modifiers, symbols and `paste` don't repeat.

## Limits

- Not on the App Store or TestFlight; development builds only.
- No QR scanning: pair with the link or by pasting.
- No push notifications or background work: the app connects when it comes to the front.
- No text selection and copy, no pinch to change the font size, and no input methods (IME) or dictation into the terminal.
- You can't close, rename or pin a session from the phone.
