Control GitLab Duo availability

{{< history >}}

{{< /history >}}

GitLab Duo features that are generally available are automatically turned on for all users that have access.

{{< alert type=”note” >}}

To turn on GitLab Duo Self-Hosted, see Configure GitLab to access GitLab Duo Self-Hosted.

{{< /alert >}}

Turn GitLab Duo features on or off

You can turn GitLab Duo on or off for a group, project, or instance.

When GitLab Duo is turned off for a group, project, or instance:

  • GitLab Duo features that access resources, like code, issues, and vulnerabilities, are not available.
  • Code Suggestions is not available.
  • GitLab Duo Chat is not available.

For a group or subgroup

{{< tabs >}}

{{< tab title=”In 17.8 and later” >}}

In GitLab 17.8 and later, follow these instructions to turn GitLab Duo on or off for a group, including its subgroups and projects.

Prerequisites:

  • You must have the Owner role for the group.

To turn GitLab Duo on or off for a group or subgroup:

  1. On the left sidebar, select Search or go to and find your group or subgroup.
  2. Go to the settings, based on your deployment type and group level:
    • For GitLab.com top-level groups: Select Settings > GitLab Duo and select Change configuration.
    • For GitLab.com subgroups: Select Settings > General and expand GitLab Duo features.
    • For GitLab Self-Managed (all groups and subgroups): Select Settings > General and expand GitLab Duo features.
  3. Choose an option.
  4. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.7” >}}

In GitLab 17.7, follow these instructions to turn GitLab Duo on or off for a group, including its subgroups and projects.

{{< alert type=”note” >}}

In GitLab 17.7:

  • For GitLab.com, the GitLab Duo settings page is only available for top-level groups, not for subgroups.

  • For GitLab Self-Managed, the GitLab Duo settings page is not available for groups or subgroups.

{{< /alert >}}

Prerequisites:

  • You must have the Owner role for the group.

To turn GitLab Duo on or off for a top-level group:

  1. On the left sidebar, select Search or go to and find your top-level group.
  2. Select Settings > GitLab Duo.
  3. Select Change configuration.
  4. Choose an option.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.4 to 17.6” >}}

In GitLab 17.4 to 17.6, follow these instructions to turn GitLab Duo on or off for a group and its subgroups and projects.

{{< alert type=”note” >}}

In GitLab 17.4 to 17.6:

  • For GitLab.com, the GitLab Duo settings page is only available for top-level groups, not for subgroups.

  • For GitLab Self-Managed, the GitLab Duo settings page is not available for groups or subgroups.

{{< /alert >}}

Prerequisites:

  • You must have the Owner role for the group.

To turn GitLab Duo on or off for a top-level group:

  1. On the left sidebar, select Search or go to and find your top-level group.
  2. Select Settings > GitLab Duo.
  3. Select Change configuration.
  4. Choose an option.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.3 and earlier” >}}

In GitLab 17.3 and earlier, follow these instructions to turn GitLab Duo on or off for a group and its subgroups and projects.

Prerequisites:

  • You must have the Owner role for the group.

To turn GitLab Duo on or off for a group or subgroup:

  1. On the left sidebar, select Search or go to and find your group or subgroup.
  2. Select Settings > General.
  3. Expand Permissions and group features.
  4. Select or clear the Use GitLab Duo features checkbox.
  5. Optional. Select the Enforce for all subgroups checkbox to cascade the setting to all subgroups.

    Cascading setting

{{< /tab >}}

{{< /tabs >}}

For a project

{{< tabs >}}

{{< tab title=”In 17.4 and later” >}}

In GitLab 17.4 and later, follow these instructions to turn GitLab Duo on or off for a project.

Prerequisites:

  • You must have the Owner role for the project.

To turn GitLab Duo on or off for a project:

  1. On the left sidebar, select Search or go to and find your project.
  2. Select Settings > General.
  3. Expand Visibility, project features, permissions.
  4. Under GitLab Duo, turn the toggle on or off.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.3 and earlier” >}}

In GitLab 17.3 and earlier, follow these instructions to turn GitLab Duo on or off for a project.

  1. Use the GitLab GraphQL API projectSettingsUpdate mutation.
  2. Set the duo_features_enabled setting to true or false.

{{< /tab >}}

{{< /tabs >}}

For an instance

