Skip to content

Self-hosting and security

Add devices

Make a join code on the hub, join a laptop as a spoke, join a phone or a browser as a guest, and leave or remove a device.

  • 5 min read
  • 7 sections

Add devices ​

Every device joins with a one-time code from the hub and a short comparison code you check on both screens.

Make a join code ​

On the hub, under Add a device:

  1. Choose whether the device that joins is an owner. Leave it off for an ordinary device. See Owner devices.
  2. Choose Make a join code.
  3. Octant shows the code as a QR code and as text, with the time left. The code works once and expires after a few minutes.
  4. The other device joins with the code (below).
  5. The device's request appears with a short comparison code. If it matches the code on the other device, choose Approve. If not, choose Deny.

From a shell on the hub:

sh
octant hub join-code

Add --owner to make the device that joins an owner.

Join a hub from a laptop ​

Turn on the laptop's remote listener first. Then, under Settings → Remote access → Join a hub:

  1. Paste the join code and choose Join the hub.
  2. Octant shows the hub's name and a comparison code. Check that it matches the one on the hub, then approve on the hub.
  3. The hub grant screen opens. It lists what the hub may do on this laptop. Choose the items and select Accept. See Choose what the hub may do.

From a shell on the laptop:

sh
octant hub join <code>

The shell shows the same comparison code and asks whether to keep the default grant. Pass --items roster,introduce to choose items without a question, or --items none for none.

To add a server you reach only over SSH, without visiting it, see Add a computer over SSH. That page describes an open pull request that is not yet in a release.

Join a phone as a guest ​

A phone joins as a guest, not as a spoke. A guest runs no agents, has no files or Projects of its own, and receives no delegated work. It opens each computer on the hub the way an ordinary paired phone would.

  1. On the hub, make a join code (Add a device).
  2. On the phone, open Add computer. Under Join a hub as a guest, scan the hub's QR code or paste the code, then choose Join the hub. For an owner code, turn on This is an owner code first.
  3. The phone shows a comparison code. Check that it matches the one on the hub, then approve on the hub.
  4. The phone asks each computer on the hub to let it in. Every computer that does appears in the phone's list, ready to open. One that does not shows as Not accepted on that computer. There is nothing to do on the phone: the choice is made on that computer.

Each computer decides for itself. A spoke lets a guest in only if its hub grant has Introduce ticked and it accepted the guest from the hub's signed roster. The phone talks to each computer directly; nothing it does on a computer passes through the hub.

When the app opens, the phone asks the hub for its roster again. A computer that left the hub disappears from the list, and one that joined is asked to let the phone in. If the hub is not reachable, the phone keeps what it has. If the hub removed the phone, the computers added through it are removed.

A guest can do what a paired phone can on each computer that let it in: read threads, answer approvals, and start work, within what that computer allows. It cannot change the hub, the roster or any computer's grant, and you can revoke it on any computer.

Join from a browser ​

A browser on your tailnet can join too, once the hub serves its web app with a Tailscale certificate.

  1. Open the hub's web app at its tailnet name, then go to Settings → Remote access → Hub.
  2. Paste the hub's join code. For an owner code, tick This is an owner code: the browser makes a passkey for that address first and sends only its public key. If the browser cannot make a passkey, the box stays off and it can join only as a plain guest. If you cancel the passkey, nothing is sent.
  3. Compare the short code with the one the hub shows, and approve there.

A browser reaches only the address that served its page and the tailnet names the hub's roster lists for its computers, and it checks each one's certificate itself. After you join, the hub's page lists the computers on the hub. A computer with a tailnet name and its Tailscale certificate on gets an Open link to its own web app and a Connect button, which asks that computer directly (not through the hub) to know this browser. A computer you have not set to accept new guests refuses it, and says so.

Leave the hub forgets the hub on this browser; remove the browser on the hub too.

Leave a hub ​

Leaving is done on the spoke. In Settings → Remote access → Join a hub, choose Leave the hub and confirm, or run octant hub leave. The hub is told when it can be reached and drops the computer from its roster. If the hub is down, remove the computer from the roster there later. Your threads, Projects and sign-ins stay as they are.

Remove a device ​

Removing is done on the hub. Under Members, choose Remove next to a device and confirm, or run octant hub remove <name or id>. List the members with octant hub status. Other spokes drop what they held for it at the next roster.

Next steps ​

Octant documentation · local-first by design