cd /news/ai-products/de-enshittify-gitlab-remove-gitlab-d… · home › topics › ai-products › article
[ARTICLE · art-157885] src=gist.github.com ↗ pub= topic=ai-products verified=true sentiment=↓ negative

De-enshittify Gitlab (remove Gitlab Duo sidebar and slop features)

A developer published a workaround for disabling GitLab Duo's promotional sidebar on self-hosted GitLab free-tier instances, which lack an admin-panel toggle. The method, tested on GitLab 19.5.1 in Docker, uses an admin private token to PUT the application settings API with duo_features_enabled=false, lock_duo_features_enabled=true and duo_availability=never_on, or an equivalent browser-console fetch, after which the sidebar and Duo features are disabled.

key takeaway

Setting duo_features_enabled=false, lock_duo_features_enabled=true and duo_availability=never_on via the GitLab application settings API removes the Duo sidebar on self-hosted instances such as 19.5.1 in Docker.

by read1 min views52 publishedOct 22, 2026

I'm stuck with Gitlab because I need project/repo hierarchies to deal with the RISC OS source code, and Forgejo currently doesn't support them (I haven't tried Gitea). Unfortunately on the free tier, there's a very invasive sidebar which pimps the Gitlab Duo AI slop features, and doesn't seem to have an "off" switch in the admin panel.

This is how you de-enshittify Gitlab a little by removing the Duo panel. (tested on 19.5.1 self-hosted in Docker).

From https://gitlab.com/gitlab-org/gitlab/-/merge_requests/257551

As an instance admin, create a private token and copy it.

Run this command, replacing <token> with your token, and GITLAB.EXAMPLE.COM with the URL of your Gitlab instance.

curl --request PUT --header "PRIVATE-TOKEN: <token>" \
     --data "duo_features_enabled=false&lock_duo_features_enabled=true&duo_availability=never_on" \
     "https://GITLAB.EXAMPLE.COM/api/v4/application/settings"

Hit F12, open the browser's developer console. Enable pasting. Paste in this block of code:

const response = await fetch('/api/v4/application/settings', {
  method: 'PUT',
  credentials: 'same-origin',
  headers: {
    'Content-Type': 'application/json',
    'X-CSRF-Token': document.querySelector('meta[name="csrf-token"]').content
  },
  body: JSON.stringify({
    duo_features_enabled: false,
    lock_duo_features_enabled: true,
    duo_availability: 'never_on'
  })
});

if (!response.ok) {
  throw new Error(`${response.status}: ${await response.text()}`);
}

const settings = await response.json();
console.log({
  duo_availability: settings.duo_availability,
  duo_features_enabled: settings.duo_features_enabled,
  lock_duo_features_enabled: settings.lock_duo_features_enabled
});

Refresh the page and the sidebar and Duo features should be disabled.

── more in #ai-products 4 stories · sorted by recency
── more on @gitlab 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/de-enshittify-gitlab…] indexed:0 read:1min 2026-10-22 · —