{"slug": "de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features", "title": "De-enshittify Gitlab (remove Gitlab Duo sidebar and slop features)", "summary": "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.", "body_md": "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.\n\nThis is how you de-enshittify Gitlab a little by removing the Duo panel. (tested on 19.5.1 self-hosted in Docker).\n\nFrom [https://gitlab.com/gitlab-org/gitlab/-/merge_requests/257551](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/257551)\n\nAs an instance admin, create a private token and copy it.\n\nRun this command, replacing `<token>` with your token, and `GITLAB.EXAMPLE.COM` with the URL of your Gitlab instance.\n\n```\ncurl --request PUT --header \"PRIVATE-TOKEN: <token>\" \\\n     --data \"duo_features_enabled=false&lock_duo_features_enabled=true&duo_availability=never_on\" \\\n     \"https://GITLAB.EXAMPLE.COM/api/v4/application/settings\"\n```\n\nHit F12, open the browser's developer console. Enable pasting. Paste in this block of code:\n\n``` js\nconst response = await fetch('/api/v4/application/settings', {\n  method: 'PUT',\n  credentials: 'same-origin',\n  headers: {\n    'Content-Type': 'application/json',\n    'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').content\n  },\n  body: JSON.stringify({\n    duo_features_enabled: false,\n    lock_duo_features_enabled: true,\n    duo_availability: 'never_on'\n  })\n});\n\nif (!response.ok) {\n  throw new Error(`${response.status}: ${await response.text()}`);\n}\n\nconst settings = await response.json();\nconsole.log({\n  duo_availability: settings.duo_availability,\n  duo_features_enabled: settings.duo_features_enabled,\n  lock_duo_features_enabled: settings.lock_duo_features_enabled\n});\n```\n\nRefresh the page and the sidebar and Duo features should be disabled.", "url": "https://wpnews.pro/news/de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features", "canonical_source": "https://gist.github.com/philpem/e2d12d08516db17267fbee753c5457d5", "published_at": "2026-10-22 13:52:03+00:00", "updated_at": "2026-10-26 10:46:56.775620+00:00", "lang": "en", "topics": ["ai-products", "developer-tools"], "entities": ["GitLab", "GitLab Duo", "Forgejo", "Gitea", "RISC OS"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features", "markdown": "https://wpnews.pro/news/de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features.md", "text": "https://wpnews.pro/news/de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features.txt", "jsonld": "https://wpnews.pro/news/de-enshittify-gitlab-remove-gitlab-duo-sidebar-and-slop-features.jsonld"}}