Skip to main content
skill CX Codex

glab-runner-controller — Claude Code skill: features and install

The glab-runner-controller Claude Code skill manages GitLab Runner controllers and their tokens. It activates for requests about controller setup, scopes, or token changes.

MIT 113 installs ★ 51 updated 2026-10-20

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-runner-controller -a claude-code
Open on GitHub

What glab-runner-controller does

The skill manages GitLab Runner controllers through glab runner-controller commands. It can create, inspect, update, and delete controllers, then set their scope to cover an instance or selected runners.

Token operations include creation, listing, rotation, and revocation. A new token value appears only during creation. This is an experimental, admin-only feature; it may break or be removed without notice.

What it helps with

  • create and configure a GitLab Runner controller
  • change a controller’s state or remove it
  • limit a controller to selected runners
  • issue, rotate, or revoke a controller token

Example prompts for the agent

  • Create a GitLab Runner controller with the description “Production runners.”
  • Show the scopes for controller 42 and add runners 5 and 10.
  • Create a token for controller 42, then revoke token 1.

How to install glab-runner-controller

1Skills CLI (Vercel)

npx skills add vince-winkintel/gitlab-cli-skills --skill glab-runner-controller -a claude-code

2Manually: put the files in place

~/.claude/skills/glab-runner-controller/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/glab-runner-controller/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about glab-runner-controller

How do I install glab-runner-controller in Claude Code?

Run npx skills add vince-winkintel/gitlab-cli-skills --skill glab-runner-controller -a claude-code. The skill file is installed at ~/.claude/skills/glab-runner-controller/SKILL.md.

What does glab-runner-controller do?

It manages GitLab Runner controllers, their scopes, and their authentication tokens. It can create or update controllers and issue, rotate, or revoke tokens.

What does glab-runner-controller require?

It requires glab, an authenticated GitLab account, and GitLab admin privileges. The feature is experimental and may require a recent glab build and an enabled feature flag on the GitLab instance.

Source text

SKILL.md · MIT
---
name: glab-runner-controller
description: Manage GitLab runner controllers and authentication tokens. Create, inspect, update, delete controllers; manage scopes; and generate, rotate, and revoke tokens. Admin-only experimental feature for managing runner controller lifecycle. Triggers on runner controller, controller token, controller scope, experimental runner, admin runner.
---

# glab-runner-controller

Manage GitLab runner controllers and their authentication tokens.

## ⚠️ Experimental Feature

**Status:** EXPERIMENTAL (Admin-only)
- This feature may be broken or removed without prior notice
- Use at your own risk
- Requires GitLab admin privileges
- See: https://docs.gitlab.com/policy/development_stages_support/

## What It Does

Runner controllers manage the orchestration of GitLab Runners in your infrastructure. This skill provides commands to:
- Create and configure runner controllers
- Inspect controller details and connection status
- Manage controller lifecycle (list, get, update, delete)
- Manage controller scopes (instance-level or runner-level)
- Generate and rotate authentication tokens
- Revoke compromised tokens

## Common Workflows

### Create Runner Controller

```bash
# Create with default settings
glab runner-controller create

# Create with description
glab runner-controller create --description "Production runners"

# Create enabled controller
glab runner-controller create --description "Prod" --state enabled
```

**States:**
- `disabled` - Controller exists but inactive
- `enabled` - Controller is active (default)
- `dry_run` - Test mode (no actual runner execution)

### List and View Controllers

```bash
# List all controllers
glab runner-controller list

# List with pagination
glab runner-controller list --page 2 --per-page 50

# Output as JSON
glab runner-controller list --output json

# Get one controller with status details
glab runner-controller get 42

glab runner-controller get 42 --output json
```

### Update Controller

```bash
# Update description
glab runner-controller update 42 --description "Updated name"

# Change state
glab runner-controller update 42 --state disabled

# Update both
glab runner-controller update 42 --description "Prod" --state enabled
```

### Delete Controller

```bash
# Delete with confirmation prompt
glab runner-controller delete 42

# Delete without confirmation
glab runner-controller delete 42 --force
```

## Scope Management

Runner controller scopes determine what the controller is allowed to evaluate.

### List Scopes

```bash
# List all scopes for controller 42
glab runner-controller scope list 42

# JSON output
glab runner-controller scope list 42 --output json
```

### Add Scopes

```bash
# Allow the controller to evaluate all instance runners
glab runner-controller scope create 42 --instance

# Allow the controller to evaluate a specific runner
glab runner-controller scope create 42 --runner 5

# Add multiple runner scopes
glab runner-controller scope create 42 --runner 5 --runner 10
glab runner-controller scope create 42 --runner 5,10
```

### Remove Scopes

```bash
# Remove the instance-level scope
glab runner-controller scope delete 42 --instance

# Remove a specific runner-level scope
glab runner-controller scope delete 42 --runner 5 --force
```

> **Note:** Older docs/examples may refer to `glab runner-controller runner ...` subcommands. The current user-facing surface is `glab runner-controller scope ...` plus `glab runner-controller get`.

## Token Management Workflows

### Token Lifecycle

