zerohead
Get started

Get started

Install

Install zerohead on Linux with one command, update it, and remove it.

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

zerohead installs on Linux with x86_64 processors. macOS, Windows and other processors are coming.

curl -fsSL https://zerohead.app/install.sh | sh

What it does

The command downloads the latest release and checks its SHA-256. If the check fails, it stops and installs nothing. Then it:

  1. Puts the zerohead program in ~/.local/bin. Set ZEROHEAD_INSTALL_DIR to put it somewhere else.
  2. Runs zerohead service install, which makes zerohead your own background service and starts it. It starts again whenever you log in.
  3. Waits until zerohead answers, then prints the address, http://localhost:4747, and a link to pair your browser. The link's code works once, for 10 minutes; zerohead pair prints a new one.

Open the link to pair this browser, then go on with Your first task. More about pairing on Pair a browser.

The command needs no sudo and sends nothing anywhere except its downloads. You can read it before you run it: install.sh. If ~/.local/bin is not on your PATH, it says so and shows the line to add.

So far it has been tried on one machine: Ubuntu under WSL 2.

Where things go

WhatWhere
The program~/.local/bin/zerohead
The service~/.config/systemd/user/zerohead.service
Your data~/.local/share/zerohead, or zerohead under $XDG_DATA_HOME
The server's logjournalctl --user -u zerohead

The service runs zerohead serve with your data folder and port written into it. It also gets the PATH of the terminal you installed from, so agents find their command-line tools as they do there. If you later install an agent's tool in a new folder, run the install command again to pass the new PATH on.

Stop zerohead with systemctl --user stop zerohead, and start it again with systemctl --user start zerohead. zerohead service status says whether the service is installed and running, and with which data folder and address.

Logging out

A user service stops when you log out of your last session, which cancels runs that are still going. If you install over SSH and disconnect, zerohead stops too. To keep it running while you are logged out, you can turn on lingering for your user with loginctl enable-linger; that is your choice, and zerohead never changes it. The install command says so when lingering is off.

Without a service manager

Some systems have no user service manager (systemd --user), for example some containers and some WSL set-ups. There the command installs the program, says that it cannot start it in the background, and you start zerohead yourself when you want to use it:

zerohead serve

It prints its address and a pairing link, and runs until you press Ctrl-C or close the terminal.

Update

Run the install command again. It replaces the program with the latest release and restarts the service. The service keeps its data folder and port: an update never moves them, and the command says so when they are not the defaults. To change one, run zerohead service install with --home or --port. A restart cancels runs that are still going, as Ctrl-C does. Starting or updating zerohead never starts, retries or wakes a run.

Uninstall

curl -fsSL https://zerohead.app/install.sh | sh -s -- --uninstall

This stops and removes the service and removes the program. Your data stays in the folder the service used, and the command says which. Delete that folder yourself if you want it gone. If the program is already gone but the service is not, the command shows the two commands that remove the service.

What it needs

  • Linux on x86_64. The program is a single static file, so it does not depend on your distribution's libraries.
  • curl or GNU wget, tar, and sha256sum or shasum. Most systems have them. From the zerohead address it downloads over https only.
  • git, which company memory uses.
  • One agent's command-line tool, installed and signed in by you. Claude Code is the best tested. See Claude Code.
zeroheadHomeMIT license