Skip to content

Install the binary ​

Buggregator is one file. Download it, make it executable, run it. No Docker, no PHP, no database server.

Setting it up with an AI agent (Claude Code, Cursor, Codex)? Give it this page for agents.

1. Download ​

With the install script ​

Linux and macOS:

bash
curl -fsSL https://raw.githubusercontent.com/buggregator/server/master/scripts/install.sh | sh

It picks the file for your system and CPU, checks it against the release's signed checksums.txt (Verify a download), and puts it in ~/.local/bin/buggregator. No sudo. If ~/.local/bin is not in your PATH, the script says so; then run ~/.local/bin/buggregator.

Windows (PowerShell):

powershell
irm https://raw.githubusercontent.com/buggregator/server/master/scripts/install.ps1 | iex

It puts buggregator.exe in %LOCALAPPDATA%\Programs\buggregator.

Both scripts take these environment variables:

VariableWhat it does
BUGGREGATOR_VERSIONa release tag, e.g. v2.6.0; default: the latest release
BUGGREGATOR_INSTALL_DIRanother folder for the binary
BUGGREGATOR_NO_VERIFY=1skip all checks; only for releases without checksums.txt (v2.5.0 and older)
BUGGREGATOR_NO_SIGNATURE=1install without checksums.txt.sig; only for a mirror you trust that has none

Example — a fixed version into ~/bin:

bash
curl -fsSL https://raw.githubusercontent.com/buggregator/server/master/scripts/install.sh \
  | BUGGREGATOR_VERSION=v2.6.0 BUGGREGATOR_INSTALL_DIR="$HOME/bin" sh

The scripts and checksums.txt come with v2.6.0. To install v2.5.0 or older with the script, add BUGGREGATOR_NO_VERIFY=1.

By hand ​

Pick the file for your system from the latest release:

SystemFile
Linux, x86-64buggregator-linux-amd64
Linux, ARM64 (Raspberry Pi 4/5, AWS Graviton)buggregator-linux-arm64
macOS, Apple Silicon (M1 and later)buggregator-darwin-arm64
macOS, Intelbuggregator-darwin-amd64
Windows, x86-64buggregator-windows-amd64.exe
Windows, ARM64 (since v2.6.0)buggregator-windows-arm64.exe

Not sure which one? Run uname -m: x86_64 means amd64, arm64 or aarch64 means arm64.

Linux and macOS, e.g. Linux x86-64:

bash
curl -fsSL -o buggregator https://github.com/buggregator/server/releases/latest/download/buggregator-linux-amd64
chmod +x buggregator

Windows:

powershell
Invoke-WebRequest https://github.com/buggregator/server/releases/latest/download/buggregator-windows-amd64.exe -OutFile buggregator.exe

Verify a download ​

Since v2.11.0, every release has a signed list of checksums. You can check two things by hand:

  1. The list is ours. checksums.txt.sig is an ed25519 signature of checksums.txt, made with the Buggregator release key.
  2. Your file is the one in the list. checksums.txt holds the SHA-256 of every file of the release.

Save the public key as buggregator-release.pem:

text
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAbFthyZgjx8k7TUu4ZekM3sa0zSxSRzOTaX2BfxaUH2I=
-----END PUBLIC KEY-----

It is the same key the server uses to check an update from the UI (internal/selfupdate/verify.go).

Linux, e.g. x86-64 (needs OpenSSL 3.0 or newer):

bash
base=https://github.com/buggregator/server/releases/download/v2.11.0
curl -fsSLO "$base/checksums.txt"
curl -fsSLO "$base/checksums.txt.sig"
curl -fsSLO "$base/buggregator-linux-amd64"

openssl pkeyutl -verify -pubin -inkey buggregator-release.pem -rawin \
  -in checksums.txt -sigfile checksums.txt.sig
# Signature Verified Successfully

grep ' buggregator-linux-amd64$' checksums.txt | sha256sum -c
# buggregator-linux-amd64: OK

macOS: the openssl that comes with macOS is LibreSSL. Use OpenSSL 3 from Homebrew (brew install openssl@3, then $(brew --prefix openssl@3)/bin/openssl in place of openssl), and shasum -a 256 -c in place of sha256sum -c.

