glab-auth

glab-auth is a skill for Claude Code, Codex from vince-winkintel/gitlab-cli-skills. It costs 74 tokens per session (3,137 once invoked), scanned B, original, MIT.

A guide for signing in and managing accounts with glab, the command-line tool for GitLab. GitLab is a platform for hosting code and related development tools.

In plain words
What is it for?
Use it to log in, log out, check authentication, switch accounts, or configure access to GitLab container registries.
Why use it?
It helps set up or fix command-line access, including accounts on GitLab.com and privately hosted GitLab servers.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; built for openclaw.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/vince-winkintel/gitlab-cli-skills/glab-auth
Any agent
npx skills add vince-winkintel/gitlab-cli-skills --skill glab-auth
Clone the repo
git clone --depth 1 https://github.com/vince-winkintel/gitlab-cli-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for glab-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/vince-winkintel/gitlab-cli-skills/glab-auth.svg)](https://agentmods.dev/skills/vince-winkintel/gitlab-cli-skills/glab-auth)
Your own site
<a href="https://agentmods.dev/skills/vince-winkintel/gitlab-cli-skills/glab-auth"><img src="https://agentmods.dev/badge/skills/vince-winkintel/gitlab-cli-skills/glab-auth.svg" alt="Measured on agentmods" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,137 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.03137
Opus 5 $0.00037 $0.01569
Sonnet 5 $0.00015 $0.00627
Haiku 4.5 $0.00007 $0.00314

Measured 2d ago against content hash 85cdadc7b127, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade B, and why

glab-auth scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

In a sandbox such as Claude Code, `glab` must be allowed to write the directory from `glab config path --dir`, not only the `config.yml` file. `glab` writes a temporary file beside the config and then replaces the origin
glab-auth/SKILL.md · 259 lines

How it starts

The opening of the file, as written. The whole thing — 259 lines — stays where its author put it; the contents beside it link to each section on GitHub.

glab auth

Manage GitLab CLI authentication.

Quick start

# Interactive login
glab auth login

# Browser/OAuth login without the prompt
glab auth login --hostname gitlab.com --web

# Check current auth status
glab auth status

# Login to different instance
glab auth login --hostname gitlab.company.com

# Logout
glab auth logout

Workflows

First-time setup

  1. Run glab auth login
  2. Choose authentication method (token or browser)
  3. Follow prompts for your GitLab instance
  4. Verify with glab auth status

glab auth login supports a complete setup flow:

  • --ssh-hostname to explicitly set a different SSH endpoint for self-hosted instances
  • --web to skip the login-type prompt and go straight to browser/OAuth auth
  • --container-registry-domains to preconfigure registry / dependency-proxy domains during login

Example: API hostname gitlab.company.com, SSH hostname ssh.company.com

For personal access tokens, glab requires at least api and write_repository. GitLab 18.9 introduced https://<host>/-/user_settings/personal_access_tokens/legacy/new?scopes=api,write_repository; that route does not exist on earlier releases. GitLab 18.8 and earlier use https://<host>/-/user_settings/personal_access_tokens?scopes=api,write_repository instead. Use the URL for the target instance rather than assuming the current GitLab.com route exists on an older self-managed server.

Login flag examples

# Self-managed GitLab with separate API and SSH endpoints
glab auth login \
  --hostname gitlab.company.com \
  --ssh-hostname ssh.company.com

# Skip prompts and go straight to browser/OAuth auth
glab auth login --hostname gitlab.com --web

# Preconfigure multiple registry / dependency proxy domains during login
glab auth login \
  --hostname gitlab.com \
  --web \
  --container-registry-domains "registry.gitlab.com,gitlab.com"

# Explicitly opt out of keyring storage (stores the token as plaintext)
glab auth login --hostname gitlab.company.com --insecure-storage \
  --stdin < approved-token-file

Read the full file on GitHub · 259 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago Changed · +2 lines 85cdadc7b127
  2. 6d ago First seen · 257 lines · 74 tokens per session scan B d15c5b7a94c2

Subscribe to this mod's changes

glab-auth is a skill published in the GitHub repository vince-winkintel/gitlab-cli-skills (47 stars, last pushed 4d ago), licensed MIT. It adds 74 tokens to every session and 3,137 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens