Skip to main content
Kliff

GitLab

Link your GitLab account and connect a group on GitLab.com or your own GitLab, so agents and automations can work on its projects.

Kliff works with groups on GitLab.com and on your own GitLab. Setting it up takes two parts, both in Settings > GitLab: each person links their own GitLab account, and an owner or admin connects a group once for the organization. See Connect GitLab for the steps.

Your GitLab account

Under Your GitLab account, select Link account next to the GitLab you use. The row then shows Connected as your username. If your organization uses more than one GitLab, link your account on each.

Kliff uses this link to check your role on a project when you start a run or mention @kliff. It keeps your GitLab username and ID, not a token.

Connecting a group

Under GitLab groups, select Connect a group, approve the request on GitLab, then select Connect next to the group.

  • Only an owner or admin of the Kliff organization can connect a group.
  • You need the Owner role on a top-level group.
  • Kliff adds a service account to the group with the Developer role, and lists the group's projects under Projects.
  • After you add projects on GitLab, select Refresh projects.

Your own GitLab

Kliff can connect a group on your own GitLab when it meets all of these:

  • It runs GitLab 19.1 or newer, Enterprise Edition. The Free tier works; the Community Edition does not, because it has no service accounts.
  • A GitLab administrator has turned on Allow top-level group owners to create service accounts.
  • Its address is a public HTTPS site Kliff can reach, and it can send webhooks to Kliff.

Owners and admins add it under Self-managed GitLab: create an application in the group's Settings > Applications on your GitLab with the callback URL Kliff shows and the scopes api and read_user, then enter the GitLab address, Application ID, and Secret, and select Save GitLab. Kliff keeps the secret encrypted.

What each action needs

ActionYour role on the project
Request a reviewReporter or higher
Start Kliff ImplementDeveloper or higher
Have an agent open a merge requestDeveloper or higher

Kliff checks your role each time work starts.

What Kliff does on GitLab

The group's service account pushes branches, opens draft merge requests, and posts reviews, so they appear under its name. Kliff listens for mentions on merge requests and issues, merge request updates, failed pipelines, and issue labels, to start automations. It never merges, approves, or closes anything.