Windows (PowerShell), e.g. x86-64:

powershell
$base = 'https://github.com/buggregator/server/releases/download/v2.11.0'
foreach ($f in 'checksums.txt', 'checksums.txt.sig', 'buggregator-windows-amd64.exe') {
  Invoke-WebRequest -UseBasicParsing "$base/$f" -OutFile $f
}

$want = ((Select-String -Path checksums.txt -Pattern ' buggregator-windows-amd64.exe$').Line -split '\s+')[0]
$got = (Get-FileHash buggregator-windows-amd64.exe -Algorithm SHA256).Hash.ToLower()
if ($got -eq $want) { 'OK' } else { 'MISMATCH' }
# OK

Windows has no ed25519 check of its own. With OpenSSL 3 on PATH (for example from Git for Windows), run the same openssl pkeyutl command as on Linux in that folder: it reads buggregator-release.pem, checksums.txt and checksums.txt.sig. Rename the file to buggregator.exe after the check.

If openssl prints Signature Verification Failure, or the checksum does not match, do not run the file.

The install scripts do both checks for you. They check the signature when OpenSSL 3 is present (on Windows: on PATH), then the SHA-256. Without OpenSSL 3 they print «Signature not checked: needs OpenSSL 3» and check only the SHA-256. A bad signature or a missing checksums.txt.sig stops the install. BUGGREGATOR_NO_SIGNATURE=1 installs without the signature: use it only for a mirror you trust that has none. Releases v2.10.0 and older have no checksums.txt.sig; the scripts install them with the SHA-256 check only.

If your system blocks it ​

  • macOS. A file downloaded with curl (or the script) is not blocked. A file downloaded in a browser is marked as from the internet, and macOS refuses to open it. Clear the mark once: xattr -d com.apple.quarantine buggregator. Or right-click the file → Open. The binary is not notarized by Apple.
  • Windows. A file downloaded in a browser may show «Windows protected your PC». Click More info → Run anyway, or run Unblock-File .\buggregator.exe once.

2. Start ​

bash
buggregator                 # installed with the script, ~/.local/bin in your PATH
~/.local/bin/buggregator    # installed with the script, not in PATH
./buggregator               # downloaded by hand

On Windows: & "$env:LOCALAPPDATA\Programs\buggregator\buggregator.exe" after the script, or .\buggregator.exe.

Open http://127.0.0.1:8000. The UI is empty until your app sends something.

To check from the command line:

bash
curl http://127.0.0.1:8000/api/version
# {"version":"2.6.0"}

3. Point your app at it ​

Change one address in your app. Examples are on Getting Started → Just change the address, and each integration page has its own (for example Sentry or SMTP).

Ports ​

PortWhat listensChange it with
8000Web UI, HTTP events (Sentry, Ray, Inspector, XHProf, HTTP dumps, SMS), mock server-http-addr or HTTP_ADDR
1025SMTP: captured emails-smtp-addr or SMTP_ADDR
9912VarDumper-vardumper-addr or VAR_DUMPER_ADDR
9913Monolog-monolog-addr or MONOLOG_ADDR
8080HTTP proxyPROXY_ADDR

If a port is already taken, Buggregator stops at start. The log names the port and says address already in use: failed to start HTTP server for 8000, failed to start TCP servers for the others. Example: another mail tool holds 1025. Move Buggregator's SMTP elsewhere:

bash
./buggregator -smtp-addr :2525

Listen only on this machine ​

By default every port listens on all network interfaces (:8000). Other machines on your network can then reach the UI and your captured data. To keep it on your machine only:

bash
./buggregator \
  -http-addr 127.0.0.1:8000 \
  -smtp-addr 127.0.0.1:1025 \
  -vardumper-addr 127.0.0.1:9912 \
  -monolog-addr 127.0.0.1:9913

Add PROXY_ADDR=127.0.0.1:8080 in front for the HTTP proxy: it has no flag.

Keep events after a restart ​

By default events live in memory: stopping Buggregator clears them. To keep them, give it a database file:

bash
./buggregator -db ./buggregator.db

The file is created on the first start. More options: Database.

More settings ​

