zerohead
Get started

Get started

Pair a browser

How a browser gets permission to use your zerohead server, and how to add or remove one later.

The source is not public yet. It will be published under MIT. The pages under Contributing describe working on it once it is.

A browser must be paired before it can use the server. Pairing gives it a device token, which the browser keeps. The server stores only a hash of the token.

Pair the first browser

When you install zerohead, and whenever you start zerohead serve in a terminal with no paired device, it prints a pairing code and a link (the background service writes none to its log):

Pairing code: K7QF-2MXW (works once, for 10 minutes)
Open http://localhost:4747/pair#code=K7QF-2MXW
  1. Open the link. The code is already filled in.
  2. Choose a Device name you will recognise later.
  3. Select Pair device.

The code works once and lasts 10 minutes. Case, spaces and the dash do not matter when you type it.

Pair another browser

Ask for a new code. The server does not need to be running:

zerohead pair

Open the printed link in the new browser, or open /pair on the server's address and type the code into Pairing code.

Failed attempts are limited to 10 a minute across the server. After that it answers 429 for a minute. A valid code still works.

Reach it from another device on your network

By default the server listens only on this computer. To use it from a phone on the same network:

  1. Start the server with ZEROHEAD_BIND (or --bind) set to an address the phone can reach. The server then prints a warning that it is reachable from the network.
  2. Add the host name or address you will type into the phone to ZEROHEAD_ALLOWED_HOSTS. The server refuses any Host or Origin it does not expect.
  3. Pair the phone as above.

This has not been tried on a real phone.

Notifications in a browser need a secure page: https, or localhost. A plain http address on your network cannot turn them on.

To reach your computer from anywhere, read Remote access. It is built and not hosted anywhere yet.

See and remove devices

Open More, then Settings. Paired devices lists every device with when it was paired and when it was last seen. Select Revoke on a device, then Confirm revoke. Revoking deletes the device and closes its open connections. A revoked browser shows "This device was revoked" and has to pair again.

A pairing code gives full control of your companies, agents and spending. Share it with no one, and revoke any device you do not recognise.

zeroheadHomeMIT license