{{< details >}}

  • Offering: GitLab Self-Managed

{{< /details >}}

{{< tabs >}}

{{< tab title=”In 17.7 and later” >}}

In GitLab 17.7 and later, follow these instructions to turn GitLab Duo on or off for an instance.

Prerequisites:

  • You must be an administrator.

To turn GitLab Duo on or off for an instance:

  1. On the left sidebar, at the bottom, select Admin area.
  2. Select GitLab Duo.
  3. Select Change configuration.
  4. Choose an option.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.4 to 17.6” >}}

In GitLab 17.4 to 17.6, follow these instructions to turn GitLab Duo on or off for the instance.

Prerequisites:

  • You must be an administrator.

To turn GitLab Duo on or off for an instance:

  1. On the left sidebar, at the bottom, select Admin area.
  2. Select Settings > General.
  3. Expand GitLab Duo features.
  4. Choose an option.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.3 and earlier” >}}

In GitLab 17.3 and earlier, follow these instructions to turn GitLab Duo on or off for an instance.

Prerequisites:

  • You must be an administrator.

To turn GitLab Duo on or off for an instance:

  1. On the left sidebar, at the bottom, select Admin.
  2. Select Settings > General.
  3. Expand AI-powered features.
  4. Select or clear the Use Duo features checkbox.
  5. Optional. Select the Enforce for all subgroups checkbox to cascade the setting to all groups in the instance.

{{< /tab >}}

{{< /tabs >}}

{{< alert type=”note” >}}

An issue exists to allow administrators to override the setting for specific groups or projects.

{{< /alert >}}

Turn on beta and experimental features

GitLab Duo features that are experimental and beta are turned off by default. These features are subject to the Testing Agreement.

On GitLab.com

{{< details >}}

  • Tier: Premium, Ultimate
  • Offering: GitLab.com, GitLab Self-Managed

{{< /details >}}

{{< tabs >}}

{{< tab title=”In 17.4 and later” >}}

In GitLab 17.4 and later, follow these instructions to turn on GitLab Duo experimental and beta features for your group on GitLab.com.

{{< alert type=”note” >}}

In GitLab 17.4 to 17.6, you can change this setting for top-level groups only. (Subgroups do not have the required settings.) In GitLab 17.7 and later, the settings are available for all groups.

{{< /alert >}}

Prerequisites:

  • You must have the Owner role for the top-level group.

To turn on GitLab Duo experiment and beta features for a top-level group:

  1. On the left sidebar, select Search or go to and find your group.
  2. Select Settings > GitLab Duo.
  3. Under GitLab Duo section, select Change configuration.
  4. Select Turn on experiment and beta GitLab Duo features.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.3 and earlier” >}}

In GitLab 17.3 and earlier, follow these instructions to turn on GitLab Duo experimental and beta features for your group on GitLab.com.

  1. On the left sidebar, select Search or go to and find your group.
  2. Select Settings > General.
  3. Expand Permissions and group features.
  4. Under GitLab Duo experiment and beta features, select the Use experiment and beta GitLab Duo features checkbox.
  5. Select Save changes.

{{< /tab >}}

{{< /tabs >}}

This setting cascades to all projects that belong to the group.

On GitLab Self-Managed

{{< tabs >}}

{{< tab title=”In 17.4 and later” >}}

In GitLab 17.4 and later, follow these instructions to turn on GitLab Duo experiment and beta features for your GitLab Self-Managed instance.

{{< alert type=”note” >}}

In GitLab 17.4 to 17.6, the GitLab Duo settings page is available for Self-Managed instances. Beginning with GitLab 17.7, the settings page includes more configuration options.

{{< /alert >}}

Prerequisites:

  • You must be an administrator.

To turn on GitLab Duo experiment and beta features for an instance:

  1. On the left sidebar, at the bottom, select Admin area.
  2. Select Settings > GitLab Duo.
  3. Expand Change configuration.
  4. Under Feature Preview, select Use experiment and beta GitLab Duo features.
  5. Select Save changes.

{{< /tab >}}

{{< tab title=”In 17.3 and earlier” >}}

To enable GitLab Duo beta and experimental features for GitLab versions where GitLab Duo Chat is not yet generally available, see the GitLab Duo Chat documentation.

{{< /tab >}}

{{< /tabs >}}