Every setting is a flag, an environment variable or a line in buggregator.yaml (flags win over variables, variables over the file). See Server configuration. Example: turn on the MCP server for AI assistants:

bash
MCP_ENABLED=true ./buggregator

Then connect your assistant: MCP. On Windows, use the MCP HTTP transport (MCP_TRANSPORT=http MCP_ADDR=127.0.0.1:8001): the default Unix socket path /tmp/buggregator-mcp.sock does not exist there. Without MCP_ADDR, the MCP server listens on :8001, on all network interfaces, with no token.

Update ​

From the UI ​

Since server 2.11.0, Buggregator can update itself. When a new release is out, open Settings › About & updates. Check now asks GitHub at once. What you see depends on how you run it:

You run it asWhat the UI offers
The binary on Linux or macOSthe button Update to <version>: it downloads, installs and restarts by itself
The binary on Windowsthe button Update to <version>: it replaces the program; then restart Buggregator yourself
Docker, Kubernetes, or a binary in a folder it cannot write tothe command to run, ready to copy

The button is there only when it is safe. With no login (SSO) on, it shows only if the server listens on this machine only, e.g. -http-addr 127.0.0.1:8000. The default, :8000, listens on every network interface, so by default you get the command instead. Then also open the UI as http://127.0.0.1:8000 or http://localhost:8000, not by another name.

Since server 2.11.1 only the Buggregator UI itself can check for or start an update. Another page open in the same browser gets an error (403), even one on another port of localhost, e.g. a dev server on http://localhost:5173. A request without a browser Origin (curl, a script) still works.

What the button does on Linux and macOS, step by step:

  1. Downloads the file for your system from the latest release.
  2. Checks it: the release's checksums.txt must carry a valid ed25519 signature (checksums.txt.sig), and the file's SHA-256 must match it.
  3. Starts the new version once with --version to make sure it runs here.
  4. Copies your database file next to it (<file>.pre-<old version>.bak).
  5. Replaces the program. The old one stays next to it as <name>.old.
  6. Restarts.

With the default in-memory database, all events are gone after the restart. The button then reads Delete events and update.

If the new version does not start (Linux and macOS), Buggregator puts back the old program and the database copy at once. The UI then shows «Rolled back from <version>», the error and the start-up log (Copy log). One case is slower: if the new version crashes on its own before it is ready, the rollback happens on the next start. A supervisor that restarts the service (e.g. systemd with Restart=on-failure) does that by itself; without one, start Buggregator again by hand.

When the new version serves, the database copy is deleted.

On Windows the button does steps 1–3 and 5: it downloads, checks and tries the new version, then replaces the program and keeps the old one as buggregator.exe.old (or <name>.old). It makes no database copy, does not restart and has no automatic rollback. Restart Buggregator yourself. To go back, stop it and put the .old file back in place of the program.

By hand ​

Run the install script again with the same folder, then restart. With -db, your events stay.

bash
curl -fsSL https://raw.githubusercontent.com/buggregator/server/master/scripts/install.sh | sh
powershell
irm https://raw.githubusercontent.com/buggregator/server/master/scripts/install.ps1 | iex

Installed somewhere else? Set BUGGREGATOR_INSTALL_DIR to that folder.

Docker:

bash
docker pull ghcr.io/buggregator/server:<version>
# or, with Docker Compose: change the tag in the file, then
docker compose pull && docker compose up -d

Kubernetes (Helm):

bash
helm upgrade buggregator oci://ghcr.io/buggregator/helm-chart/buggregator --reset-then-reuse-values --set image.tag=<version>

--reset-then-reuse-values needs Helm 3.14+. Since server 2.11.1 the update notice shows this command, plus --reuse-values for older Helm. Server 2.11.0 shows only --reuse-values, which also keeps the old chart's defaults: see Helm chart › Upgrade.

Which version runs now: GET /api/version, or, since server 2.11.0, buggregator --version.

Turn it off ​

bash
UPDATE_SELF=off ./buggregator

UPDATE_SELF (update.self_update, --update-self):

  • auto (default): the button where it is safe, as above;
  • on: the button also when the server listens on all interfaces without a login;
  • off: no update from the UI.

With UPDATE_CHECK_ENABLED=false the server does not look for new releases, so the UI offers no update either.