GitLab Runner
$ gitlab-runner Official High RiskOfficial Go binary from GitLab that registers CI runners, manages runner daemons, and executes .gitlab-ci.yml jobs via Docker, Kubernetes, or shell executors. Primarily an infrastructure daemon and registration tool with minimal JSON output and deprecated local exec.
brew install gitlab-runner Host-level runner daemon and CI executor; managing local runner configs belongs strictly to CLI/admin workflows.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --non-interactive and REGISTER_NON_INTERACTIVE=true for registration, but emits unstructured log lines (logrus) with no --json query output.
- Supports
--non-interactiveonregisterandunregister - No
--jsonoutput onlistorverify
Stores plaintext runner tokens in config.toml, executes arbitrary CI job scripts/containers, and often runs as root/system daemon.
- Plaintext token storage in
config.toml - Executes arbitrary CI workloads via shell/Docker executors
Single static Go binary available across macOS, Linux, and Windows, though job execution typically needs Docker.
- Official static Go binary for major OSes
Essential for self-hosted GitLab runner administration, but gitlab-runner exec is deprecated and limited for local .gitlab-ci.yml testing.
- Primarily an ops/daemon CLI rather than a coding-agent daily driver
First-party official tool maintained by GitLab under MIT license.
- Official
gitlab-org/gitlab-runnerproject
Comprehensive official documentation at docs.gitlab.com/runner/.
- Detailed enterprise runner docs at docs.gitlab.com/runner/
Security, Auth & Guardrails
Stores runner authentication tokens (glrt-...) and executor settings in /etc/gitlab-runner/config.toml or ~/.gitlab-runner/config.toml.
MIT open-source Go binary; GitLab CI compute minutes/hosting depend on plan.
# GitLab Runner Agent Rules - Always pass `--non-interactive` when calling `gitlab-runner register` or `unregister`. - Never print or commit `config.toml`, which holds plaintext `glrt-` runner tokens. - Prefer `glab ci lint` over `gitlab-runner exec` (deprecated) for validating `.gitlab-ci.yml`.
Agent-Ready Command Recipes
Safe Read-Only Queries
gitlab-runner list
Prints registered runners from the local config.toml without contacting GitLab.
gitlab-runner verify
Checks whether locally configured runner authentication tokens are still valid remotely.
Controlled Writes & Previews
gitlab-runner register --non-interactive --url https://gitlab.com/ --token "$GITLAB_RUNNER_TOKEN" --executor docker --docker-image alpine:latest --description agent-runner
Registers a runner non-interactively using a pre-created authentication token without triggering setup prompts.
Strengths for Agents
- + Official GitLab Go binary supporting
--non-interactiveregistration and env-var configuration. - +
gitlab-runner listandverifygive quick local diagnostics of configured runners.
Caveats & Pitfalls
- ! No
--jsonstructured output; logs use human-readable text format. - ! Deprecated
gitlab-runner execlacks support for many modern.gitlab-ci.ymlfeatures;config.tomlstores plaintext tokens.