Skip to content

Binary Distribution

Breeze serves agent binaries and viewer installers through its own API. The download source is configurable via BINARY_SOURCE, so downloads work regardless of how you deploy.

Set BINARY_SOURCE to control where downloads come from:

Mode Description When to use
github (default) Agents download directly from GitHub Releases CDN Most deployments
local Serve from disk, with optional S3 offload Distribute binaries from your own infrastructure

No local binaries needed. Download requests redirect to GitHub Releases:

GET /api/v1/agents/download/linux/amd64
→ 302 https://github.com/lanternops/breeze/releases/download/v0.11.3/breeze-agent-linux-amd64

The release version is determined by BINARY_VERSION or BREEZE_VERSION. If neither is set, redirects to the latest release.

The repository itself is configurable: BINARY_GITHUB_REPOSITORY (default lanternops/breeze) controls where downloads redirect and where release sync reads from. Self-hosters who sign their own agent packages point this at their signing repository and set RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS to their own manifest key.

On startup, the API calls GitHub’s Releases API to register the current version’s checksums in the agent_versions table, so agents know when a new version is available.

In production, GitHub mode requires the RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS env var. This is the base64 SPKI of the Ed25519 public key that signs our release manifests. The API verifies every fetched manifest against this key before trusting its checksums, so a compromised GitHub release alone can’t deliver tampered binaries.

For the official Breeze releases, use the published trust anchor:

Terminal window
RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS=yzx8ftmcls6uBetFC5SYnZhBo+cbur3IX50TbBthTso=

This is a public key (also embedded in the agent and CI), so it is safe to commit. Only override it if you build and sign your own binaries. The API refuses to start in production without it. During a signing-key rotation you can trust multiple keys at once by comma-separating them (RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS=old,new).

Official releases also publish *-unsigned build outputs with manifest entries marked intendedUse: "signing-input" and platformTrust: "none". These exist solely as inputs for self-signing and are never registrable or downloadable through the API.

Manifest entries for the Windows assets that are Authenticode-signed (the Viewer and Helper installers) additionally record which certificate authority signed them, so the provider behind a given build is auditable from the signed manifest itself.

macOS package entries record signingIdentity and signingTeamId. The release workflow adds these fields only after pkgutil reports the exact expected Developer ID Installer leaf identity and Apple Team ID for those package bytes.

Binaries are served from disk. The API reads from these directories:

Variable Default Contents
AGENT_BINARY_DIR ./agent/bin Agent binaries (e.g. breeze-agent-linux-amd64)
VIEWER_BINARY_DIR ./viewer/bin Viewer installers (e.g. breeze-viewer-macos.dmg)
HELPER_BINARY_DIR AGENT_BINARY_DIR Helper binaries (e.g. breeze-helper-windows.msi). When unset it uses the same directory as AGENT_BINARY_DIR (v0.120.0+; earlier releases used ./agent/bin regardless of AGENT_BINARY_DIR). The bundled docker-compose.yml overrides this to /data/binaries/helper, alongside the other two directories under the shared binaries volume.

macOS agent packages, Breeze Installer.app.zip and the Windows MSI are privileged installers. Local mode serves them only when the release’s original release-artifact-manifest.json and .ed25519 signature are staged at the parent of AGENT_BINARY_DIR and verify with RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS. A deployment-generated manifest that merely signs whatever bytes happen to be on the volume is not a source-authenticity substitute. The binaries image does not contain this pair; see Release manifest pair for how it gets there.

Breeze Assist (Helper) installers are verified the same way, but always against the public release’s manifest entry (edition: "self-host", whatever BINARY_EDITION is): the API looks for the manifest pair in HELPER_BINARY_DIR first, then, on a self-host deployment, at its parent. A deployment with BINARY_EDITION=hosted must stage the public release’s manifest pair inside HELPER_BINARY_DIR; it never falls back to the manifest at the volume root.

On startup, the API:

  1. Scans AGENT_BINARY_DIR for agent binaries
  2. Computes SHA-256 checksums and registers each binary in the agent_versions table
  3. Marks them as the latest version
  4. If S3 is configured, syncs both directories to your S3 bucket

The docker-compose.yml includes a binaries init container that bundles agent and viewer binaries into a shared volume:

