# Use your machines from a phone or browser

From a phone or computer in your Tailscale tailnet, open this Mac's machines in a browser and sign in with a passkey.

## Before you start

- Tailscale runs on this Mac and on the other device, in the same tailnet.
- Your tailnet issues HTTPS certificates. Turn them on under **DNS** in Tailscale's admin console. The certificate puts this Mac's tailnet name in public certificate logs.

## Turn on the tailnet browser

1. Choose **OSMates > Settings**, then click **Remote**.
2. Under **Tailnet Browser**, turn on **Let browsers in your tailnet sign in**.
3. Wait until **Status** says **Serving**. The address appears below it.
4. Click **Add a Passkey**.
5. Scan the QR code with the phone, or open the link on the other computer.
6. Name the passkey and tap **Add Passkey**.
7. Confirm with Face ID, Touch ID, or the device's code.

The link works once, for 10 minutes. In Terminal, `osmates remote set tailnet on` turns the browser on, and `osmates remote passkey add` prints the link.

## Sign in and answer questions

1. On the device, open the address, such as `https://studio.tail1234.ts.net:7332`.
2. Tap **Sign In with Passkey**.

To allow or refuse an agent's question, tap **Answer**. A session ends after 12 hours, or after 30 minutes without use.

For notifications on an iPhone or iPad, add the address to the Home Screen from Safari. Open it from there, sign in, and tap **Turn On Notifications**. Each new question then sends a notification, which names only the Mac and the machine.

## View and drive a machine

1. Tap **View** beside a running machine. For one that's off, tap **Start** first.
2. Tap or click in the view to use the machine.
3. Type in the box above the view and press Return to send the text. In the empty box, Return sends Return.

On a computer, click the view and type instead. Keys reach the machine by their place on the keyboard, with [Mac Style shortcuts](https://osmates.com/docs/keyboard) in Windows and Linux. For a key your device keeps, such as Command-Tab, choose it from **Keys**.

**Shut Down** in the **Machine** menu never forces the machine off. This Mac records each action under the passkey's name.

While an agent drives the machine, **Take Control**, **Resume Agent**, and the **Machine** menu's agent items work as in [Take control from an agent](https://osmates.com/docs/agent-control).

## Remove a passkey

In **Remote** settings, click **Remove** beside the passkey. Its browsers are signed out and get no more notifications. In Terminal, find it with `osmates remote devices`, then run `osmates remote unpair "My iPhone"`.

A new tailnet name for this Mac needs new passkeys.

## Limits

- Viewing has the same [limits as on a paired Mac](https://osmates.com/docs/remote#limits). For a macOS machine at its login window, choose **Machine > Sign In**.
- This Mac must stay [awake and logged in](https://osmates.com/docs/remote#keep-a-host-reachable).
