/glab-skills:auth [login|logout|status]from glab-skills
Manage glab authentication — login, logout, or check status. Use when the user needs to authenticate with GitLab or when a previous command failed with an auth error.
Ships in glab-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Handle GitLab CLI authentication.
If $ARGUMENTS contains login, logout, or status, use it. Otherwise ask the user what they want to do.
glab auth status
This shows the authenticated user and GitLab host. If it prints "You are not logged in", the user needs to run login.
Use glab auth status --all --output json for machine-readable status across configured hosts; --jq can filter the JSON.
glab auth login
Follow the prompts. The CLI will open a browser and wait for the OAuth callback. Once done, it stores the token in the OS keyring when one is available, otherwise as plaintext in the config file (glab config path prints its location).
Useful flags:
--web — skip the login type prompt and go straight to browser/OAuth login--device — OAuth device flow for headless machines: prints a one-time code and URL to open on any device (GitLab 17.9+)--insecure-storage — store the token as plaintext in the config file instead of the keyring--setup-git-credential-helper — configure glab as the host's Git credential helper without a promptglab auth login --stdin <<< "<your-token>"
Or interactively:
glab auth login
Select "Paste an authentication token" when prompted. Tokens are created at GitLab > Preferences > Access Tokens (scopes needed: api, read_user).
glab auth login --hostname gitlab.example.com
OAuth on a self-managed instance needs an OAuth application client ID; the interactive login walks through the setup. A personal access token avoids that step.
Login can make the instance the default host for commands outside a repository. It does so automatically if the default is still gitlab.com and no credentials are stored for it; otherwise it asks, or prints the config command in non-interactive mode. CI and host environment overrides leave the default unchanged.
Environment tokens (GITLAB_TOKEN, GITLAB_ACCESS_TOKEN, OAUTH_TOKEN) override stored credentials only for hosts named by GITLAB_HOST or GITLAB_REPO, or present in the configuration file.
glab auth logout
After login, confirm it worked:
glab auth status
Tell the user whether the action succeeded and which account is now active.
For a complete list of subcommands and flags, see docs/reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
haikulowOther plugins' skills for the same job
npx claudepluginhub moumine9/glab-skills --plugin glab-skills4 skills in this plugin
/ciView, manage, and retry GitLab CI/CD pipelines and jobs using the glab CLI. Use when the user wants to check pipeline status, trace job logs, or trigger a pipeline./issueCreate, view, list, close, or comment on GitLab issues using the glab CLI. Use when the user wants to manage GitLab issues from the terminal./mrCreate, view, list, merge, approve, diff, checkout, or comment on GitLab merge requests using the glab CLI. Use when the user wants to work with MRs from the terminal.