Skip to content

Repository files navigation

Disable Chrome "AI Mode" in the address bar (omnibox)

Typing in Chrome's top bar keeps pushing you into AI Mode instead of going to the website? The chrome://flags toggles stopped working because Google now forces the feature. The only thing that reliably kills it is the enterprise policy AIModeSettings. 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.


The policy (the only thing that matters)

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 to 2. That is wrong. The enum only has 0 and 1. A value of 2 shows as "Error: invalid value" in chrome://policy and does nothing.


Windows

Pick one of the three. All need Administrator (the Policies registry keys are protected).

Option A — double-click the .reg file

  1. Download windows/disable-ai-mode.reg.
  2. Double-click → Yes on the UAC prompt → Yes to merge.
  3. Restart Chrome (or open chrome://policy → Reload policies).

Option B — PowerShell script (self-elevating, verifies itself)

powershell -ExecutionPolicy Bypass -File .\windows\Disable-ChromeAIMode.ps1

Undo: powershell -ExecutionPolicy Bypass -File .\windows\Disable-ChromeAIMode.ps1 -Undo

Option C — one command in an admin terminal

reg add "HKLM\SOFTWARE\Policies\Google\Chrome" /v AIModeSettings /t REG_DWORD /d 1 /f

Option D — Registry Editor by hand

HKEY_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.)


macOS

bash macos/disable-ai-mode.sh          # apply
bash macos/disable-ai-mode.sh --undo   # restore

Which is just:

defaults write com.google.Chrome AIModeSettings -int 1

Then quit and reopen Chrome.


Linux

sudo bash linux/disable-ai-mode.sh          # apply
sudo bash linux/disable-ai-mode.sh --undo   # restore

Which writes /etc/opt/chrome/policies/managed/disable-ai-mode.json:

{ "AIModeSettings": 1 }

(For Chromium builds the directory is /etc/chromium/policies/managed/.)


Verify (all platforms)

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.


Undo

  • Windows: windows/enable-ai-mode.reg, or Disable-ChromeAIMode.ps1 -Undo, or reg 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

For AI agents (Claude Code, Codex, Cursor, Copilot, …)

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/.


Notes

  • 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://policy shows "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.

About

Turn off Google Chrome AI Mode in the address bar (omnibox) with the AIModeSettings=1 policy - .reg/.ps1/macOS/Linux + instructions for AI agents

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages