Enable Google Gemini in Chrome on macOS with Simple Terminal Commands
This guide explains how to route Google traffic, set system and Chrome languages to English, and edit Chrome's Local State file on macOS using terminal commands so that the Gemini AI chatbot becomes available directly within Chrome.
Gemini is Google’s AI chatbot that is normally unavailable in Chrome for users in certain regions. This tutorial shows how to enable it on macOS by routing Google traffic, adjusting language settings, and modifying Chrome’s Local State configuration.
Prerequisites : a VPN or proxy that directs all Google traffic through an overseas server, macOS with Chrome installed, and basic familiarity with the terminal.
Step 1: Route Google traffic – configure your proxy/VPN to forward all requests to Google (global routing works as well).
Step 2: Change macOS system language – open System Preferences → Language & Region and set the primary language to English.
Step 3: Set Chrome language – in Chrome settings, change the Google account language to English.
Step 4: Backup and edit Chrome’s Local State file . Close Chrome, then run the following commands in Terminal:
cp ~/Library/Application\ Support/Google/Chrome/Local\ State ~/Library/Application\ Support/Google/Chrome/Local\ State.bak
sed -i '' 's/"is_glic_eligible":[[:space:]]*false/"is_glic_eligible":true/g' ~/Library/Application\ Support/Google/Chrome/Local\ State
sed -i '' 's/"variations_country":"cn"/"variations_country":"us"/g' ~/Library/Application\ Support/Google/Chrome/Local\ State
sed -i '' 's/"variations_permanent_consistency_country":[[:space:]]*\[\([^]]*\),[[:space:]]*"[^"]*"\]/"variations_permanent_consistency_country":[1,"us"]/g' ~/Library/Application\ Support/Google/Chrome/Local\ StateStep 5: Restart Chrome . When Chrome opens, Gemini’s chat history is imported automatically. The sidebar may appear on the left by default; you can move it to the right in the UI settings.
After these steps, Gemini works in Chrome even with a free Google account.
Acknowledgement : Thanks to @程序员安仔 for providing the method.
Architect's Tech Stack
Java backend, microservices, distributed systems, containerized programming, and more.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
