Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Disable GitLab AI Features Without AI Gateway

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

GitLab's built-in AI features (like chat, code suggestions, and summary tools) are convenient, but not every team wants them enabled. If you need to turn them off without setting up the AI Gateway—perhaps for privacy, compliance, or to reduce background requests—you can do so directly in GitLab's settings. This guide walks you through disabling all AI-powered features from the Admin Area, so no gateway configuration is required. You'll need administrator access to your GitLab instance.

What You'll Need

  • Administrator (Owner) access to your GitLab instance.
  • For self-managed GitLab: the ability to edit gitlab.rb (Omnibus) or gitlab.yml (source installs) and run reconfigure/restart commands.
  • For GitLab.com: a group or project Owner role to disable features at that level.

Step-by-Step

  1. Log in as an administrator to your GitLab instance. You need at least the admin role to access the global settings.
  2. Go to Admin Area: click your avatar in the top-right corner and select Admin Area from the dropdown.
  3. Navigate to Settings: in the left sidebar, under Settings, click General.
  4. Expand the AI-powered features section: scroll down to find AI-powered features (or Artificial intelligence on some versions). Click the Expand button to open its settings.
  5. Uncheck all AI feature boxes: you'll see checkboxes for each AI feature, such as Chat, Code Suggestions, Summarize changes, and Explain this code. Uncheck every box to disable all AI features at the instance level.
  6. Save changes: scroll to the bottom of the section and click Save changes. This immediately disables AI features for all projects and groups on the instance.
  7. For self-managed, also disable the AI Gateway connection: even though you're not setting up a gateway, GitLab may still try to connect to the default gateway URL. To prevent any connection attempts, edit the configuration file:
    • For Omnibus: edit /etc/gitlab/gitlab.rb and set gitlab_rails['ai_gateway_url'] = nil (or leave it commented out).
    • For source installs: edit config/gitlab.yml and remove or comment out the ai_gateway_url line.
  8. Reconfigure/restart GitLab (self-managed only): run sudo gitlab-ctl reconfigure (Omnibus) or restart the GitLab service (source installs) to apply the configuration changes.
  9. Verify the features are off: go to any project, open a merge request or a file, and check that AI buttons (like “Explain this code” or “Summarize changes”) no longer appear. Also check the chat icon in the bottom-right corner—it should be gone.
  10. Optional: Disable at group/project level: if you only want to disable AI for specific groups or projects (e.g., on GitLab.com where you can't change global settings), go to the group or project's Settings → General → AI-powered features and uncheck the boxes there. This overrides the instance setting for that scope.

Common Mistakes

  • Only disabling at the project level: if you're an admin and want to disable globally, you must do it in the Admin Area. Changing it in a single project won't affect other projects.
  • Forgetting to save: the checkboxes won't take effect until you click Save changes at the bottom of the section.
  • Not clearing the cache: after disabling, some users may still see AI buttons due to cached frontend assets. Clear your browser cache or hard-refresh (Ctrl+F5) to see the updated UI.
  • Overlooking the AI Gateway URL: even if you disable features, GitLab may still try to connect to the AI Gateway if the URL is set. Removing the URL prevents any connection attempts.
  • Assuming GitLab.com has a global switch: on GitLab.com, you cannot disable AI for all users; you must do it per group or project. Make sure you're in the right scope.

Tips

  • Use the search bar: in the Admin Area settings, use the search box to quickly jump to “AI” and find the relevant section.
  • Test with a demo project: after disabling, create a test project and verify that no AI features appear. This confirms the setting is applied.
  • Document your change: if you're in a team, note in your internal documentation that AI features are disabled to avoid confusion.
  • Keep the AI Gateway URL empty: even if you later decide to enable AI, you'll need to set up the gateway properly. Leaving it empty now ensures no accidental connections.
  • Check for feature flags: in some versions, AI features are behind feature flags. If you still see them after disabling, check the gitlab_features flags (e.g., chat, code_suggestions) and disable them via the Rails console or configuration.

Troubleshooting

AI features still appear after disabling: This usually means the settings weren't saved or the cache is stale. First, go back to the Admin Area and confirm the checkboxes are unchecked and saved. Then hard-refresh your browser. If they persist, try restarting GitLab (self-managed) or wait a few minutes for the change to propagate.

You see errors about AI Gateway in logs: Even with features disabled, GitLab might attempt to connect if the gateway URL is configured. In your configuration file, ensure ai_gateway_url is either commented out or set to nil, then reconfigure. If you're on GitLab.com, you don't have control over this—ignore the logs if they appear.

Cannot find the AI settings section: In older versions of GitLab, the section might be named “Artificial intelligence” or “AI” and located under Settings → Integrations instead of General. Use the search bar in Admin Area to locate it. If you still can't find it, your version may not have AI features—check the GitLab docs for your version.

Group/project settings don't stick: Make sure you have Owner role for that group or project. If you're an admin but not an owner, you may not be able to change these settings. Also, ensure you're editing the correct scope—group settings apply to all projects within it.

Frequently Asked Questions

Q: Do I need to set up an AI Gateway to disable AI features?
No. Disabling the features in the Admin Area is sufficient. The AI Gateway is only needed if you want to enable AI features. Leaving the gateway URL empty prevents any connection attempts.

Q: Will disabling AI features affect other GitLab functionality?
No. AI features are separate from core GitLab features like repositories, CI/CD, and issue tracking. Disabling them only removes AI-powered buttons and chat.

Q: Can I disable AI features for a single project only?
Yes. Go to the project's Settings → General → AI-powered features and uncheck the boxes. This overrides the instance setting for that project.

Q: How do I re-enable AI features later?
Simply go back to the same settings and check the boxes again, then save. For self-managed, you'll also need to configure the AI Gateway URL if you want the features to actually work.

Q: On GitLab.com, can an admin disable AI for the whole instance?
No. GitLab.com administrators cannot change global settings for all users. You must disable AI per group or project. If you're a group owner, you can disable it for all projects in that group.

Q: Will disabling AI features stop data from being sent to GitLab's servers?
Yes. When AI features are disabled, GitLab does not send code or user data to the AI Gateway. However, other GitLab features (like analytics) may still send anonymized usage data—check your instance's privacy settings if that's a concern.