---
title: "Connect GitLab"
description: "Register cyantula on your GitLab, set the bot token and group, and let colleagues publish their own projects."
url: "https://cyantula.app/docs/settings/gitlab/"
updated: "2026-12-03"
---

Settings reference

Register cyantula on your GitLab, set the bot token and group, and let colleagues publish their own projects.

### What GitLab is for

In the portal: Admin, Settings, Code and repositories (GitLab sits next to GitHub), and Profile, GitLab

It is optional and independent of GitHub. Once an administrator has set it up, every colleague can connect their own GitLab account, pick one of their GitLab projects and publish it, the same way they would publish a GitHub repository. When both are set up, colleagues can use either one.

One cyantula works with one GitLab: gitlab.com or your own GitLab server, not both at once. For the other places an app&#x27;s code can live, see [Where the code lives](https://cyantula.app/docs/repositories/).

### What the administrator does

1. On your GitLab, register an application for cyantula (, or the group&#x27;s Applications page). See . Redirect URI: . Scopes: , , and . Copy the application ID and the secret.
2. In the portal, open . GitLab is a row in the provider list, next to GitHub: click to open its panel. Fill in (for example or the address of your own GitLab), and , then save. Until all three are set, colleagues are not offered GitLab.
3. Optional, but you want it: the and . The bot token lets cyantula create projects, add the owner to them, install the push webhook and push uploads and its own changes. On GitLab Premium or Ultimate, make it a group access token on the group, role Maintainer, scopes and . On the Free tier group access tokens do not exist: use a personal access token of a dedicated GitLab user who is Owner or Maintainer of the group, with the same scopes. The group is where a brand-new project is created: its id or its full path, for example .
4. Only if your GitLab uses a private certificate authority: paste it in , BEGIN and END lines included. A change to this field applies after the next restart.

With both GitHub and GitLab set up, choose the **Default provider for new repositories** on the same page. Colleagues can still pick the provider themselves when they publish.

Without the bot token and the group, colleagues can still publish projects that already exist. They just cannot ask cyantula to create a new one, and cyantula cannot install the webhook for you.

### What each colleague does

In the portal: Profile, GitLab

Click **Connect GitLab** and approve cyantula on GitLab. It is one account, connected once. The page then shows **connected as** your GitLab login and the GitLab it belongs to, with a **Disconnect** button. If GitLab is not set up, the page says so: ask an administrator.

When an administrator publishes an app for you, it is the GitLab account you connected that is used, so you keep your own rights on the project.

### Publish a GitLab project

In the portal: Publish an app, first step

When both GitHub and GitLab are set up, the first step offers a choice between **GitHub** and **GitLab**. With GitLab chosen you have two options.

- : connect your GitLab account if you have not yet, search the list of projects you can open and pick one. You can publish a project only when you are at least a Developer on it; the others are listed as view only. The branch to deploy defaults to the project&#x27;s own default branch and can be changed.
- : cyantula creates a private project in the GitLab group the administrator set, with no README, and adds you as a Developer. This needs the bot token and the group above; otherwise the portal says an administrator has to set them first.

A zip upload creates a repository on GitHub or on the cyantula server; it is not part of the GitLab choice in the form. The first deploy starts as soon as the project is published. The rest is as for any other app, see [Publish an app](https://cyantula.app/docs/publish/).

### Push webhooks and new versions

When a published app follows its repository, cyantula installs a push webhook on the GitLab project itself, using the bot token. A new commit on the branch the app follows then shows up within seconds, and the owner clicks Deploy as for any other app. The app page shows whether the webhook is **connected**, and has a **Try again** button.

If cyantula cannot install it, for example because the bot token has no access to that project, nothing is lost: cyantula checks the project every few minutes instead, so the notice only arrives later. The same card shows the webhook address and secret, to add by hand under the project&#x27;s **Settings, Webhooks** with **Push events** ticked.

### Changes

When cyantula&#x27;s coding agent or a fix proposes a change to a GitLab project, it appears as a merge request, shown as `!1`, `!2` and so on, on the app&#x27;s **Changes** tab. You approve or reject it there like any other change.
