# Pair another Mac or Windows PC with CmdBrief

> Connect a second Mac or Windows PC over a direct encrypted LAN or Tailscale line: share workspaces, set up a Mac build computer, lend simulators and emulators via the Devices menu, and run Windows headless or as an early build computer.

- **Category:** Setup and safety
- **Updated:** 2026-12-01
- **Reading time:** 10 min
- **Canonical page:** https://cmdbrief.com/guides/pair-mac-and-windows

## Quick verdict

- Paired computers talk exclusively over a direct TLS 1.3 line (keys pinned at pairing) on your local network or Tailscale — workspaces, files, terminals, builds, and device mirrors never travel through CmdBrief Cloud.
- A paired Mac can run remote workspaces, act as a Mac build computer (with **Let builds run simulator tests** off by default for process-isolation safety), and lend both iOS simulators and Android emulators through the **Devices** menu.
- On the first Windows build, pair inside the desktop window first; you can then run headless with `cmdbrief service install` (Task Scheduler) or test early Windows build-computer support via `cmdbrief builder launcher install` in an administrator terminal.

## What you get

- **Your primary Mac:** Opens workspaces on any paired computer; Sends builds & tests to Mac or Linux build computers; Borrows iOS simulators & Android emulators via Devices
- **Second Mac or Windows PC:** Runs its own local workspaces & leads; Mac: build computer + lends iOS simulators & Android emulators; Windows: headless `serve` task + early build launcher
- **Your primary Mac → Second Mac or Windows PC:** briefs, builds & device calls
- **Second Mac or Windows PC → Your primary Mac:** output, diffs & live mirrors
- **Connection:** Direct TLS 1.3 (Ed25519 pinned at pairing): shared LAN or Tailscale only

CmdBrief Cloud carries only three things between your computers: the list of computers on your account, the one-time PAKE pairing handshake, and each computer’s sealed local/Tailscale addresses. Everything else — workspaces, conversations, terminals, files, diffs, builds, and device mirrors — travels strictly over the direct encrypted line between the two machines.