**Create → Rotate → Revoke** is the typical token lifecycle for security best practices.

#### 1. Create Token

```bash
# Create token for controller 42
glab runner-controller token create 42

# Create with description
glab runner-controller token create 42 --description "production"

# Output as JSON (for automation)
glab runner-controller token create 42 --output json
```

**Important:** Save the token value immediately - it's only shown once at creation.

#### 2. List Tokens

```bash
# List all tokens for controller 42
glab runner-controller token list 42

# List as JSON
glab runner-controller token list 42 --output json

# Paginate
glab runner-controller token list 42 --page 1 --per-page 20
```

#### 3. Rotate Token

Rotation generates a new token and invalidates the old one.

```bash
# Rotate token 1 (with confirmation)
glab runner-controller token rotate 42 1

# Rotate without confirmation
glab runner-controller token rotate 42 1 --force

# Rotate and output as JSON
glab runner-controller token rotate 42 1 --force --output json
```

**Use cases:**
- Scheduled rotation (security policy compliance)
- Token compromise response
- Key rotation before employee departure

#### 4. Revoke Token

```bash
# Revoke token 1 (with confirmation)
glab runner-controller token revoke 42 1

# Revoke without confirmation
glab runner-controller token revoke 42 1 --force
```

**When to revoke:**
- Token compromised or leaked
- Controller decommissioned
- Access no longer needed

### Token Security Best Practices

1. **Rotate regularly** - Set up scheduled rotation (e.g., every 90 days)
2. **Use descriptions** - Track token purpose and owner
3. **Revoke immediately** when compromised
4. **Never commit tokens** to version control
5. **Use `--output json`** for automation (parse token value securely)

## Decision Tree: Controller State Selection

```
Do you need the controller active?
├─ Yes → --state enabled
├─ Testing configuration? → --state dry_run
└─ No (maintenance/setup) → --state disabled
```

## Troubleshooting

**"Permission denied" or "403 Forbidden":**
- Runner controller commands require GitLab admin privileges
- Verify you're authenticated as an admin user
- Check `glab auth status` to confirm current user

**"Runner controller not found":**
- Verify controller ID with `glab runner-controller list`
- Controller may have been deleted
- Check if you have access to the correct GitLab instance

**Token creation fails:**
- Ensure controller exists and is enabled
- Verify admin privileges
- Check GitLab instance version (experimental features may require recent versions)

**Token rotation shows old token still works:**
- Token invalidation may take a few seconds to propagate
- Wait 10-30 seconds and test again
- Check controller state (disabled controllers don't enforce token validation)

**Cannot delete controller:**
- Check if controller has active runners
- May need to decommission runners first
- Use `--force` to override (⚠️ destructive)

**Experimental feature not available:**
- Verify glab version: `glab version` (requires a recent glab build)
- Check if feature flag is enabled on GitLab instance
- Confirm GitLab instance version supports runner controllers

## Related Skills

**CI/CD & Runners:**
- `glab-ci` - View and manage CI/CD pipelines and jobs
- `glab-job` - Retry, cancel, view logs for individual jobs
- `glab-runner` - Manage individual runners (list, assign, jobs, managers, update, delete)

**Repository Management:**
- `glab-repo` - Manage repositories (runner controllers are instance-level)

**Authentication:**
- `glab-auth` - Login and authentication management

## Command Reference

For complete command syntax and all available flags, see:
- [references/commands.md](references/commands.md)

© vince-winkintel · MIT · vince-winkintel/gitlab-cli-skills

Similar skills

All skills for DevOps and infrastructure →

From the same set45

The whole set →
glab-snippet The glab-snippet Claude Code skill creates GitLab snippets from files or stdin text. It activates when a request is to share code or text as a new snippet. CX Codex +1 115installs glab-todo The glab-todo Claude Code skill manages GitLab to-dos through the CLI. It lists assigned or mentioned work and marks selected items as done. CX Codex +1 115installs glab-milestone The glab-milestone Claude Code skill manages GitLab milestones, from creating and editing them to listing, viewing, and deleting them. It activates for release planning and milestone progress tasks. CX Codex +1 114installs glab-iteration glab-iteration — a skill for Claude Code and Codex that manages GitLab iterations. It activates for sprint planning, issue assignment, and progress checks. CX Codex +1 114installs glab-cluster The glab-cluster Claude Code skill manages GitLab Kubernetes clusters and their agents. It activates for cluster connections and Kubernetes integration tasks. CX Codex +1 113installs glab-attestation The glab-attestation Claude Code skill works with GitLab attestations and checks software artifact provenance. It activates for requests about artifact verification or supply chain security. CX Codex +1 113installs glab-whatsnew This Claude Code skill displays GitLab CLI release notes through glab whatsnew. It activates for questions about new releases, changes after an upgrade, or notes from a chosen version. CX Codex +1 112installs glab-securefile The glab-securefile Claude Code skill manages GitLab secure files used by CI/CD pipelines. It activates for tasks involving pipeline secrets, certificates, or protected configuration files. CX Codex +1 112installs

Project sponsors

Companies that keep this analytics open