glab-ssh-key

Add, list, and delete SSH keys via the GitLab API.

12|2|Updated Apr 21, 2026
One-click install
npx skills add https://github.com/haomingz/kimi-skills --skill glab-ssh-key-haomingz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: glab-ssh-key
Source: https://github.com/haomingz/kimi-skills/tree/main/skills/gitlab-cli-guide/glab-ssh-key
Command: npx skills add https://github.com/haomingz/kimi-skills --skill glab-ssh-key-haomingz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Managing SSH keys for a GitLab account to enable secure authentication and simplify credential management.

Core Features & Use Cases

  • Add an SSH key to your GitLab account to enable SSH-based Git operations.
  • List all SSH keys associated with the currently authenticated user for auditing and revocation.
  • Delete an SSH key by its ID to rotate credentials or revoke access.
  • Use Case: Set up a new machine by adding your public key for seamless GitLab access.

Quick Start

Run the glab ssh-key command group to manage SSH keys for the authenticated GitLab user.

Frequently Asked Questions about glab-ssh-key

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add an SSH key to my GitLab account for secure authentication?

To add an SSH key to your GitLab account, use the glab ssh-key add command to upload your public key via the GitLab API. This enables SSH authentication for secure Git operations and account access control.

Can I list all SSH keys associated with my authenticated GitLab user?

Yes, you can list all SSH keys associated with your authenticated GitLab user by running the glab ssh-key list command. This queries the GitLab API to retrieve registered public keys for auditing and credential management.

What is the best way to delete a GitLab SSH key to rotate credentials or revoke access?

The best way to delete a GitLab SSH key is using the glab ssh-key delete command with the specific key ID. This removes the registered public key from the GitLab API to effectively revoke access or rotate your authentication credentials.

Does the glab ssh-key command group upload private keys to the GitLab API?

No, the glab ssh-key command group ensures only public keys are uploaded to the GitLab API. It manages SSH authentication by performing add, delete, get, and list operations exclusively on public keys for secure GitLab access control.

When do I need to manage SSH keys for my GitLab account?

You need to manage SSH keys for your GitLab account when setting up a new machine for seamless Git access, auditing registered credentials, or rotating authentication keys to maintain secure access control over your GitLab repositories.

How do I retrieve a specific SSH key from GitLab using its ID?

To retrieve a specific SSH key from GitLab, use the glab ssh-key get command with the corresponding key ID. This fetches the public key details directly from the GitLab API for verification and credential auditing purposes.