services:
binaries-init:
image: ${BREEZE_BINARIES_IMAGE_REF:?Set BREEZE_BINARIES_IMAGE_REF to a digest-pinned image ref}
pull_policy: always
volumes:
- binaries:/target
restart: "no"
api:
volumes:
- binaries:/data/binaries:ro
environment:
BINARY_SOURCE: ${BINARY_SOURCE:-github}
AGENT_BINARY_DIR: /data/binaries/agent
VIEWER_BINARY_DIR: /data/binaries/viewer
HELPER_BINARY_DIR: /data/binaries/helper
depends_on:
binaries-init:
condition: service_completed_successfully

The init container:

  1. Runs on every docker compose up (pull_policy: always ensures the registry is re-checked for the image ref you’ve pinned in BREEZE_BINARIES_IMAGE_REF, which must be set — there is no latest fallback)
  2. Copies bundled binaries to the shared binaries volume (the agent, viewer and helper directories and a VERSION file, but not the release manifest pair, see below)
  3. Exits (restart: “no”)
  4. The API mounts the volume read-only

When BINARY_SOURCE=github (default), the API ignores the local volume and syncs versions from GitHub Releases instead. The volume is only used when BINARY_SOURCE=local.

With BINARY_SOURCE=local, the API looks for the release’s release-artifact-manifest.json and release-artifact-manifest.json.ed25519 at the root of the binaries volume (/data/binaries, the parent of AGENT_BINARY_DIR). The binaries image cannot contain them: the signed manifest lists the binaries image’s own digest, so it is signed after that image is built. The pair is published on the GitHub Release instead and has to be copied into the volume.

When the pair is missing:

  • Boot-time registration still registers the local binaries, but signs their update manifests with the per-deployment key instead of using the official release manifest. The API logs a [binarySync] … not found warning that names the missing file.
  • Installers that need the pair are refused, and the API log names the missing file and links to this section: the Windows MSI (503 MSI not available), macOS packages and Breeze Assist installers (503 Installer unavailable), creating a macOS installer link (503 macOS PKG not reachable), and the macOS Breeze Installer.app.zip download when that file is staged (a server error).

The pair is not needed with BINARY_SOURCE=github, and copying it into the volume there has no effect.

guided-setup.sh already downloads and verifies this pair to pin the image digests. It keeps the verified copy in <work-dir>/release-manifest/ and, before it starts the stack, copies it to the root of the binaries volume, replacing the previous release’s. guided-setup.sh --upgrade does the same for the target release. It only copies files that passed verification. Each file goes into the volume over the standard input of a one-shot binaries-init container, so the copy adds no host mount of its own. With the default named binaries volume it works on SELinux hosts, with snap Docker, from a folder Docker Desktop does not share, and against a remote DOCKER_HOST. With the local ./data storage layout, Docker must still be able to mount ./data/binaries, as it must for every start of the stack.

If setup cannot verify a pair for the release, or the copy fails, it removes any older pair from the volume, because an older release’s manifest next to newer binaries makes local registration refuse them. Setup logs each pair it removes from or replaces in the volume, unless it is already this release’s pair. It warns when that pair is not one it staged, for example a pair copied in by hand. When the copy fails, setup prints the commands to run.

For a server-only release (one that reuses an earlier release’s binaries image), setup places the pair of the release whose binaries it carries. It verifies that pair with the same key, checks that it lists the same binaries image digest, and checks that its releaseKind is full.

With --no-up, or when you decline the restart, setup prints the copy commands with the other commands to run.

Repeat these steps on every upgrade, after BREEZE_BINARIES_IMAGE_REF points at the new release. On an air-gapped host, run the three downloads on a connected machine and copy the files across. Run the verification on the Breeze host.

