Skip to Content
HeyBug docs
Get started

Install the CLI and MCP server

The `@@CLI@@` command is one program.

The heybug command is one program. It runs your tests from a terminal or CI, and heybug mcp lets an AI assistant on your machine call HeyBug tools. This page covers the install, a check that it works, and what to do when it does not.

1. Install with one command

On macOS or Linux, run:

curl -fsSL https://opentest.nagara.cloud/install.sh | sh

The script detects your system, downloads the release archive for it, and checks the SHA-256 checksum before it installs anything. It puts the binary in ~/.local/bin/heybug. To change the folder, set HEYBUG_INSTALL_DIR. To pin a release, set HEYBUG_VERSION to a tag such as <tag>:

curl -fsSL https://opentest.nagara.cloud/install.sh | HEYBUG_VERSION=<tag> sh

Windows is not covered by the script. Download the .zip for Windows from the GitHub releases page of the project, then unzip it and put heybug.exe on your PATH.

2. Install without the script

Pick one of these if you cannot run the script.

Download the binary. Each release has an archive named heybug_<version>_<os>_<arch>.tar.gz and a SHA256SUMS file. Check the archive, then unpack it:

sha256sum --ignore-missing -c SHA256SUMS
tar -xzf heybug_<version>_linux_amd64.tar.gz
mv heybug_<version>_linux_amd64/heybug ~/.local/bin/

Build with Go. You need Go 1.23 or newer:

go install github.com/catalysync/heybug/backend/cmd/heybug@latest

A binary built this way reports dev as its version, because the release version is set only on release builds.

3. Check the install

heybug version

It prints the version of the binary, for example a release tag, or dev for a go install build. There is no --version flag, so use the version command.

Then sign in. This opens your browser:

heybug auth login

On a machine without a browser, create a key under API keys (/settings/tokens) and pipe it in:

printf '%s' "$TOKEN" | heybug auth login --token-stdin

Check which account and workspace the CLI is using:

heybug auth status

The output shows the user, workspace, role, the start of the key and the server. A key that the server rejects stops the check with exit code 3.

In CI, set HEYBUG_TOKEN as a secret instead of running heybug auth login. Before the tests start, confirm the identity the job will use:

heybug auth status --output json

4. Connect an AI assistant

The MCP server is the heybug mcp command. Print the config for your client with:

heybug mcp-config <client>

The usage line lists the clients the command accepts. Paste the printed config into your client's MCP settings. Or open Connect an agent (/connect) in the web app. It shows the same setup with a key already filled in.

Once connected, ask your assistant to call the heybug_run tool on a URL. It returns the pass and fail results from a real browser run.

5. Run a first test

heybug run --url https://your.app

The command exits with 0 when every test passes, and with 1 otherwise. See CLI for all commands and MCP for the tool list.

Troubleshooting

heybug: command not found after the install. The install folder is not on your PATH. The script prints the line to add. For the default folder, add this to your shell profile (~/.bashrc, ~/.zshrc), then open a new terminal:

export PATH="$HOME/.local/bin:$PATH"

For a go install build, the binary is in $(go env GOPATH)/bin. Add that folder to your PATH instead.

heybug runs an old version. An older copy is earlier on your PATH. Run which -a heybug to list every copy, then remove or move the old one.

unsupported OS or unsupported architecture. The script only handles Linux and macOS on x86_64 or arm64. Use the Windows download, or build with Go.

could not download SHA256SUMS. The network blocked the download, or the HEYBUG_VERSION tag does not exist. Check the tag, then run the command again.

no release archive for <os>/<arch>. The release has no build for your machine. Build with Go instead.

checksum mismatch. The download changed or was cut short. The script deletes it and installs nothing. Run the command again on a stable network. If it fails twice, do not install that file by hand, and report it.

need curl or wget, need tar, or need sha256sum or shasum. Install the missing tool with your system package manager, then run the script again.

No token given. Set HEYBUG_TOKEN, or pipe a token with --token-stdin. Create a key under API keys (/settings/tokens).

On this page