If you are pairing a Linux machine instead, see [Add a Linux build machine](https://cmdbrief.com/guides/linux-build-machine), [Run your agents on a Linux server](https://cmdbrief.com/guides/run-agents-on-a-linux-server), or [Use CmdBrief on a rented cloud machine](https://cmdbrief.com/guides/cmdbrief-on-a-rented-machine). For mobile control over the cloud when away from your network, see [Connect Grok Bot and answer agents from your phone](https://cmdbrief.com/guides/grok-bot-remote-control).

## Before you start

- CmdBrief installed and signed in to the same account on both computers (approve the second computer in **Settings › Computers**; see [Install CmdBrief](https://cmdbrief.com/guides/install-cmdbrief)).
- Both computers on the same local network, or connected to the same [Tailscale](https://tailscale.com/kb/1017/install) tailnet.
- Any agent CLIs you plan to run on the second computer installed and signed in there (CmdBrief never copies CLI sign-ins between computers; see [Connect your 7 coding agent CLIs](https://cmdbrief.com/guides/connect-agent-clis)).

## Pair two Macs (or a Mac and a Windows desktop)

**Step 1 of 5 · You do this** (In Settings › Computers on both machines)

1. On the computer you want to reach, open **Settings › Computers** and make sure **Share with your other computers** is on.
2. On your primary Mac, open **Settings › Computers**, find the other computer in the list, open its **More** menu, and choose **Pair with a code…**.
3. On the second computer, CmdBrief shows who is asking and a 6-digit code. Type that 6-digit code into the sheet on your primary Mac. Pairing codes are single-use and kept away from agents.
4. Choose the access level on the receiving computer: **Full use** (open workspaces, terminals, files, trigger remote updates, run builds, and lend devices) or **Leads only** (see and message leads without shell, build, or update access).

Once paired, the second computer appears in your sidebar and on the **Computers** page (with **Leads | Usage** switching between its agents and 15-minute to 7-day CPU/memory/disk/GPU charts). You can also open its **Setup** card to install/sign in CLIs, copy selected preferences with **Match this Mac’s settings** (sign-ins, keys, and folders are never copied), or move a workspace with **Move to another computer…** and **Bring back**.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Primary Mac | Open **Settings › Computers** | The paired computer shows a direct line and its chosen access level (Full use or Leads only). |

## Use a second Mac as a build computer

**Step 2 of 5 · You do this** (In Settings › Computers on both Macs)

A paired Apple silicon Mac with **Full use** can run your agents’ `cargo`, `npm`, `pnpm`, `node`, and `xcodebuild` jobs (including Swift packages with their own `Package.swift` scheme and build tool plugins) while your agents stay on your laptop.

1. On your primary Mac, open **Settings › Computers** and click **Set up a build computer…** (or on the receiving Mac, turn on **Take builds and tests from my other computers** in **Settings › Computers**).
2. The setup sheet pairs the Mac if needed, turns on **Take builds and tests from my other computers**, checks macOS, direct line, Rust, Node, and Xcode, and runs a **Try it** verification build.
3. In any workspace’s **Builds and tests** menu (or **Workspace settings › Builds and tests run on**), leave **Automatic** on (it automatically picks a free build computer matching your Mac’s OS and chip) or name that specific Mac.

Sent builds run inside CmdBrief’s guard in a copy of the project with their own cache folder (`builds-cache`), so they cannot write your personal `~/.cargo`/`~/.npm` caches or read your sign-ins, Keychain, or SSH sockets. They see only toolchains, caches, Git settings, and `~/Library/Developer` unless you turn on **Let runs read the whole home folder**.

> **Warning:** **Simulator tests caveat (`Let builds run simulator tests`):** running `xcodebuild test` against an iOS simulator on a Mac build computer requires turning on **Let builds run simulator tests** under that Mac’s **Settings › Computers**. It is **off by default** because macOS’s sandbox requires widening process inspection to all processes for `xcodebuild test` to bless simulator PIDs — while a simulator test runs, that build process can read other programs’ command-line arguments and environment variables on that Mac (such as tokens passed to an agent CLI). With the switch off, simulator unit tests are refused immediately (naming the setting) and fall back to the asking Mac; simulator builds (`xcodebuild build`) and macOS tests (`platform=macOS`) work without enabling it.

If a Swift package with a build tool plugin was already built on a Mac build computer before CmdBrief 0.5.99, clear that copy’s derived data once so `xcodebuild` picks up the fix ([see changelog](https://cmdbrief.com/changelog)).

## Lend iOS simulators and Android emulators via the Devices menu

**Step 3 of 5 · You do this** (On the lending Mac, then in the workspace’s Devices menu)

Beside **Builds and tests** in the workspace, lead, lead pane, and Stage menus sits the **Devices** menu (also available in **Workspace settings**). A paired Mac with **Take builds and tests from my other computers**, **Full use**, and **Device Hub** enabled can lend both iOS simulators and Android emulators — showing free slots right in the menu. See [Device Hub: leased iOS simulators and Android emulators](https://cmdbrief.com/guides/device-hub-simulators) for the full Device Hub walkthrough.

- **iOS simulators (Mac-to-Mac and Mac-to-Linux):** on a Mac, pick the lending Mac under **Devices → iOS simulators** (default is **This computer**). Agents’ simulators boot on the lending Mac, `xcodebuild -destination 'platform=iOS Simulator,id=<udid>'` runs there, and the live mirror streams into your Device panel. Local `simctl` and `idb` on the asking Mac cannot reach borrowed simulators (they report that plainly). On Linux, CmdBrief automatically points iOS simulator requests to your lending Mac.
- **Android emulators (Mac or Linux lender):** pick a paired Mac or Linux build computer under **Devices → Android emulators run on**. The emulator runs headless on the lender, which inhibits idle sleep while lending (`caffeinate` on Mac — note a closed laptop lid still sleeps — or `systemd-inhibit` on Linux), and your agents’ `adb` commands reach it through an encrypted relay on the direct line.
- **If the connection drops:** the last frame stays visible dimmed and the lender keeps the emulator reserved for 10 minutes before ending the lease.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Asking computer | Open **Devices** from the workspace or Stage menu | Paired Mac/Linux lenders show `"N of M slots free"` under iOS simulators or Android emulators run on. |

## Run a Windows PC headless (Task Scheduler service)

**Step 4 of 5 · You do this** (On the Windows PC (desktop window first, then PowerShell or cmd))

Just like headless Linux, a Windows PC can run CmdBrief with no window using `cmdbrief-app.exe serve` and appear to your Mac as a Windows server.

1. **Pair in the desktop window first:** CLI write commands (`pair`, `share`, `remote`) are Linux-only. Open `cmdbrief-app.exe` in its window on Windows first, sign in, turn on sharing in **Settings › Computers**, and complete pairing with your Mac. Your pairing and settings persist after you quit the window.
2. **Install the Task Scheduler service:** quit the CmdBrief window, then run `cmdbrief-app.exe service install` in PowerShell or Command Prompt. It creates a Task Scheduler task (`CmdBrief`) that runs `serve` with no window whenever you sign in to Windows (with no time limit and on battery too), creates a `cmdbrief.cmd` wrapper beside the executable, adds that folder to your user `PATH`, and starts the service right away.
3. **Manage the service:** use `cmdbrief service status`, `cmdbrief service stop` (sends a clean shutdown event so interrupted agents are recorded), `cmdbrief service start`, or `cmdbrief service uninstall`. Logs write to `%USERPROFILE%\AppData\Local\CmdBrief\logs\serve.log` (rotated at 1 MiB, 5 files kept).

**Set up and check headless CmdBrief on Windows (PowerShell or cmd)**

```bash
cmdbrief-app.exe service install
cmdbrief service status
# To reopen Settings in the desktop window later:
cmdbrief service stop
# ...open cmdbrief-app.exe, change settings, quit it, then:
cmdbrief service start
```

> **Tip:** While an agent is actively in a turn or a workspace is moving, CmdBrief asks Windows to stay awake (`SetThreadExecutionState`); an agent waiting on you does not keep the PC awake. Because the task runs in your user session, it runs while your Windows account is signed in (enable automatic Windows sign-in on a dedicated PC if you want it to start on reboot).

## Use a Windows PC as a build computer (early)

**Step 5 of 5 · You do this** (In an Administrator terminal on the Windows PC)

Windows build-computer support is **early** (verified locally on Windows; cross-computer builds from a Mac to Windows have not yet had broad testing). Because isolating a Windows build requires running it under a separate local Windows account, you install CmdBrief’s build launcher once in an **administrator** terminal as your normal user:

**Install or check the Windows build launcher (Administrator PowerShell / cmd)**

```bash
cmdbrief builder launcher install
cmdbrief builder launcher status
# To remove the launcher task later:
cmdbrief builder launcher uninstall
```

- **How isolation works:** `cmdbrief builder launcher install` creates (or resets) a standard local user account named `CmdBriefBuild` that cannot open your user profile, processes, or desktop; stores its machine-DPAPI password under `C:\ProgramData\CmdBrief\Launcher`; copies the launcher to `C:\Program Files\CmdBrief Build Launcher`; registers the `CmdBrief Build Launcher` scheduled task; and stores remote project copies in `C:\ProgramData\CmdBrief\Builds`.
- **Turn on the switch:** after installing the launcher, turn on **Take builds and tests from my other computers** in **Settings › Computers** on the Windows PC.
- **Re-run after every CmdBrief update:** the launcher enforces an exact version match and refuses runs after an update until you run `cmdbrief builder launcher install` again in an administrator terminal.
- **Toolchains:** runs execute as `CmdBriefBuild`, so install Rust, Node, or other build tools for all users (or under `C:\Users\CmdBriefBuild`). Note that `cmdbrief builder status` inspects the signed-in user’s toolchains.

## What is still Coming soon on Windows

The Windows release is a first build. In **Settings**, unavailable rows are dimmed and marked **Coming soon** (“Coming to Windows in a future update.”). Here is the exact split as of CmdBrief 0.5.102 ([see Features](https://cmdbrief.com/features) and [CmdBrief CLI reference](https://cmdbrief.com/guides/cmdbrief-cli-reference)):

| Area | Status on Windows |
| --- | --- |
| Desktop window, Standard & terminal panes, WebView2 Browser panes, auto-updates | Available (first build; not code-signed yet) |
| Remote host (`cmdbrief-app.exe serve`, `cmdbrief service install` Task Scheduler) | Available (pair in window first) |
| Acting as a build computer (`cmdbrief builder launcher install`) | Early (re-run launcher install after each update) |
| Sending builds from Windows to another computer | Coming soon |
| Managed SSH (1Password SSH agent — see [Managed SSH guide](https://cmdbrief.com/guides/managed-ssh-and-secrets)) | Coming soon |
| Android emulators for agents (and iOS simulators always need a Mac) | Coming soon (iOS stays Mac-only) |
| Taskbar status, sidebar system stats / CmdBrief metrics, Capture, Feature films | Coming soon |
| Custom connectors, plugins, deleting reports to Trash, “Only when I’m away” push filter | Coming soon |
| Voice wake phrase, speaking with no session open, ignoring PC audio in dictation | Coming soon |

*Windows feature availability*

> **Warning:** Crew starts, git worktrees (Windows 260-character path limits), and published pages have limited Windows testing compared to macOS and Linux. If you need a battle-tested unattended server today, pair a [Linux agent server](https://cmdbrief.com/guides/run-agents-on-a-linux-server) or [Linux build machine](https://cmdbrief.com/guides/linux-build-machine).

## If it fails

| What it says | Fix |
| --- | --- |
| Mac says “Connect both to the same network or to Tailscale” | Direct lines never route through CmdBrief Cloud. Put both computers on the same LAN or confirm `tailscale status` shows both machines connected to the same tailnet, then click **Try again**. |
| Mac build computer refuses `xcodebuild test` with “That Mac runs tests on a simulator only with Let builds run simulator tests on…” | **You:** Either let the test fall back to your local Mac, or open **Settings › Computers** on the lending Mac and explicitly enable **Let builds run simulator tests** after reviewing the process-visibility tradeoff above. |
| Windows says `cmdbrief pair` or `cmdbrief share on` only works on Linux | **You:** Expected: CLI write commands are Linux-only. Stop the service (`cmdbrief service stop`), open `cmdbrief-app.exe`, configure pairing and sharing in **Settings › Computers**, quit the window, and run `cmdbrief service start`. |
| Windows build launcher refuses a build after a CmdBrief update | **You:** Open an **administrator** terminal as your user and run `cmdbrief builder launcher install` again so the launcher matches the updated CmdBrief version. |
| Paired computer’s Update button says Full use is required | **You:** Installing updates remotely requires **Full use** on that computer. Change access from **Leads only** to **Full use** in **Settings › Computers** on the paired machine. |

## Questions

### Does traffic between two paired Macs or a Mac and Windows PC go through CmdBrief Cloud?

No. CmdBrief Cloud only exchanges your computer list, the one-time PAKE pairing handshake, and sealed addresses. All workspaces, files, terminals, builds, and device mirrors travel directly over TLS 1.3 with Ed25519 keys pinned at pairing, over your shared LAN or Tailscale.

### Why is “Let builds run simulator tests” off by default on Mac build computers?

Running `xcodebuild test` against a simulator requires macOS sandbox permission to inspect other processes on that Mac, which exposes other programs’ command-line arguments and environment variables (including tokens an agent CLI was launched with) during the run. CmdBrief keeps it off until you deliberately allow it.

### Can a Mac lend its Android emulators to a paired Linux computer or another Mac?

Yes. Turn on **Take builds and tests from my other computers** and Device Hub on the Mac (with Full use), then choose that Mac under **Devices → Android emulators run on** in your workspace. The emulator runs headless on the Mac and mirrors into the asking computer’s Device panel.

### Does a headless Windows PC keep running CmdBrief after I sign out of Windows?

No. `cmdbrief service install` registers a Task Scheduler task that runs in your Windows user session while you are signed in. For an unattended machine that runs with nobody logged in, use a Linux server with `sudo loginctl enable-linger $USER`.

## Primary sources

Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.

- [Tailscale: install](https://tailscale.com/kb/1017/install)
- [Apple Developer: xcodebuild](https://developer.apple.com/documentation/xcode/building-and-running-an-app)
- [Microsoft Docs: Windows Task Scheduler](https://learn.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page)
- [CmdBrief Windows x86_64 download](https://cmdbrief.com/api/v1/app-download?platform=windows-x86_64)

## Keep reading

- Setup and safety: [Add a Linux build machine for your Mac’s agents](https://cmdbrief.com/guides/linux-build-machine)
- Setup and safety: [Run your agents on a Linux server and close your laptop](https://cmdbrief.com/guides/run-agents-on-a-linux-server)
- Setup and safety: [Device Hub: leased iOS simulators and Android emulators](https://cmdbrief.com/guides/device-hub-simulators)
- Setup and safety: [Use CmdBrief on a rented cloud machine](https://cmdbrief.com/guides/cmdbrief-on-a-rented-machine)
- Setup and safety: [CmdBrief CLI reference for headless Linux and terminal control](https://cmdbrief.com/guides/cmdbrief-cli-reference)

---

Markdown mirror of https://cmdbrief.com/guides/pair-mac-and-windows, generated at build time from the same data the HTML page renders. Machine-readable index: https://cmdbrief.com/llms.txt
