> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Use one mux across your machines

> Find a session on another machine, open it in a portal, and type to it from your mux.

> [!NOTE]
>
> **Experimental:** Remote sessions are off by default. In the mux, open **menu > settings > experimental** and turn on **other machines**. Each machine needs F\[no] 0.4.6 for the remote sessions and Fleet tab actions described here. Version 0.4.5 does not include these features.

The sideline can show every machine on the fleet map. A remote row is a session that runs on another machine. Open it from the sideline, the mux panel that lists sessions. You can read its screen and type to it without leaving your mux. A portal is a window onto a session you select. It keeps its place while you change which session it shows.

The screenshots show a two-machine example.

![Experimental settings with other machines checked and fleet map read every 15s beside it](https://mintcdn.com/fno/lcGJ5yOUrAer-phN/images/mux-remote-experimental.png?fit=max\&auto=format\&n=lcGJ5yOUrAer-phN\&q=85\&s=73943a693df2019a1d2260ef3703c342)

## Connect each machine to the shared store

Ask your agent on each machine:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Prepare this machine for remote sessions in the mux. Check that its F[no] build includes the feature and its daemon runs. Check the shared store and SSH access to each remote host I want to use. Ask me for the primary URL, required token, and SSH destination if you do not have them. Keep credentials out of Git.
```

### What the agent runs

Each machine needs F\[no] with remote-session support and a running F\[no] daemon. Each daemon publishes its machine and sessions to the shared store every 60 seconds.

The shared store is one libSQL primary on a private network, such as Tailscale. If no primary runs yet, set one up first: see [Run one fleet across machines](/docs/guides/multi-machine.md). Each machine must reach it. Each machine's global `~/.fno/config.toml` must set `store.remote_url` to that primary's URL. A project config cannot set this key.

If the primary requires authentication, set `store.remote_token` on each machine. The token can differ between machines. `store.share_backlog` is a separate option. You do not need it to see remote rows.

The agent checks the fleet map on each machine:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno agents fleet top --machines
```

The result must list each machine you want to use. Check that the host you want to open has a session. If it says `fleet map needs store.remote_url: this machine shows alone`, check the global config. If a machine reads `offline`, check its daemon and connection to the primary. If a remote machine appears but has no session, start one there with [Run a fleet](/docs/guides/run-a-fleet.md).

Opening a remote row also needs SSH access from this machine to the host named in the fleet map. The remote SSH shell must find `fno` on its PATH. Configure SSH for that host before you open its row. The shared store discovers sessions. SSH carries the terminal screen and input after you open one.

## Find the remote row

1. In your terminal, start the mux with `fno mux`.
2. Open **menu > settings > experimental**. Turn on **other machines**.
3. Return to the sideline. If the sideline is hidden, press **Ctrl+B**, then **b**.
4. Find the header for the machine you want to use. This machine appears first. Each header shows the host, `ready` or `offline`, and the age of its newest report.
5. Find the session under that machine's project or workspace. To change the grouping, press **Ctrl+B**, then **W**.

The machine layer appears only after the fleet map contains at least two machines. The mux reads that map every 15 seconds while **other machines** is on.

Rows group by machine first. The workspace grouping puts remote rows under their workspace. If the fleet map has no workspace for a row, it uses the project. Workers can nest under their parent session. Other groupings include lead, directory, status, harness, and none. Changing the grouping keeps the machine headers.

The row shows its session name without repeating the host already shown in its machine header. A picker outside that header uses `name@host`.

These keys use the built-in defaults. [Mux keys](/docs/guides/mux-keys.md) covers key presets. In F\[no] 0.4.6, press **Ctrl+B**, then **?**, for the focused view's footer grid. Press \*\*\*\*\* without the prefix for the full keybindings table.

![Sideline with mini-b and studio-a machine headers, ready states, report ages, and session groups](https://mintcdn.com/fno/lcGJ5yOUrAer-phN/images/mux-remote-machines.png?fit=max\&auto=format\&n=lcGJ5yOUrAer-phN\&q=85\&s=425d8e560c5f7eb45dad31898da6de88)

## Open and drive the session

1. Press **Ctrl+B**, then **w** to select a sideline row.
2. Use the arrow keys to select the remote row.
3. Choose where to open it. Press **Enter** to use portal 0, replacing the session that portal shows. Clicking the row does the same.
4. For a new portal instead, press **P** in the row selector, then **Enter** in the portal picker. You can also right-click the row and choose **Open in new portal**.
5. Click inside the opened pane. Check the pane title. It reads `name@host`, with a `⇄` symbol. Type into that pane to drive the remote session.

If a portal already shows that session, every open action focuses that portal, including **Open in new portal**. F\[no] keeps one viewer per session. Closing the portal closes the connection. The session keeps running on its host.

The message band in the portal paints its text over ssh, in the band colors the [mux themes](/docs/guides/mux-themes.md) choose for your harness.

> **Note:** The 0.4.7 release and the 0.4.8rc1 and 0.4.8rc2 pre-releases paint the band over ssh as a solid block, with the words invisible. A build after 0.4.8rc2 sets the terminal's truecolor flag on the attach that runs on the far machine, so the words read again.

![Remote row menu for wren@studio-a with Open, Open in new portal, Peek, and Mail](https://mintcdn.com/fno/lcGJ5yOUrAer-phN/images/mux-remote-row-menu.png?fit=max\&auto=format\&n=lcGJ5yOUrAer-phN\&q=85\&s=1b150baeb9df701d9456640f180388bd)

![Remote session open with wren@studio-a in the pane title and an echo of text typed through the mux](https://mintcdn.com/fno/lcGJ5yOUrAer-phN/images/mux-remote-portal.png?fit=max\&auto=format\&n=lcGJ5yOUrAer-phN\&q=85\&s=83eab5cef7a409ebfaf7dd9111f6cc8b)

## Peek, view, or spawn from the Fleet tab

The Fleet tab uses SSH to act on another machine. Complete the [shared-store and SSH setup](#connect-each-machine-to-the-shared-store) first. A seat is an agent session listed on that tab.

1. In the mux, press **Ctrl+b**, release it, then press **Shift+g** to open the org board.
2. Use the left or right arrow to select **Fleet** in the board's tabs. Use `j` or `k` to select a machine or session. Press `Enter` to expand a machine or group.
3. To peek at a remote session's last 40 transcript records, select its row and press **Space**. Press `Esc` to close the peek page.
4. To follow that session, select its row and press **Shift+p**. A local pane follows the transcript without sending input.
5. To start a worker on a machine, select its machine, lead, or session row. Press `s`, type the worker's task, then press `Enter`.

For different bindings, check the [live keybindings table](/docs/guides/mux-keys.md#find-the-active-keys) for `org-view`.

The follow pane only reads the transcript. To type to the session, [open a portal](#open-and-drive-the-session) from the sideline.

A new worker uses the selected session's directory. Without a selected session, it uses the first session on that machine that reports a directory. If no session reports one, the board refuses and names the command to use with an explicit directory.

A stale machine report blocks these actions. Check its daemon and shared-store connection, then wait for a fresh report. A failed SSH connection shows its error. Only one action runs at a time.

The board refuses to spawn on a machine with a different stated owner. If the machine takes no work, the prompt warns you, but a task you submit still starts. The `x` key stops local sessions only. On a remote row, it names the stop command to run on that host.

## Restart an older mux server

Ask your agent:

```text theme={"theme":{"light":"min-light","dark":"min-dark"}}
Opening a remote row reports an older mux server. Identify which machine needs the update or restart. Check the installed build and list its mux servers. Restart only the affected server, then tell me how to reopen it. If a live unkept pane prevents the restart, report the refusal before ending any pane.
```

### What the agent runs

An updated binary can still connect to an older running server. Each machine needs a build with remote-session support. Each machine's running mux server must also support the feature.

| What you see | Where to act |
| - | - |
| `update the mux server to open a row from another machine` | Restart the mux server on the machine where you selected the row. |
| `this machine's mux server predates the link role: restart it with` followed by `fno mux kill-server` | Restart the mux server on the remote host. Here, “this machine” means that host. |
| The connection stops and names `fno doctor update` | Check the remote host's build for remote-session support. |

The agent lists servers on the affected machine:

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
fno mux ls
```

It uses the affected server's name with `fno mux kill-server <MUX_NAME>`. Here, `<MUX_NAME>` is the name from that list. The command refuses while live unkept panes exist, because ending that server also ends those panes. The agent reports that refusal for your decision.

After the agent stops the server, run `fno mux` in your terminal on the affected machine. For a remote host, open a terminal on that host for this step. Then reopen the remote row from your local sideline. Use F\[no] 0.4.6 on both machines for these controls.

## Next steps

* [Run a fleet](/docs/guides/run-a-fleet.md): start another worker.
* [Message agents](/docs/guides/message-agents.md): send a follow-up without opening its screen.
* [Command page](/docs/guides/command-page.md): read machine and session state in a browser.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.