Skip to content

Pairing VMs, Containers and Remote Workstations

When you run AI coding sessions inside a Linux VM, a Docker container or a remote workstation, Tokematic lets those boxes stream their recorded sessions straight to your Mac over mutually authenticated TLS. Nothing leaves your local network unless you choose to sync it.

Record work from another computer on YouTube

Transcript

tmatic can run headless: recording work without a desktop window, even on a Mac. The collector runs on Mac, Windows and Linux.

You have a choice. Connect the computer directly to your Tokematic account and use Tokematic sync. Or pair it with a Mac's local recorder. The local route can keep the connection between your computers. You do not have to relay every Windows or Linux computer through a Mac.

For direct Tokematic sync, pair with a valid account share code. This command uses the Tokematic service unless you specify another address. Run it on the computer you are adding. Replace the placeholder with your code. The local Mac pairing route has its own code and approval choices.

The daemon is the headless mode that keeps collecting. This example checks for new work every fifteen seconds. When it is signed in for Tokematic sync, it also sends and receives records. The no-sync option keeps collection local when that is what you want.

For the local route, the Mac app's Sandboxes settings can enable the recorder and accept other computers on the network. tmatic serve with the lan flag is the terminal alternative. The usual port is seven three one seven. The other computer needs a reachable address or tunnel.

This example pairs with your Mac instead of the Tokematic service. Compare the certificate fingerprint with the one in the Mac's settings or recorder output. You can also omit the pairing code and approve the request on the Mac. Choose Device for a separate computer.

A reusable key helps you set up several computers without approving each request separately. This example permits five pairings within twenty-four hours. Choose a use count and lifetime that fit your rollout. The key is shown once. Keep it in your setup process, not in shared screenshots.

Device and Sandbox mean different things. Device keeps the other computer's identity. Sandbox folds its work into the Mac. The Mac's Sync paired devices setting can relay Device records through iCloud or Tokematic sync. That relay is separate from pairing directly with Tokematic.

Choose direct Tokematic sync or a local recorder, pair the computer and keep tmatic running headless. Then confirm that a small recorded session arrives where you expect it. The same basic choice applies whether that computer runs Mac, Windows or Linux.

Sign in to hosted sync

Approve a headless box

Run tmatic pair without a code on the box. It prints a short pairing code and its expiration time. Approve that code in Tokematic on a signed-in Mac or on the website under Settings, Devices within ten minutes. The command waits, then prints Signed in as <email> and saves the same hosted login as tmatic signin, using your --secrets choice. Press Ctrl-C to cancel. Cancellation or expiration leaves no new login. Run tmatic unpair to remove the saved login.

To sign a box in again, run tmatic pair --force. The new sign-in takes the place of the old one, so the box stays one row under Settings, Devices.

Use your password

Run tmatic signin to connect this computer to your Tokematic account. Enter your email and password when prompted. The terminal hides the password. Use --force to replace an existing local login.

For an app or script, tmatic signin --stdin --json reads one JSON object with email and password fields. Send it through standard input. The command prints one JSON result line and exits with 0 on success or 1 on failure. Credentials must stay out of command arguments and environment variables.

The command uses the same --secrets choices and --api-base override as tmatic pair. Windows uses Credential Manager by default. With --secrets file, the login stays in the protected sync.json file. On a Mac, the app moves it into the keychain the next time it runs while you are signed in at the desktop. The saved email lets tmatic status show who signed in. Run tmatic unpair to remove the local login.

How Local Recorder Pairing Works

  1. Your Mac runs a local recorder (tmatic serve or Settings > Sandboxes > Let sandboxes and virtual machines on this Mac send sessions here).
  2. The Mac mints a short-lived, single-use pairing code bound to its local TLS certificate fingerprint.
  3. The VM or container redeems that code with tmatic pair, sealing records under your local group key.
  4. If you also enable Relay devices to my sync group, your Mac forwards those records to your private account or organization according to your sharing rules.

Step 1: Start the Recorder on Your Mac

In the macOS app, open Settings > Sandboxes and turn on Let sandboxes and virtual machines on this Mac send sessions here (and Also accept other computers on this network for another computer), or start the recorder from a terminal:

tmatic serve

The recorder listens on port 7317 with its own self-signed TLS certificate and prints its certificate fingerprint.

The standalone tmatic serve command also runs on Windows. By default it accepts connections from this computer only, at https://127.0.0.1:7317. Use that address when pairing another process on the same computer. To pair a different computer, start it with tmatic serve --lan and use the recorder computer's network address and printed fingerprint.

Step 2: Pair a Remote Workstation or VM

Mint a pairing code on your Mac and run tmatic pair on the remote Linux machine:

tmatic pair <PAIRING_CODE> \
  --api-base https://<MAC_HOST_OR_IP>:7317 \
  --fingerprint <CERT_FINGERPRINT> \
  --label "linux-dev-vm"

Once paired, start the collector daemon inside the VM:

tmatic daemon --no-quota --interval 15

On Windows, pairing checks that Credential Manager can save the login before it asks the server to admit the device. If the check fails, nothing is sent. Run pairing from a signed-in Windows session or use tmatic pair --secrets file with your pairing code and connection options to save the login in sync.json instead.

Automatic Pairing with tmatic box

When you launch a local Docker container or cloud sandbox through tmatic box, Tokematic handles pairing automatically:

  • For local Docker (docker://tokematic-yolo), tmatic box mints a single-use sandbox key, pairs the container against https://host.docker.internal:7317 and starts tmatic daemon inside the container in the background.
  • For remote SSH, Fly.io Sprites, Google Cloud and AWS EC2 sandboxes, tmatic box opens a reverse SSH tunnel (-R 127.0.0.1:7317:127.0.0.1:7317) so the remote sandbox talks to your Mac's local recorder over the encrypted SSH connection with zero exposed firewall ports.

Checking and Retiring Paired Devices

Inspect sync status across your paired devices at any time:

tmatic sync compare

To remove credentials from a box before destroying it, run:

tmatic unpair

If a VM or container has already been deleted, retire its device record from your store with tmatic sync forget <DEVICE_ID> or from #/devices in the web client.

On the web, the setup steps for a Linux server or Windows PC live in Settings > Account > Devices > Add a device: choose A Linux server or Windows PC, then the platform. The installers come from the Downloads page.

Next video: Understand your organization seats

1. Getting Started & Multi-Device Setup

All guides