Typing in Chrome's top bar keeps pushing you into AI Mode instead of going to the website? The
chrome://flagstoggles stopped working because Google now forces the feature. The only thing that reliably kills it is the enterprise policyAIModeSettings. This repo gives you the one-click files.
Verified: Chrome 151.0.7922.170 · Windows 11 · 2026-08-25 · policy shows Status: OK in chrome://policy and the address bar goes back to normal search/URL behaviour. No reboot needed.
| Policy | Value | Meaning |
|---|---|---|
AIModeSettings |
0 |
Allow AI Mode integrations (default) |
AIModeSettings |
1 |
Do not allow AI Mode integrations ← use this |
- Controls the AI Mode entry points in the address bar (omnibox) and the New Tab page search box.
- Supported since Chrome 138 (Windows, macOS, Linux, ChromeOS, Android, iOS).
- Supports dynamic refresh — reload policies or restart Chrome; no computer restart.
- Source of truth: Chromium
policy_definitions/GenerativeAI/AIModeSettings.yaml.
⚠️ Many online guides say set it to2. That is wrong. The enum only has0and1. A value of2shows as "Error: invalid value" inchrome://policyand does nothing.
Pick one of the three. All need Administrator (the Policies registry keys are protected).
- Download
windows/disable-ai-mode.reg. - Double-click → Yes on the UAC prompt → Yes to merge.
- Restart Chrome (or open
chrome://policy→ Reload policies).
powershell -ExecutionPolicy Bypass -File .\windows\Disable-ChromeAIMode.ps1Undo: powershell -ExecutionPolicy Bypass -File .\windows\Disable-ChromeAIMode.ps1 -Undo
reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v AIModeSettings /t REG_DWORD /d 1 /fHKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome → New DWORD (32-bit) → name AIModeSettings → value 1.
(Create the Google and Chrome keys if they do not exist.)
bash macos/disable-ai-mode.sh # apply
bash macos/disable-ai-mode.sh --undo # restoreWhich is just:
defaults write com.google.Chrome AIModeSettings -int 1Then quit and reopen Chrome.
sudo bash linux/disable-ai-mode.sh # apply
sudo bash linux/disable-ai-mode.sh --undo # restoreWhich writes /etc/opt/chrome/policies/managed/disable-ai-mode.json:
{ "AIModeSettings": 1 }(For Chromium builds the directory is /etc/chromium/policies/managed/.)
Open chrome://policy. You should see:
| Policy name | Policy value | Source | Applies to | Level | Status |
|---|---|---|---|---|---|
| AIModeSettings | 1 | Platform | Machine | Mandatory | OK |
If it is missing, click Reload policies. If it says Error, you used a value other than 0/1.
Optional automated check (needs Python + Playwright): python verify/check_policy.py — launches an isolated scratch-profile Chrome, reads the AIModeSettings row out of chrome://policy and saves a screenshot.
- Windows:
windows/enable-ai-mode.reg, orDisable-ChromeAIMode.ps1 -Undo, orreg delete "HKLM\SOFTWARE\Policies\Google\Chrome" /v AIModeSettings /f - macOS:
defaults delete com.google.Chrome AIModeSettings - Linux:
sudo rm /etc/opt/chrome/policies/managed/disable-ai-mode.json
If you are an AI coding agent asked to "stop Chrome AI mode in the address bar", read AGENTS.md. It contains the exact commands, the one value that is correct (1), the wrong value to refuse (2), and how to verify without disturbing the user's open browser. A drop-in Claude Code skill lives in .claude/skills/disable-chrome-ai-mode/.
- Chrome also reads
HKCU\SOFTWARE\Policies\Google\Chrome, but that key is ACL-protected too, so it does not save you the admin prompt. If you set both,chrome://policyshows "OK, Superseding" — harmless, HKLM wins. - The quick band-aid (right-click the address bar → untick "Always show AI Mode shortcuts") only hides the shortcut chips; the policy is the real off switch.
- "Platform / Machine / Mandatory" means users cannot flip it back from Chrome settings — which is the point.
ปัญหา: พิมพ์ในแถบด้านบนของ Chrome (เรียกว่า address bar หรือ omnibox) แล้วมันเด้งเข้า AI Mode แทนที่จะไปเว็บ — และปิดใน chrome://flags ไม่ได้ผลแล้ว
วิธีแก้ที่ได้ผลจริง: ตั้งค่า policy AIModeSettings = 1 (ค่า 2 ที่หลายเว็บบอก ผิด ใช้ไม่ได้)
- Windows: ดับเบิลคลิก
windows/disable-ai-mode.reg→ กด Yes → ปิด-เปิด Chrome ใหม่ (ไม่ต้อง restart เครื่อง) - macOS:
defaults write com.google.Chrome AIModeSettings -int 1 - Linux:
sudo bash linux/disable-ai-mode.sh - ตรวจสอบ: เปิด
chrome://policyต้องเห็นAIModeSettings=1สถานะ OK - ยกเลิก: ดับเบิลคลิก
windows/enable-ai-mode.reg
MIT License · maintained by Uniqcret · PRs welcome if Google renames the policy again.