Skip to content
hiveDOCS
GITHUB ↗v1.3.0-rc.3
Ask Beeanswers from these docs

Ask anything about Hive. Bee reads the most relevant pages of these docs and answers from them, with links to where it found the answer.

OR
Hand the docs to your own agent

Help me understand and set up Hive. Read https://hive.admir-saheta.com/agent-guide.md first, then walk me through it step by step.

Install Hive

Install Hive on macOS, Linux, or Windows, build it from source, and start your first session.

Hive is a terminal workspace for running persistent agent sessions. Install a release for the quickest setup, or build the CLI from source if you want to work on Hive itself.

Requirements

Install method Requirements
Release installer (macOS, Linux) macOS 13+ or Linux, a terminal, and curl
Release installer (Windows) Windows 10 1809+ or Windows 11 (amd64) and PowerShell
Build from source macOS, Linux, or Windows, Git, and Go 1.26 or later

Hive is a terminal application, so it works with your usual terminal emulator. Truecolor provides the richest colors; 256-color terminals and NO_COLOR are also supported.

Install a release

On macOS or Linux, the install script downloads and installs the current Hive release:

sh
curl -fsSL https://hive.admir-saheta.com/install.sh | sh

The command uses the installer served by this site, which in turn fetches the install script from the Hive repository. If the hive command is not found after installation, open a new terminal and check that the install location is on your PATH.

The installer places Hive in ~/.local/bin by default. Set HIVE_INSTALL_DIR to choose another directory, HIVE_CHANNEL=preview to install release candidates, or HIVE_VERSION to select a release tag. Other options include Homebrew, Nix, and go install; see the repository README for the current commands.

Windows

On Windows 10 1809 or later (amd64), run this in PowerShell:

powershell
irm https://hive.admir-saheta.com/install.ps1 | iex

The installer verifies the release checksum, installs hive.exe in %LOCALAPPDATA%\Programs\Hive, and adds it to your user PATH. Agents run in Windows pseudo consoles (ConPTY). See Platforms and Windows for the support matrix, where Hive keeps its files, and what differs on Windows.

To inspect the available commands, run:

sh
hive --help

Build from source

Building from source is useful when contributing to Hive or when you want to run the code in a local checkout. Clone the repository and build the CLI:

sh
git clone https://github.com/admirable-oss/hive.git
cd hive
make build

If you prefer to use Go directly, build the command package:

sh
go build -o hive ./cmd/hive

The resulting hive executable is in the repository directory. Prefix commands with ./ to run that local build, or move it to a directory on your PATH to run it as hive from anywhere.

Start Hive

Hive starts its daemon automatically when a command needs it. To open the multiplexer, run:

sh
hive

If you built from source in the repository directory, use ./hive instead.

To try Hive with four demo agents, run hive demo first, then open the workspace:

sh
hive demo
hive

In the multiplexer, use Ctrl+B followed by D to detach. Detaching leaves the agents running, so you can return later by running hive again. To stop the runtime and all agents it manages, run:

sh
hive stop

For a guided tour of panes, tabs, and the other keybindings, continue to Quick Start.

Start the daemon at login (optional)

You can install Hive’s daemon as a user service so it starts when you log in and restarts if it exits. Hive uses launchd on macOS, a systemd user service on Linux, and a Task Scheduler task on Windows:

sh
hive daemon install

The daemon is optional. Without a service, Hive starts it on demand when you run a command that needs it.

Update and roll back

hive update downloads the next release, verifies its checksum and signature, checks that it runs, and swaps it in. Running daemons restart on the new binary while agents keep running under their shims. If a release misbehaves, hive update --rollback restores the previous binary:

sh
hive update --check
hive update
hive update --rollback

Next steps