Hive

Install

Install Hive and give it a first task.

One command installs the binary. The console opens in your browser, on your own machine. Then you connect a model, add a project, start the runner and give the project's lead agent its first task.

curl -fsSL https://hivefleet.dev/install.sh | sh

What you need

  • macOS or Linux. On Windows, Hive runs inside WSL, the Linux that Windows runs: Run Hive on Windows has the steps. It does not run on Windows itself yet.
  • A model: a GitHub Copilot seat, an API key for another model provider, or a local model server.
  • To deliver work as pull requests: git, and the GitHub CLI (gh) logged in as a GitHub user who can see the repository. Hive opens, reads and merges pull requests through gh.
  • There is no other agent tool to install or keep logged in.

1. Install

macOS, Linux and WSL
curl -fsSL https://hivefleet.dev/install.sh | sh      # macOS, Linux and WSL; installs ~/.hive/bin/hive

The installer is one shell script. It is scripts/install.sh in the repository, and this site serves the same file, so you can read it before you run it. Then put the binary on your path, check it and start the console:

Then
export PATH="$HOME/.hive/bin:$PATH"    # add to your shell profile
hive version
hive hub                               # the console, at http://127.0.0.1:8765

The first hive hub on a machine makes the store, ~/.hive/hive.sqlite, and says so in one line. hive init --store-only makes one without starting the console, for a service or a script.

On Windows

Hive runs inside WSL, the Linux that Windows runs. Get WSL once, in PowerShell opened as administrator, and restart when it asks:

In PowerShell
wsl --install

Then open the Linux it set up, and run the install line above in it. The console opens in your Windows browser at the same address. Run Hive on Windows has every step, and how to keep Hive running once the window is closed.

With Homebrew

On macOS and Linux, and inside WSL, Homebrew installs the same binary and puts it on your path itself, so only the last two lines above are left to run. The formula is called hivefleet because Homebrew has another hive.

With Homebrew
brew install lamplitlabs/tap/hivefleet   # with Homebrew, on macOS, Linux and WSL; installs hive

Homebrew owns the file it installed, so a newer release comes with brew upgrade hivefleet, and hive update says so and installs nothing. Homebrew has the rest.

From source

With Rust 1.95 or newer and Node.js 22 or newer, one command builds the same binary. Node.js is there because the build exports the console and embeds it in the binary.

From source
cargo install --git https://github.com/lamplitlabs/hive --locked --root ~/.hive hive   # from source: Rust 1.95+, Node.js 22+

Later, with the installer or a build from source, hive update installs a newer release: it checks the download against the release's checksums, tries the new binary, and keeps the old one beside it as hive.prev. Run by hand on a fresh install, it looks at the project's own releases on GitHub for that one run, and says so. To have Hive look once a day by itself, tell it where the releases are:

hive settings set update.latest_url https://api.github.com/repos/lamplitlabs/hive/releases/latest

Releases and hive update has the details.

2. Open the console

hive hub serves the console at http://127.0.0.1:8765. Open that address in your browser. Only this computer can reach it. It serves the console and nothing more: the runner, which plans jobs and starts agents, is started separately (step 5).

On a new machine, Home shows the card Set up Hive with three steps, in this order: Connect a model provider, Add a project and Keep Hive running. Steps 3 to 5 below are those three; this page gives the command for a terminal as well.

The console describes every page. On a Mac the same console also comes as an app of its own: the Mac app.

3. Connect a model

Agents need a model. GitHub Copilot is the default. In the console, Connect a model provider on the card opens the same dialog as Settings → Harness → Connect GitHub Copilot. For GitHub Copilot it starts GitHub's device login: it shows a code, you enter it on github.com, and every agent on this machine runs with that login from then on. From a terminal:

hive harness login                     # GitHub's device flow: open the address, type the code
hive harness status                    # the provider, the login, the models and limits in force

Another provider takes a key instead. Choose it, then hand it the key on standard input:

hive settings set provider anthropic
hive harness login --provider anthropic --with-token   # reads the key on stdin

A key is kept under ~/.hive/private/providers/, readable by you alone, and is never echoed. Every provider Hive knows is on the harness page.

4. Add a project

Add a project on the card takes the path of a checkout and a test command, such as npm test or cargo test. The test command is optional: when one is set, it must pass before anything is delivered. Left empty, the project takes the check its onboarding suggests, and with neither no end check runs. Adding the project queues its onboarding: an agent reads the repository, runs that check, posts its first findings and writes down the environment a fresh machine needs. From a terminal, in the checkout:

hive init --name my-app --verify 'npm test'

5. Keep Hive running

The runner is the part of Hive that plans jobs and starts agents. Until it runs, a task waits in the queue. Keep Hive running, the third step of the card, installs the runner and the console as user services (launchd on macOS, systemd --user on Linux), so neither ends with your terminal. From a terminal:

hive service install     # the runner and the console as user services
hive daemon              # or: the runner alone, in a second terminal, installing nothing

The button in the console hands the console over to the service by itself. After hive service install in a terminal, stop the hive hub you started by hand: the service's console cannot take the address while the first one holds it, and tries again every 30 seconds. When the card is gone, Home shows a notice with a button: Start runner while no runner runs, Keep Hive running while one runs in a terminal only.

The runner covers the services, self-update, backups and what happens when a run stalls.

6. Give the lead a task

New task asks for a title, what you want, and a priority. With the runner running, the project's lead agent picks the task up: it cuts the steps and the agents begin. Open the task and watch every command, every file and every word as it happens, and type into the box when you want to steer.

hive task new --project my-app \
  --title 'Rate-limit the public API' \
  --brief 'Per key, 600 a minute, with the usual headers.'

7. Say yes or no

What needs your yes or no waits on the For you page, and Home shows the first five under Needs you: a question, a proposal, a request for more machines, a hard stop. A yes-or-no question shows two buttons and an open one an answer box, with the agents' reasoning beside them. Each waits for your answer, and everything else carries on. There is one exception: when the self-improvement loop pauses because its fixtures tell nothing apart and a day passes with no answer, it answers that one question itself (Hard stops and the kill switch).

The work reaches GitHub as pull requests. A review agent merges the ones the agents may decide on, and the console shows you the rest under Needs your review, on the task and on the Sessions page. Set review.merge to ask in Settings to see every one. Delivery and the reviewer say how.

Where to go next

The store is one SQLite file, ~/.hive/hive.sqlite. Once a month, rows older than 90 days that nothing reads back move to hive-archive.sqlite beside it. Set HIVE_HOME to keep both in another folder.