> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qodo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Install Qodo on GitLab - Single-tenant and GitLab Server

> Single-tenant and GitLab Server install guide for Qodo automated code review.

<Note>
  * This guide applies to the following deployment combinations, all of which use the same installation wizard:
    * Qodo single-tenant with GitLab Cloud
    * Qodo single-tenant with GitLab Server
    * Qodo multi-tenant with GitLab Server
  * Not sure which deployment model you need? See [Install Qodo in your Git provider](/install-and-configure/install) for a full comparison, or [check your deployment type](/deployment-models#check-your-deployment-type).
</Note>

Qodo works directly with GitLab, using a dedicated GitLab account to post code review comments on merge requests. It relies on GitLab OAuth and native merge request workflows to deliver automated insights.

You can configure Qodo for selected repositories or across your entire GitLab group. Configuration typically takes around 5–10 minutes.

Once installed, Qodo automatically processes merge requests and delivers actionable insights, such as code reviews, descriptions, and improvement suggestions, directly within your GitLab workflow.

## Prerequisites

Before you begin, ensure you have:

* Access to your Qodo portal.
* A Qodo environment configured for GitLab.
* GitLab group administrator access.
* A dedicated email address to use as a Qodo GitLab account (for example, `qodo@yourcompany.com`). The account is created during the installation wizard.

## Access the GitLab integration

<Steps>
  <Step>
    Log in to your Qodo portal. For single-tenant accounts, your portal URL follows the pattern `app.yourcompany.st.qodo.ai` and is provided by your Qodo Account Manager.
  </Step>

  <Step>
    From the left-hand navigation menu, select **Integrations**.
  </Step>

  <Step>
    Locate the relevant card and click **Add installation** to launch the installation wizard:

    * If you are using **GitLab Cloud**, select the **SaaS** tab and locate the **GitLab** card.
    * If you are using **GitLab Server**, select the **Self-Hosted** tab and locate the **GitLab** card.
  </Step>
</Steps>

## Install Qodo on GitLab

<Steps>
  <Step title="Before you begin">
    <Frame>
      <img src="https://mintcdn.com/qodo/_Y2cl2H6Q1TtO_7A/images/code-review/gitlab/gl-st-step-1-before-you-begin.png?fit=max&auto=format&n=_Y2cl2H6Q1TtO_7A&q=85&s=f7855571ddab2220d3d80dcb0458987c" alt="GitLab wizard step 1 showing Before you begin screen with instruction to create a dedicated Qodo email address" width="1182" height="796" data-path="images/code-review/gitlab/gl-st-step-1-before-you-begin.png" />
    </Frame>

    <Steps>
      <Step>
        Under connection method, select **Sign in with OAuth**. The **Access token** option is coming soon.
      </Step>

      <Step>
        Create a dedicated Qodo email address in your company domain (for example, `qodo@yourcompany.com`) to use as the Qodo GitLab account. You may need to contact your IT team to provision the user account.
      </Step>

      <Step>
        Click **Next**.
      </Step>
    </Steps>
  </Step>

  <Step title="Create app in GitLab">
    In this step you create a GitLab OAuth application so Qodo can connect to your GitLab group.

    * Click **Copy URL to paste in GitLab** and keep it ready for sub-step 1.

    Complete the following steps in GitLab:

    <Steps>
      <Step title="Create the app">
        In GitLab, go to your group **Settings → Applications → Add new application**. Configure the application with the following settings:

        * **Name:** Qodo
        * **Redirect URI:** Paste the URL copied from the wizard
        * **Confidential:** Ensure the **Confidential** checkbox is selected
        * **Scopes:** Ensure the **api** checkbox is selected

        Click **Save application**.

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-2-create-app.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=0f40541ff5a812cb911f75f19228bf0b" alt="GitLab wizard step 2 showing Create app in GitLab with Add new application form, Name set to Qodo and URL pasted in Redirect URI field" width="1002" height="792" data-path="images/code-review/gitlab/gl-st-step-2-create-app.png" />
        </Frame>
      </Step>

      <Step title="Copy the client ID and secret">
        After saving, GitLab displays the application credentials. Copy both the **Application ID** and the **Secret** and store them safely.

        <Note>
          This is the only time the secret is accessible. Copy it before leaving this page.
        </Note>

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-2-copy-credentials.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=29c07414692ee8e3168f3a5f3e5e9fb1" alt="GitLab wizard step 2 showing Group application Qodo with Application ID and Secret fields highlighted to copy for next step" width="1002" height="791" data-path="images/code-review/gitlab/gl-st-step-2-copy-credentials.png" />
        </Frame>
      </Step>
    </Steps>

    Back in the wizard, click **Next**.
  </Step>

  <Step title="Configure Qodo">
    <Steps>
      <Step>
        Enter the following details from the previous step:

        * **GitLab group URL(s):** Paste one group URL per line to connect several groups at once, for example `https://gitlab.com/yourgroup`. Each URL becomes its own installation.
        * **Application ID:** The Application ID copied in step 2
        * **Application Secret:** The Secret copied in step 2

        <Frame>
          <img src="https://mintcdn.com/qodo/_Y2cl2H6Q1TtO_7A/images/code-review/gitlab/gl-st-step-3-configure-qodo.png?fit=max&auto=format&n=_Y2cl2H6Q1TtO_7A&q=85&s=51fbd5efbe258fc2756cf9b190c4d698" alt="GitLab wizard step 3 showing Configure Qodo screen with GitLab group URL(s), Application ID, and Application Secret fields" width="1188" height="791" data-path="images/code-review/gitlab/gl-st-step-3-configure-qodo.png" />
        </Frame>

        <Note>
          A single OAuth application authorizes all the groups you list, so you only need the one Application ID and Secret from step 2. Each group becomes a separate installation, listed individually on the [Repositories page](/governance/repositories).
        </Note>
      </Step>

      <Step>
        Click **Next**.
      </Step>
    </Steps>
  </Step>

  <Step title="Add Qodo to GitLab">
    Using the email you created in step 1, add Qodo as a user in your GitLab workspace.

    * Click **Download Qodo logo for avatar** and save it for use in sub-step 3.

    Complete the following steps in GitLab:

    <Steps>
      <Step title="Invite the Qodo user">
        In your GitLab group, go to **Manage → Members** and click **Invite members**. In the dialog, enter the Qodo email address, set the role to `Maintainer`, and click **Invite**.

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-4-invite-user.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=341c7274e2d1e2c853e658bf778357b7" alt="GitLab wizard step 4 showing Invite members dialog with Qodo user email and Maintainer role highlighted" width="1006" height="794" data-path="images/code-review/gitlab/gl-st-step-4-invite-user.png" />
        </Frame>
      </Step>

      <Step title="Create the Qodo GitLab account">
        The invited user receives an email from GitLab. Accept the invitation and complete the account setup.

        <Note>The GitLab first name must be set as `Qodo`.</Note>

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-4-create-account.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=1a765403a0187beff743808983ba6014" alt="GitLab wizard step 4 showing Get started with GitLab signup form with First name set to Qodo highlighted" width="1005" height="793" data-path="images/code-review/gitlab/gl-st-step-4-create-account.png" />
        </Frame>
      </Step>

      <Step title="Add the public avatar">
        In the Qodo account's GitLab profile settings, go to **Edit Profile** and upload the Qodo logo as the public avatar.

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-4-add-avatar.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=8ae5f4f958e10179ea8f67ebf805eeb6" alt="GitLab wizard step 4 showing GitLab profile settings with Public avatar upload option" width="1002" height="794" data-path="images/code-review/gitlab/gl-st-step-4-add-avatar.png" />
        </Frame>
      </Step>
    </Steps>

    Back in the wizard, select the **Confirm GitLab Qodo account creation** checkbox and click **Install Qodo**. You are redirected to GitLab to authorize access.

    <Frame>
      <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-4-authorize.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=24ff3c7aa6fe65f91aea560325b9ecd7" alt="GitLab authorization page asking to authorize Qodo to use the account with Authorize and Deny buttons" width="1226" height="644" data-path="images/code-review/gitlab/gl-st-step-4-authorize.png" />
    </Frame>

    Review the requested permissions and click **Authorize**. You are redirected back to the wizard automatically.
  </Step>

  <Step title="Select repositories">
    <Steps>
      <Step>
        Select the repositories where you want to enable Qodo. Use the search bar to find specific repositories, or browse the group tree.

        <Frame>
          <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-5-select-repositories.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=c79e8bd46db107c6a074e4607bd34b42" alt="GitLab wizard step 5 showing Select repositories screen with group tree and repository checkboxes" width="1003" height="792" data-path="images/code-review/gitlab/gl-st-step-5-select-repositories.png" />
        </Frame>
      </Step>

      <Step>
        Click **Setup** to continue.
      </Step>
    </Steps>
  </Step>

  <Step title="Check connection">
    <Frame>
      <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-6-check-connection.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=748ac953c71f2c1af0908af8fdfd50b3" alt="GitLab wizard step 6 showing Check connection with GitLab installation is successful confirmation" width="1004" height="795" data-path="images/code-review/gitlab/gl-st-step-6-check-connection.png" />
    </Frame>

    Qodo automatically verifies the connection to your selected repositories. Once verification is complete, a confirmation is displayed.

    * Click **Next** to proceed.

    If the connection fails, click **Retry**. If it still fails, contact your Qodo Account Manager.
  </Step>

  <Step title="Installation complete">
    <Frame>
      <img src="https://mintcdn.com/qodo/lDsEo5S-rmYR1Zw1/images/code-review/gitlab/gl-st-step-7-installation-complete.png?fit=max&auto=format&n=lDsEo5S-rmYR1Zw1&q=85&s=8f5261fa519b6e39cb82f1ec4ac4cc82" alt="GitLab wizard step 7 showing Installation complete with connected repository count and enabled capabilities" width="998" height="793" data-path="images/code-review/gitlab/gl-st-step-7-installation-complete.png" />
    </Frame>

    The confirmation screen shows the number of connected repositories and confirms that AI code review, auto rule generation, and codebase context are active.

    * Click **Done**.
  </Step>
</Steps>

Qodo is now active on the selected repositories. To add repositories, return to this wizard at any time and run a new installation with the updated scope. Repositories that already have Qodo installed are not available for selection. To reduce scope, remove the installation and create a new one.

## Verify the installation

<Steps>
  <Step>
    Open a new merge request in one of the connected repositories and confirm Qodo is triggered automatically.
  </Step>

  <Step>
    Add a comment using one of the supported commands:

    * `/agentic_describe`
    * `/agentic_review`

    Qodo should respond with a review or MR summary directly on the merge request.
  </Step>
</Steps>

## Next steps

* [Repositories page](/administration/repositories): Enable or disable Qodo on individual repositories within your current scope.
* [Using Qodo in PRs](/code-review/use-qodo-in-prs): Get the most out of Qodo.
* [Migration guide](/install-and-configure/install/gitlab/migration): Migrate an existing Qodo installation.
