Glab Runner Controller logo

Glab Runner Controller

Community
vince-winkintel
glab-runner-controller

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.

Overview

Publishervince-winkintel
Repositorygitlab-cli-skills
Skill nameglab-runner-controller
Stars
50
Forks
6
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by vince-winkintel on GitHub. Read the source before you install it.

Installation

Install the Glab Runner Controller AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-runner-controller
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vince-winkintel/gitlab-cli-skills.git /tmp/gitlab-cli-skills
mkdir -p .claude/skills
cp -r /tmp/gitlab-cli-skills/glab-runner-controller .claude/skills/glab-runner-controller
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Glab Runner Controller in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Glab Runner Controller on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Glab Runner Controller is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

glab-runner-controller

Manage GitLab runner controllers and their authentication tokens.

⚠️ Experimental Feature

Status: EXPERIMENTAL (Admin-only)

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:

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Glab Runner Controller AI skill do?

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.

Why use Glab Runner Controller on TypingMind?

Because you install it once and use it with any model. Glab Runner Controller is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Glab Runner Controller in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/vince-winkintel/gitlab-cli-skills/tree/main/glab-runner-controller. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Glab Runner Controller?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Glab Runner Controller?

As many as you like. As long as a model supports skills, you can use Glab Runner Controller with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Glab Runner Controller AI skill free?

Yes. It is published on GitHub by vince-winkintel under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