Skip to content

Self-hosting and security

Set up a hub

Turn on the hub role, run the hub at boot, serve the web app to browsers on your tailnet, and choose what the hub may do on each spoke.

  • 5 min read
  • 6 sections

Set up a hub ​

Turn one computer into the hub, keep it running after a restart, and decide on each spoke what the hub may do there.

Before you start ​

  • [ ] The computer runs macOS or Linux. The hub role is not available on Windows.
  • [ ] Its remote listener is on, on a Tailscale or private LAN address, with the certificate Octant makes itself. See Remote Access.
  • [ ] Its disk is encrypted: FileVault on macOS, LUKS on Linux.
  • [ ] You can enter an administrator password once, to install the boot service.

Turn on the hub ​

In the desktop app on the hub computer:

  1. Open Settings → Remote access.
  2. Check that the remote listener is on.
  3. Turn on Act as hub.

If Octant cannot turn it on, it says why in one sentence, for example that the listener is off or is not on a private address.

From a shell on the hub computer:

sh
octant hub enable

The hub keeps its keys in a file in the Octant data folder that only your account can read. That is safe only on an encrypted disk, so octant hub enable warns you if the disk is not encrypted.

To turn it off, use the switch again, or run octant hub disable.

Start the hub at boot ​

On macOS and Linux the hub should start at boot with no one logged in. That needs one administrator step:

  • octant hub enable prints the one command to run. Run it yourself, and enter your administrator password when asked.
  • Or run octant hub enable --install-service. Octant runs that one command for you and you enter the password.
  • Octant never runs an administrator command unless you pass --install-service.
  • On macOS the boot service is a launch daemon. On Linux it is a systemd user service with lingering turned on.
  • On macOS, octant hub enable also prints sudo pmset -a autorestart 1. Run it if you want the computer to start again after a power cut.

A disk that asks for a password at start-up waits for you after a power cut. Until you unlock it, the hub is down.

To go back to the ordinary login service, run the command octant hub disable prints, or run octant hub disable --remove-service.

Open the web app from a browser on your tailnet ​

The hub's listener serves the same web app as the desktop window, so a laptop or phone without Octant can open it in a browser on your tailnet. A browser cannot check the certificate fingerprint the apps use, so it needs a certificate it already trusts. Tailscale can supply one.

What you should know first. Tailscale gets this certificate from a public authority. Public authorities publish every certificate they issue in open logs (certificate transparency). This computer's tailnet name, for example mini.tail1234.ts.net, will appear in those logs for anyone to read. The logs show the name, not your traffic.

You also need:

  • HTTPS turned on for your tailnet in the Tailscale admin console;
  • Tailscale installed and signed in on this computer.

Turn it on under Settings → Remote access → Tailscale certificate, or run:

sh
octant hub certificate --enable --acknowledge-transparency

It is off by default, and the switch stays off until you tick that you read the note above. Octant runs the tailscale command on this computer to ask for the certificate. If it cannot, it says which requirement is missing.

  • octant hub certificate --status shows whether it is on, the name, and whether a renewal is due.
  • octant hub certificate --disable turns it off.

Octant asks for a new certificate before the old one expires. Each new certificate, and turning the option on or off, briefly restarts the remote listener.

The listener keeps the certificate Octant made and serves the Tailscale one only to a browser that opens this computer's tailnet name. The phone app, the desktop apps and the other computers on the hub still see the original certificate and fingerprint, so nothing they hold changes. If Tailscale hands over a certificate that does not check out, Octant does not install it and keeps serving the original.

Choose what the hub may do ​

The hub grant is a closed list you choose on each spoke when it joins. You can change every item, at any time, on the spoke. Only the spoke can change it.

ItemWhat it lets the hub do
RosterSend this computer the hub's signed list of members. On by default.
IntroduceIntroduce other members to this computer. Each becomes a full member here. On by default.
OwnersLet your owner devices act here after a fresh unlock. On by default.
StatusRead this computer's resources, thread titles and states, and waiting approvals.
WakeHold this computer's routine times and wake it before one is due.
StandbyLet a standby hub you named take over the roster while the hub is down.
PushSend this computer's phone notifications through the hub.
ProvisionOffer settings as proposals that you apply.
Sign-inAsk you to sign in to a Claude or Codex account here. Nothing starts until you accept.
ActAct here as a paired device would, in Projects you name.
UsageRead this computer's provider plan limits. No sign-ins, threads, or costs. Off at first.

Ticking an item records your choice. Some items need the hub to do its part too:

  • Introduce makes this computer accept the other spokes and your phones as full members, which also lets them delegate work.

  • Owners works for your own owner devices.

  • Wake works once the hub's wake service is on.

  • Standby lets a standby hub you named act here while the hub is down.

  • Push works once the hub's push sender is on.

  • Provision works once the hub's offers are on.

  • Sign-in works for a request from the hub's window or your owner device (see Ask a computer to sign in).

  • Act is recorded, but nothing in the current release uses it. Open pull requests let it name the Projects where a device the hub introduced may start threads; see Computers through the hub.

  • Usage lets the hub read the plan-limit readings this computer shows under Usage › Limits. Nothing in the current release shows them on the hub yet.

Whatever you tick, the computer keeps its files, sign-ins, sandbox and every approval.

To change the grant later, open Settings → Remote access → Join a hub, or run octant hub grant --items <list>. octant hub grant on its own shows the current grant.

Next steps ​

Octant documentation · local-first by design