Terminal window
TAG=v0.129.0 # the release your BREEZE_BINARIES_IMAGE_REF comes from
mkdir -p release-manifest
curl -fsSL -o release-manifest/release-artifact-manifest.json \
https://github.com/lanternops/breeze/releases/download/$TAG/release-artifact-manifest.json
curl -fsSL -o release-manifest/release-artifact-manifest.json.ed25519 \
https://github.com/lanternops/breeze/releases/download/$TAG/release-artifact-manifest.json.ed25519
curl -fsSLO https://raw.githubusercontent.com/lanternops/breeze/$TAG/scripts/release/verify-release-images.sh
# Verify the signature and that the manifest lists the binaries image you run.
# Continue only if this prints "Verified signed release image inventory".
RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS="$(grep '^RELEASE_ARTIFACT_MANIFEST_PUBLIC_KEYS=' .env | cut -d= -f2-)" \
bash verify-release-images.sh \
--manifest release-manifest/release-artifact-manifest.json \
--signature release-manifest/release-artifact-manifest.json.ed25519 \
--expected-repository lanternops/breeze \
--expected-release "$TAG" \
--require "binaries=$(grep '^BREEZE_BINARIES_IMAGE_REF=' .env | cut -d= -f2-)"
# Continue only if this prints "releaseKind": "full" or prints no releaseKind
# line. A server-only release lists no binaries. If this prints "server-only",
# stop: set TAG to the release in "binariesRelease" and start again from the top.
grep -E '"(releaseKind|binariesRelease)"' release-manifest/release-artifact-manifest.json
# Copy both files to the volume root through the binaries-init service. Each
# file goes over standard input, so nothing on the host is mounted.
docker compose run --rm --no-deps -T --entrypoint sh binaries-init \
-c 'set -eu; f=/target/release-artifact-manifest.json.ed25519; t=/target/.release-artifact-manifest.json.ed25519.tmp; trap "rm -f $t" EXIT; cat > "$t"; [ -s "$t" ]; [ ! -d "$f" ]; chmod 0644 "$t"; if [ -e "$f" ]; then h=$(sha256sum < "$f") || h=unreadable; echo "breeze-replaced ${h%% *}"; fi; mv -f "$t" "$f"' \
< release-manifest/release-artifact-manifest.json.ed25519
docker compose run --rm --no-deps -T --entrypoint sh binaries-init \
-c 'set -eu; f=/target/release-artifact-manifest.json; t=/target/.release-artifact-manifest.json.tmp; trap "rm -f $t" EXIT; cat > "$t"; [ -s "$t" ]; [ ! -d "$f" ]; chmod 0644 "$t"; if [ -e "$f" ]; then h=$(sha256sum < "$f") || h=unreadable; echo "breeze-replaced ${h%% *}"; fi; mv -f "$t" "$f"' \
< release-manifest/release-artifact-manifest.json
# The API reads the pair at startup.
docker compose up -d --force-recreate api

Run the copy step only after the verification printed Verified signed release image inventory and the releaseKind line says full or is absent. A server-only release carries the binaries of the release named in its binariesRelease field, and that release’s pair is the one that describes the volume.

If either copy command fails, remove the pair from the volume so the new binaries do not sit beside an older release’s manifest, then fix the cause and copy again. The command prints a breeze-removed … line when it removed something; that is expected output, not an error.

Terminal window
docker compose run --rm --no-deps -T --entrypoint sh binaries-init \
-c 'set -eu; m=/target/release-artifact-manifest.json; s=$m.ed25519; if [ -e "$m" ]; then h=$(sha256sum < "$m") || h=unreadable; echo "breeze-removed ${h%% *}"; elif [ -e "$s" ]; then echo breeze-removed-signature; fi; rm -f "$m" "$s" /target/.release-artifact-manifest.json.tmp /target/.release-artifact-manifest.json.ed25519.tmp'

If the volume is not managed by Compose, copy both files into the directory that holds agent/, viewer/ and helper/, and make sure the API user can read them.

When BINARY_SOURCE=local and S3 credentials are configured, Breeze:

  1. On startup: syncs local binaries to your S3 bucket
  2. On download: returns a 302 redirect to a presigned S3 URL for ordinary artifacts (falls back to disk if the object is absent). Privileged macOS packages are the exception: the API reads them with a signed-size bound, verifies the signed release-manifest digest, and proxies the exact verified bytes instead of redirecting the client.

This offloads download bandwidth from your API server to S3/R2/MinIO.

Variable Default Description
S3_ENDPOINT — S3-compatible endpoint
S3_ACCESS_KEY — Access key
S3_SECRET_KEY — Secret key
S3_BUCKET — Bucket name
S3_REGION us-east-1 Bucket region
S3_PRESIGN_TTL 900 Presigned URL expiration in seconds (15 min)

