Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

GitLab Runner

$ gitlab-runner Official High Risk
GitLab · Code & DevOps · MIT · macos / linux / windows

Official 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.

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install gitlab-runner
CLI vs MCP Decision CLI Only

Host-level runner daemon and CI executor; managing local runner configs belongs strictly to CLI/admin workflows.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Supports --non-interactive and REGISTER_NON_INTERACTIVE=true for registration, but emits unstructured log lines (logrus) with no --json query output.

  • Supports --non-interactive on register and unregister
  • No --json output on list or verify
Trust & Safety 14 / 25

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
Setup & Portability 14 / 15

Single static Go binary available across macOS, Linux, and Windows, though job execution typically needs Docker.

  • Official static Go binary for major OSes
Utility & Efficiency 10 / 15

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
Maintenance & Lineage 10 / 10

First-party official tool maintained by GitLab under MIT license.

  • Official gitlab-org/gitlab-runner project
Docs & Verifiability 9 / 10

Comprehensive official documentation at docs.gitlab.com/runner/.

  • Detailed enterprise runner docs at docs.gitlab.com/runner/

Security, Auth & Guardrails

Auth Modes
Env API Key Config File
Credential Storage

Stores runner authentication tokens (glrt-...) and executor settings in /etc/gitlab-runner/config.toml or ~/.gitlab-runner/config.toml.

Side Effects
Read-Only Local Write Remote Write Destructive
Cost & Quotas

MIT open-source Go binary; GitLab CI compute minutes/hosting depend on plan.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List configured local runners and executors
gitlab-runner list

Prints registered runners from the local config.toml without contacting GitLab.

Verify registered runner tokens against GitLab
gitlab-runner verify

Checks whether locally configured runner authentication tokens are still valid remotely.

Controlled Writes & Previews

Register a Docker runner non-interactively
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-interactive registration and env-var configuration.
  • + gitlab-runner list and verify give quick local diagnostics of configured runners.

Caveats & Pitfalls

  • ! No --json structured output; logs use human-readable text format.
  • ! Deprecated gitlab-runner exec lacks support for many modern .gitlab-ci.yml features; config.toml stores plaintext tokens.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI