Remote control

Reach the sessions on your own machine from your phone or another computer: follow a job, answer a question, approve a command. It's off until you turn it on.

How it works

Your machine keeps one outgoing connection to Matter Engine's relay (no ports opened on your machine). Your phone or browser connects to the relay too, and the two talk over an end-to-end encrypted channel (Noise): the relay passes ciphertext it can't read. The device's key is made in the browser and kept there, encrypted.

Turning it on

matter remote enable                  # registers this machine; the daemon starts now and at login
matter remote enable --name laptop    # the name your devices show (default: the host name)
matter remote ls                      # whether it's on, and the paired devices
matter remote disable                 # off again (paired devices are kept)

By default a device can use sessions, the inbox and approvals. Two things need saying yes to on the machine: --allow-shell (shell tabs, ! commands and terminal input from your devices) and --allow-instances (starting and changing GPU instances, which costs money).

Shell access is your full access. A device allowed shell tabs can do anything you can on this machine, including approving other devices. Matter refuses matter remote approve, revoke, enable and disable from a shell it opened while shell access is on, but a shell can get around that. Allow it only for devices you'd trust with your account, and revoke a lost device at once.

Pairing a phone or browser

  1. Open the web app at app.matter-engine.com and sign in with your Matter Engine account. It lists your machines.
  2. Pick the machine. The page shows a few words and asks whether your machine shows the same ones, in a “New device request”.
  3. On the machine, run matter remote approve. It shows the device's name and the words, and asks whether they match the ones on the device; answer y only if they do. (Without a terminal, pass the words the device shows: matter remote approve --words "...". With several devices waiting, it lists them; pick one with --id.) --deny refuses it. The inbox can answer it too.
  4. On the page, choose Match only if the machine shows a “New device request” with the same words. If it shows no request, or different words, choose Doesn't match: something other than your machine answered.

The device is paired only when both sides said yes: the machine's user approved it, and the device's user saw the same words on both. That is what the words protect. The page learns the machine's key from the relay. A relay (or anyone in the middle) could answer a pairing under its own key, but it can't make your machine show the same words, so checking them on both screens stops it. Skipping the check leaves that open.

Once paired, the device remembers the machine's key. If the relay later lists a different key for it, the page won't connect or pair again by itself: it warns that the key changed, which is expected only after reinstalling Matter or setting up remote control again on that machine. Only Forget and pair again replaces it, with the words checked again. A connection that fails keeps the key. If the machine revoked this device, forget it from the list and pair again.

As a phone app

The web app installs on your phone: "Install app" in Android's Chrome, or Share, then "Add to Home Screen" on iOS 16.4 or later. At phone width it shows one pane at a time (sessions, chat, inbox) with a bar at the bottom. It opens offline from its cache, and the machine list comes back once you're online. In a browser tab, closing the tab signs you out; the installed app stays signed in until you sign out or revoke it.

Notifications

Tap "Notify me" in the web app. When something on the machine waits for an answer this device can give, the machine itself sends the notification through your browser's push service (Google's, Mozilla's, Apple's or Microsoft's), encrypted to your device and saying only which machine: "Something on laptop is waiting for you." Nothing about the session goes in it. On iPhone this needs the app on the home screen. A browser holds one subscription, so notifications come from the last machine you turned them on for.

Prefer ntfy? matter notify setup ntfy <url> sends job notifications there, with Allow and Deny buttons for approvals.

Revoking a device

matter remote ls                  # the paired devices
matter remote revoke <device>     # its name (or the start of it), or its key: it can't connect again,
                                  # and its live sessions end now

Revoking also drops its notification subscription. Signing out of your account elsewhere ends its sign-in.