S3 is activated when S3_BUCKET, S3_ACCESS_KEY, and S3_SECRET_KEY are all set. Each binaries directory is uploaded to one prefix, and every download reads from the prefix of the directory its file is staged in:

  • s3://{bucket}/agent/ — everything in AGENT_BINARY_DIR: agent binaries plus the watchdog, backup, user-helper and recovery-media binaries staged alongside them
  • s3://{bucket}/viewer/ — viewer installers
  • s3://{bucket}/helper/ — Breeze Assist (Helper) installers from HELPER_BINARY_DIR (v0.120.0+). When HELPER_BINARY_DIR is the same directory as AGENT_BINARY_DIR, the files are uploaded once, under agent/.

The sync runs to completion on every API start before the API begins serving, so S3 always matches the binaries staged for the running release.

GET /api/v1/agents/download/:os/:arch
Parameter Values
os linux, darwin, windows
arch amd64, arm64
GET /api/v1/agents/download/windows/amd64/msi

Serves the staged breeze-agent.msi verbatim, with no per-download bootstrap token embedded — unlike the enrollment-installer routes, so the file has a stable checksum. The automatic edition-migration flow pins its own download to a sha256 computed from this same file and verifies before touching an installed agent. Disk-only: unlike the routes above, it does not redirect to GitHub or S3, so a BINARY_SOURCE=github deployment gets a 404 here.

GET /api/v1/agents/download/:os/:arch/pkg

os must be darwin. Serves the notarized .pkg used by install.sh’s macOS path, which verifies the download via Apple notarization (spctl --assess) rather than a checksum comparison against /agent-versions/latest.

GET /api/v1/viewers/download/:platform
Parameter Values File
platform macos breeze-viewer-macos.dmg
windows breeze-viewer-windows.msi
linux breeze-viewer-linux.AppImage

The Linux viewer cannot yet open a remote desktop on a device whose agent runs as a service, which includes every Windows device. See Linux viewer (AppImage).

GET /api/v1/agents/download/helper/:os/:arch
Parameter Values
os linux, darwin, windows
arch amd64, arm64

Helper binaries are companion processes used for remote desktop in headless/service contexts (Session 0 on Windows, LaunchDaemon on macOS, systemd on Linux).

GET /api/v1/agents/download/watchdog/:os/:arch
Parameter Values
os linux, darwin, windows
arch amd64, arm64

breeze-watchdog runs as its own service (BreezeWatchdog on Windows) alongside the agent and restarts it if it stops responding. The agent’s own self-update and failover logic fetch replacement watchdog builds through this same route.

GET /api/v1/agents/download/user-helper/:os/:arch
Parameter Values
os linux, darwin, windows
arch amd64, arm64

breeze-user-helper is a distinct binary from the Helper installers above (/viewers/download and the Helper Binaries section) — it’s the GUI-subsystem sibling of the agent that the agent’s session broker spawns into the interactive user session (prompts and remote-desktop UI in headless/service contexts), not the standalone Helper app.

The breeze-backup binary handles enterprise backup operations (Hyper-V, MSSQL, system image, cloud-to-cloud). It is bundled in installers and served through the download API:

  • Windows MSI: installed to the same directory as breeze-agent.exe
  • macOS .pkg: installed to /usr/local/bin/breeze-backup
  • Linux: fetched by the generated install script alongside the agent binary
GET /api/v1/agents/download/backup/:os/:arch

The backup binary communicates with the main agent over HMAC-signed IPC. As of v0.105.0 its version is slaved to the agent’s: the agent downloads and atomically swaps breeze-backup as part of its own auto-update, so the helper no longer stays frozen at whatever version the installer shipped. A periodic reconcile also re-fetches the helper if it is missing or stale.

GET /api/v1/agents/install.sh

One-line agent installer that auto-detects OS/arch, downloads the binary, enrolls, and installs as a system service.

GET /api/v1/agents/uninstall.sh

Companion to the install script, for Linux and macOS. Stops and removes the agent, watchdog, and backup services and binaries. Windows agents are removed through the MSI’s own uninstall (Apps & Features / msiexec /x), not this endpoint.

Agents download directly from GitHub. No configuration needed:

.env
# BINARY_SOURCE=github (default, no change needed)