Getting Started
Install hive, configure your environment, and launch your first AI agent session in under five minutes.
Installation
Prerequisites
- Git — available in your PATH
- tmux — required for session management and status monitoring
tmux is required
Hive uses tmux for session management, agent monitoring, and preview panes. Install it before proceeding — hive will not function without it.
Homebrew
brew install tmux
brew install colonyops/tap/hive
GitHub Release
Pre-built binaries for macOS and Linux are available on the GitHub Releases page. Download the appropriate archive for your platform, extract it, and place the binary on your PATH.
Go Install
go install github.com/colonyops/hive@latest
Mise
Install via mise using the GitHub backend:
mise use -g github:colonyops/hive
Verify
hive --version
hive doctor # Check configuration and environment
hive config # Dump resolved configuration as JSON
Quick Start
1. Run the setup wizard
hive init
The interactive wizard:
- Detects installed AI agents (Claude, Codex, OpenCode, and others) and writes
~/.config/hive/config.yamlwith your preferred default - Appends
alias hv='tmux new-session -As hive hive'to your shell rc. The path defaults to the file for your$SHELL(~/.zshrc,~/.bashrc, orconfig.fish), falling back to~/.zshrc. The wizard lets you change it if your shell config lives elsewhere. - Appends
bind-key h switch-client -t hiveto your~/.tmux.conf(or$XDG_CONFIG_HOME/tmux/tmux.conf)
Type a workspace path to complete setup (tab or → to autocomplete directories), then follow the remaining prompts.
2. Launch
hv
Hive auto-detects tmux, bundles its own session management scripts, and registers default keybindings — no other config needed. Press n to create sessions, enter to open them, and : for the command palette.
Manual setup (alternative)
If you prefer to configure things by hand instead of using the wizard:
Shell alias — add to your .bashrc / .zshrc:
alias hv='tmux new-session -As hive hive'
This runs hive inside a dedicated tmux session called hive. If the session already exists, it reattaches.
tmux keybinding — add to ~/.tmux.conf:
bind l switch-client -t hive
Now <prefix> l returns you to hive from any agent session.
Config file — tell hive where your repos live:
# ~/.config/hive/config.yaml
workspaces:
- ~/projects
- ~/work
Info
Without workspaces, you can still create sessions from the CLI by running hive new from within a git repository:
cd ~/projects/my-app
hive new Fix Auth Bug
Output and exit codes
Commands print results to stdout and progress or warnings to stderr. A command with a --json flag prints human-readable text by default. With --json, stdout carries JSON Lines: one compact JSON value per line. Commands that always print JSON, such as hive batch, hive config, hive msg create, and hive desktop operations, take no flag. The hive hc, hive msg and hive todo operations print JSON Lines when stdout is not a terminal, and hive hc list, get and context get print a tree, a styled item or markdown at a terminal.
When a command fails in JSON mode, stderr carries one line, {"kind": "...", "message": "..."}, and nothing is added to stdout. Without JSON mode, stderr carries the message as text. The exit code follows the kind:
| Kind | Exit code | Meaning |
|---|---|---|
invalid |
2 | The arguments or input are wrong. |
not_found |
3 | The session, item, topic, or document does not exist. |
conflict |
4 | The name or path is already taken. |
unavailable |
5 | The daemon, server, or Hive Desktop cannot be reached. |
unauthenticated |
6 | The call needs a sign-in. |
internal |
1 | Any other failure. |
Next Steps
- Sessions — How sessions, agents, and lifecycle work
- Task Tracking — Built-in epics and tasks for multi-agent coordination
- Context — Shared storage and the review tool
- Messaging — Inter-agent pub/sub communication
- Todos — Operator todo lifecycle and CLI usage