October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

How to Disable GitLab AI Features Without AI Gateway

GitLab’s Duo availability controls disable AI features without an AI Gateway. Learn the right setting for an instance, group, project, or individual feature.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You do not need to set up or disconnect an AI Gateway to turn off GitLab Duo. Use GitLab’s availability controls to disable Duo at the scope you choose; on Self-Managed, set it to Always off to prevent lower-level settings from turning it back on. Disable selected AI-native features or Agent Platform separately when needed.

Choose the right control for your GitLab installation

GitLab Duo availability and AI Gateway configuration do different jobs. Availability controls whether users can access Duo features; gateway configuration concerns how AI requests are routed or which models are used. GitLab documents GitLab.com AI Gateway as the default route for Self-Managed Duo configuration and also documents a self-hosted gateway option. Changing gateway settings alone is not documented as a way to disable user-facing features. Start with the availability control that matches your installation and desired scope.

As an Amazon Associate I earn from qualifying purchases.

What you want to turn off Control to use Scope or effect
GitLab Duo across a Self-Managed instance GitLab Duo availability: Always off Instance-wide; child entities cannot override it.
GitLab Duo for a group, subgroup, or project GitLab Duo availability at that group, subgroup, or project Supported scopes depend on whether you use Self-Managed or GitLab.com.
One or more AI-native features Set each feature to Disabled in AI-native features configuration Applies to the selected feature or features.
Agent Platform experiences Agent Platform availability setting Separate from general Duo availability.

Turn off GitLab Duo for an entire Self-Managed instance

For a full instance lockout, a Self-Managed administrator can set GitLab Duo availability to Always off. GitLab’s Control GitLab Duo availability documentation gives this path:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Open Admin > GitLab Duo > Change configuration.
  2. Set GitLab Duo availability to Always off.
  3. Save the change.

Always off is the locked option: child groups and projects cannot override the instance setting. GitLab distinguishes it from Off by default, which does not itself prevent child settings from changing availability. The distinction is also described in GitLab’s GitLab Duo Feature Availability and Configuration documentation.

#1 Best Overall
Yubico - Security Key C NFC - Basic Compatibility - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key C NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key C NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key C NFC via USB-C and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Disable Duo at a group, subgroup, or project

If Duo should remain available elsewhere, change availability at the relevant group, subgroup, or project rather than locking the entire Self-Managed instance. GitLab documents instance, group/subgroup, and project controls for Self-Managed; GitLab.com supports group/subgroup and project controls. On GitLab.com, the top-level group owner manages availability, and changes can cascade to lower levels. A change can take up to 10 minutes to take effect.

  1. Open the GitLab Duo settings for the group, subgroup, or project you want to control.
  2. Choose the availability option that turns Duo off for that scope, following the labels shown in your GitLab version.
  3. Save the change and allow up to 10 minutes for it to take effect.

For the current scope-specific instructions, see GitLab’s availability guide. A parent setting may affect descendants, so check the hierarchy if a child scope does not behave as expected.

Rank #2
Yubico - YubiKey 5C NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-C or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5C NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5C NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5C NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Disable selected AI-native features

To disable specific AI-native features through the administrator controls, go to Admin > GitLab Duo > Configure models for GitLab Duo > AI-native features and choose Disabled for each feature you want off. GitLab warns: “GitLab Duo features remain turned on even if you have not chosen a model for a feature.” In other words, leaving a model unselected is not a substitute for disabling the feature. See GitLab’s Configure GitLab to use self-hosted models page for this configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Turn off Agent Platform separately

If your goal includes hiding or disabling Agent Platform experiences, use its separate availability control; turning off general Duo availability is not a substitute for checking this setting. In Self-Managed administration, open Admin > GitLab Duo > Change configuration and turn off Agent Platform availability. GitLab says this hides related settings for flows and foundational agents and the AI Catalog. Which items are hidden can vary by offering and version, so follow the applicable instructions in Control GitLab Duo Agent Platform availability.

Rank #3
Yubico - YubiKey 5 NFC - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB-A or NFC, FIDO Certified - Protect Your Online Accounts
  • POWERFUL SECURITY KEY: The YubiKey 5 NFC is the most versatile physical passkey, protecting your digital life from phishing attacks. It ensures only you can access your accounts
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 NFC secures 100+ of your favorite accounts, including email, password managers, and more
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 NFC via USB and tap it, or tap it against your phone (NFC), to authenticate. No batteries, no internet connection, and no extra fees required
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it
  • PRIMARY & SPARE KEYS: Just like having a spare house key, we recommend buying two YubiKeys - one for daily use and one as a spare. That way you’ll never get locked out of your accounts

Check the instructions for your GitLab version

GitLab has separate availability instructions for earlier releases, so a current menu path may not match an older installation. The earlier-version guide covers GitLab 17.7–18.1, 17.4–17.6, and 17.3 and earlier. Use the section for the version you run in Control GitLab Duo availability for earlier GitLab versions.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When feature flags are relevant

Self-Managed administrators can disable certain features deployed behind feature flags using the Rails console or Feature Flags API. This is a targeted option for flagged features, not a general replacement for GitLab’s supported Duo availability controls. Consult GitLab’s feature flags guide only when you have a specific flagged feature to manage.

Best Value
Yubico - YubiKey 5C - Multi-Factor authentication (MFA) Security Key and passkey, Connect via USB, FIDO Certified - Protect Your Online Accounts (5C)
  • POWERFUL SECURITY KEY: The YubiKey 5 is a versatile physical passkey that protects your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with popular accounts like Google, Microsoft, and Apple. A single YubiKey 5 secures 100+ of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your YubiKey 5 via USB and tap it to authenticate. No batteries, no internet connection, and no extra fees required.
  • MOST SECURE PASSKEY: Supports FIDO2/WebAuthn, FIDO U2F, Yubico OTP, OATH-TOTP/HOTP, Smart card (PIV), and OpenPGP. That means it’s versatile, working almost anywhere you need it.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.
Rank #4
Yubico - Security Key NFC - Basic Compatibility - Multi-Factor Authentication (MFA) Key, Connect via USB-A or NFC, FIDO Certified
  • POWERFUL SECURITY KEY: The Security Key NFC is the essential physical passkey for protecting your digital life from phishing attacks. It ensures only you can access your accounts.
  • WORKS WITH 1000+ ACCOUNTS: Compatible with Google, Microsoft, and Apple. A single Security Key NFC secures 100 of your favorite accounts, including email, password managers, and more.
  • FAST & CONVENIENT LOGIN: Plug in your Security Key NFC via USB-A and tap it, or tap it against your phone (NFC) to authenticate. No batteries, no internet connection, and no extra fees required.
  • TRUSTED PASSKEY TECHNOLOGY: Uses the latest passkey standards (FIDO2/WebAuthn & FIDO U2F) but does not support One-Time Passwords. For complex needs, check out the YubiKey 5 Series.
  • BUILT TO LAST: Made from tough, waterproof, and crush-resistant materials. Manufactured in Sweden and programmed in the USA with the highest security standards.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.