Disable Chrome AI Modeปิด AI Mode ของ Chrome
Uniqcret/disable-chrome-ai-modeA small cross-platform kit that turns off Google Chrome's AI Mode in the address bar (omnibox) by setting the enterprise policy AIModeSettings=1 — the real off switch, now that the chrome://flags toggles no longer do anything. It ships a double-click .reg file and a self-elevating PowerShell script for Windows, plus bash installers for macOS and Linux, and every path has an --undo. Verification is a glance at chrome://policy, or the bundled Python checker.ชุดสคริปต์ข้ามแพลตฟอร์มขนาดเล็กสำหรับปิด AI Mode ที่ Google ใส่มาในช่อง address bar (omnibox) ของ Chrome โดยตั้งค่า enterprise policy ชื่อ AIModeSettings=1 ซึ่งเป็นสวิตช์จริงที่ยังใช้ได้ หลังจากที่ตัวเลือกใน chrome://flags ปิดไม่ได้อีกต่อไป มีทั้งไฟล์ .reg ที่ดับเบิลคลิกได้และสคริปต์ PowerShell ที่ยกสิทธิ์ admin ให้เองสำหรับ Windows พร้อมสคริปต์ bash สำหรับ macOS และ Linux ทุกวิธีมีคำสั่ง --undo ให้ย้อนกลับ ส่วนการตรวจสอบก็แค่เปิด chrome://policy ดู หรือใช้ตัวเช็กที่เขียนด้วย Python ที่แถมมาให้
What you getมีอะไรบ้าง
- The problem: Chrome pushes AI Mode into the omnibox search box, and the chrome://flags toggles people used to turn it off no longer work.
- The mechanism: it writes the enterprise policy AIModeSettings=1 at the mandatory (machine) level — not 2, which is what most guides online say and what makes chrome://policy show an error.
- Install: Windows gets a double-click .reg file, a self-elevating PowerShell script and a one-line reg add; macOS and Linux get bash installers. Every path ships an --undo.
- Verify: open chrome://policy and check that AIModeSettings reads 1 with status OK, or run verify/check_policy.py (Python, with Playwright optional).
- Caveats: it needs admin/sudo and Chrome 138 or newer, the right-click "Always show AI Mode shortcuts" option only hides the UI, and once the policy is in place AI Mode cannot be switched back on from Chrome's own settings.
- Ships AGENTS.md, CLAUDE.md and a Claude Code skill, so an AI coding agent can read the repo and apply the policy for you.
- ปัญหา: Chrome ดัน AI Mode เข้ามาในช่องค้นหาบน address bar และตัวเลือกใน chrome://flags ที่เคยใช้ปิดได้ก็ใช้ไม่ได้แล้ว
- กลไก: เขียน enterprise policy AIModeSettings=1 ในระดับเครื่อง (mandatory) — ไม่ใช่ค่า 2 อย่างที่คู่มือส่วนใหญ่ในเน็ตบอกไว้ ซึ่งจะทำให้ chrome://policy ขึ้น error
- วิธีติดตั้ง: Windows มีทั้งไฟล์ .reg ที่ดับเบิลคลิกได้ สคริปต์ PowerShell ที่ยกสิทธิ์ admin ให้เอง และคำสั่ง reg add บรรทัดเดียว ส่วน macOS กับ Linux ใช้สคริปต์ bash ทุกวิธีมี --undo ให้ย้อนกลับ
- วิธีตรวจสอบ: เปิด chrome://policy แล้วดูว่าแถว AIModeSettings เป็นค่า 1 และสถานะเป็น OK หรือจะรัน verify/check_policy.py (เขียนด้วย Python ใช้ Playwright ก็ได้ ไม่ใช้ก็ได้)
- ข้อควรรู้: ต้องมีสิทธิ์ admin/sudo และ Chrome เวอร์ชัน 138 ขึ้นไป · ตัวเลือกคลิกขวาที่ช่อง address bar อย่าง "Always show AI Mode shortcuts" แค่ซ่อนปุ่มเฉย ๆ และเมื่อ policy ทำงานแล้วจะเปิด AI Mode กลับจากหน้า settings ของ Chrome ไม่ได้
- แถม AGENTS.md, CLAUDE.md และ skill สำหรับ Claude Code มาให้ด้วย ให้ AI agent อ่าน repo แล้วตั้งค่าให้ได้เลย