The Hive · User guide
Install
You need a Claude account. The guide has the full picture; this page has the commands and what each one does.
Linux with systemd:
curl -fsSL https://hivelab.ca/install.sh | sh
It asks for your password once, makes a Linux user called hive, installs git, Python, ffmpeg, Claude Code and Codex if they're missing, starts setting up voice calls in the background where the machine has room for them (a few more minutes, and the install itself ends without waiting for it, on a Mac or Windows VM too; Settings › This device says how it's going, or why it was skipped; hive module remove phone voice takes them out), turns on the reminder timer (it posts what hive remind has due, once a minute, with no model), and prints an address. Open that in a browser on the same machine, sign in to Claude, and say what you want. Its closing message also links to the code, issues and updates.
- To stay in a terminal instead of the browser, run
hive setup: it asks the same three steps, thenhive. - To open it again, click the Hive icon in your app menu (it opens the address your browser already knows). To see the address:
sudo -iu hive hive web. - On a server, forward the port:
ssh -L PORT:127.0.0.1:PORT server, then open the address on your own machine. The install adds the server module, which checks the setup and gives you backups and memory limits. - The sandbox around agents needs bubblewrap. The install adds it when it can use sudo. If you install without sudo, install it yourself first (
sudo apt install bubblewrapon Ubuntu or Debian); until then no agent starts and the first ask says so. - On Ubuntu 24.04 it adds an AppArmor profile so that bubblewrap can make the sandbox. It applies to every user of the machine and widens the kernel's attack surface for them. Uninstalling doesn't remove it, but prints the command that does.
- Checked on Ubuntu 24.04, Debian 12 and Fedora: a fresh install with a real systemd user session (in containers, using the own-account install below) left no failed units, and every scheduled job ran clean when started by hand.
Signing the desktop app's messages. On a main install (not --this-account), root keeps a Hive id and the app keys it has pinned in /var/lib/hive-word/<user>/pins.json, which the Hive's user can read but not change. When the Hive app runs the install line, it passes its public key, root pins it, and the installer says the Hive id. Running the line again pins a new app key too; a key root withdrew stays withdrawn.
- With systemd, running
sudo ./install.shalso sets up a small root service on127.0.0.1:857(hive-pin.socket) that takes the app's pin requests, relayed by the Hive's web app. - On a server where no app handed over a key, a first install with
sudo ./install.shprints ahive://link at the end. In the Hive app, choose Add a Hive and paste it. It works once, within 24 hours, so keep it to yourself. - For a new link, run
sudo hive-admin pin-link USER; it replaces any older one. The one-line installer doesn't print the link, so use this command there. If it says the machine has no pinner, runsudo ./install.shagain. - With
--this-accountthe Hive runs as you, so its messages can't be proved there.
Windows 10 or 11, in PowerShell:
irm https://hivelab.ca/install.ps1 | iex
It sets up WSL 2 if needed (restart, then run the line again) and makes a separate Linux system called Hive, with your Windows drives and programs switched off for its users. Agents aren't root there, but a flaw that gave one root could turn them back on. hive web shows the address.
In your own account, without sudo:
curl -fsSL https://hivelab.ca/install.sh | sh -s -- --this-account
It runs as you from ~/hive (HIVE_DIR=/path picks another folder) and needs git and Python already there. Agents run in a sandbox inside your account. If you choose to run without it, or this machine can't run it, they have full rights to your account: all your files, ~/.ssh and your logins. No agent starts until the sandbox works or you choose. You type yes to this first; HIVE_ACCEPT=1 accepts it where there's no terminal. Voice calls aren't set up here; add them with hive module add phone && phone setup (and hive module add voice && voice setup for memos), which needs ffmpeg and python3-venv or uv.
Coming from a v0.x Hive? The install finds it and asks, then removes the old program and brings your projects, notes and chats across. Logins and keys stay behind, so you sign in again. The old folder stays whole as your backup. If a run fails halfway, run the line again. HIVE_ACCEPT=1 skips the question.
A second Hive on the same machine. Put HIVE_USER=name in front of the install line to add another Hive beside the first, with its own Linux user, home, port and sign-in. The first one is left as it was.
- Linux:
curl -fsSL https://hivelab.ca/install.sh | HIVE_USER=work sh, thensudo -iu work hive webshows its address. - Windows:
$env:HIVE_USER = 'work'; irm https://hivelab.ca/install.ps1 | iex. Its command ishive-work(a name that already starts withhive-is used as it is). The desktop icon stays with the first Hive. On a Mac,HIVE_USER=workgoes in front ofsh, the command is named the same way, andHive.appstays with the first Hive. - If that command name already opens another Hive, the install stops and leaves it alone.
- The main install gives each Hive the first free port from 8077 to 8176 that no other Hive has. It picks under a lock and keeps the list in
/var/lib/hive/ports, which only root can write, so two installs at once get two ports and running the install again keeps the same one. Removing a Hive gives its port back. - The main install also writes
/usr/local/sbin/hive-admin. As root,hive-admin list(add--jsonfor programs) shows each Hive in that Linux system: its user, port, whether it is running, version and home folder. The JSON also has its update state, the memory each Hive's user holds now, and the system's total and available memory (on a Mac or Windows, the VM's).sudo hive-admin stop USERstops all of that Hive's services and keeps it stopped after a reboot, andsudo hive-admin start USERbrings it back.sudo hive-admin open USERprints only that Hive's local sign-in address, starting the Hive if it was stopped. The address holds the key to that Hive, so keep it to yourself. All three refuse a Hive that is still installing.
macOS has a test build that hasn't run on a real Mac yet. See the guide's list of what isn't tested.
To read the script first, download it, read it, then run it:
curl -fsSL https://hivelab.ca/install.sh -o install.sh
less install.sh
sh install.sh
The install.sh address on the site sends you to the file get.sh in https://github.com/ihsan-sa/hive (branch v2); on Windows install.ps1 is get.ps1 (the same way). It clones that branch, and the repo's own install.sh is the second script it then runs, as root for the main install. The script clones that branch over HTTPS, and runs Anthropic's own installer if Claude Code is missing. This first download isn't checked against a signature: only updates are. Or clone to ~/core in a spare account, install Claude Code, and run ~/core/install.sh.
If the install stops partway, it says which step and why, and where the log is. Fix what it names and run the same line again. It carries on from where it stopped.
"Failed to connect to bus" from systemctl --user. The shell has no systemd user session (the full message ends "$DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined"). sudo without -i, or a plain su, doesn't set it up. The install adds a line setting XDG_RUNTIME_DIR to the login profile of the account the Hive runs as (hive, or your own account if you installed with --this-account). Open a fresh login shell for it (sudo -iu hive, or log in again), check that echo $XDG_RUNTIME_DIR prints /run/user/ and a number, then run the command there. In a shell you can't restart, export XDG_RUNTIME_DIR=/run/user/$(id -u) does the same for that shell. On a server, run sudo loginctl enable-linger hive once so its services keep running after you log out. If it still fails, open an issue with your Linux version and the last line the installer printed.
How we check installs
After every release, a fresh machine installs it and we look for failures. This is what runs:
- A container (rootless podman) with a real systemd as its first process, on Ubuntu 24.04, Debian 12 and Fedora (latest).
- A new user with lingering turned on, so it gets a real
systemd --usersession, as it would on a server. - The public installer in your own account (
get.sh --this-account), downloaded from the site like any user would. - Every scheduled job started by hand (update, asks, outcomes, progress, report), then
systemctl --user --failed. The check passes only if nothing failed after the install and nothing failed after those jobs ran. - A second run installs the release before and lets the Hive's own updater move it to the new one.
Every part of this uses the public installer and public releases, so you can repeat it on your own machine with any rootless container tool.
What it does not cover:
- The Claude sign-in. The check uses a stand-in for the
claudeprogram, so nothing is signed in and no agent runs. - macOS and Windows. The Mac build and WSL have their own tests; they are not part of this check.
- Other Linux versions and non-systemd systems. Only the three above are tried.
- A machine with years of other software on it. The containers are clean, so a clash with something you already run would not show up here.