Installation

curl -fsSL https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci/-/raw/main/install.sh | bash

Downloads the latest stable pre-built binary from the releases page for your platform (macOS/Linux, amd64/arm64) to /usr/local/bin, then runs glci doctor for an overview of your environment. The glci Docker image is pulled automatically on first run.

The doctor report is informational during install – its exit code is ignored, so a failing check never aborts an install whose binary is already in place. Installing from outside a git repository is the common case: you get a ✗ Git repository line, which is expected and harmless.

Override install directory or pin a version:

GLCI_INSTALL_DIR=~/.local/bin bash <(curl -fsSL .../install.sh)
bash <(curl -fsSL .../install.sh) -s v0.1.0

Homebrew#

brew install glci

The formula builds glci from the release’s source tarball. glci reads its commit and release version from that source, so a Homebrew build uses the image published for its release (registry.gitlab.com/gitlab-org/ci-cd/runner-tools/glci:<commit>, or :vX.Y.Z). glci version reports it, for example glci v0.9.0 (commit …). The formula stamps the build with the label Homebrew, and glci never mistakes that label for a commit or an image tag.

brew install --HEAD glci builds main from a Git clone. That build takes its commit from Git and uses the image CI published for that commit.

Homebrew builds of v0.8.0 and earlier cannot tell which release they are. They fall back to :latest, which is built from main and may not work with them (see glci run fails with the glci image ... may not match this binary). Run brew upgrade glci. If you have to stay on an older release, pin its image in ~/.glci/config.toml:

[images]
glci = "registry.gitlab.com/gitlab-org/ci-cd/runner-tools/glci:v0.8.0"

Bleeding edge#

curl -fsSL https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci/-/raw/main/install-bleeding.sh | bash

Resolves the current main commit with git ls-remote and installs exactly that commit via go install, stamped with its SHA the same way make install stamps a build. Requires Go 1.25.7+ (the version in go.mod), Git, and Docker.

Because the binary carries its commit, it behaves like any other stamped build: glci version reports the SHA, the daemon auto-restarts on the next command after you re-run the script to upgrade, and glci uses the image CI published for that commit (registry.gitlab.com/gitlab-org/ci-cd/runner-tools/glci:<sha>). That image is pushed by the commit’s pipeline, so it appears a few minutes after the merge. If you install in that window, glci falls back to glci:local or :latest as described in how the image is resolved, and the daemon keeps that image for its lifetime – run glci daemon stop once the commit’s image is published so the next command picks it up.

Build from source#

git clone https://gitlab.com/gitlab-org/ci-cd/runner-tools/glci
cd glci
make install  # builds binary with embedded commit hash
make docker   # builds the matching Docker image

make install embeds the commit, so the daemon auto-restarts on upgrades and glci version reports a real SHA (<sha>-dirty if your tree differs from HEAD).

make docker builds the container image glci runs itself in, tagged with that same commit. It is optional when you build from a pushed commit with a clean tree: CI publishes an image per commit on every non-scheduled pipeline, so glci pulls registry.gitlab.com/gitlab-org/ci-cd/runner-tools/glci:<commit> on first run. You need it when that image cannot be reached — a -dirty tree, an unpushed commit, or no network — because glci then falls back to a local image. Run make docker again after switching branches or changing code; nothing detects a stale image for you. See how the image is resolved.

Upgrading#

Re-run the same install method you used originally. glci detects version mismatches with the running daemon and auto-restarts it on the next command.

Check versions with glci version:

glci   v0.9.0 (commit abc1234…)
daemon v0.9.0 (commit abc1234…) (pid 12345, up 2h30m)

The first word is the release, or dev for a build that is not exactly a release tag. The parentheses hold the full commit, or build <label> when only a packager’s label is known. If the output shows [VERSION MISMATCH], force a restart with glci daemon stop. The daemon starts again on the next command.

Verifying the installation#

glci doctor

Checks container-engine (Docker or Podman) connectivity, daemon status, the daemon’s container-engine endpoint, GitLab token, CI config parsing, Git repository, and the job network — whether a container can reach a port published on the Docker host, which is how job containers reach glci’s mock server. That last check starts two short-lived containers and a throwaway network, and pulls the utility image the first time, within a 90-second budget; glci doctor --no-job-network leaves it out. See Prerequisites for details.

Esc