Development

Enable Gemini in Chrome on macOS with Country Override

Simple terminal command to enable Google Gemini in Chrome on macOS by overriding region settings to US

February 23, 2026
6 min read
By ClawList Team

Unlock Gemini in Chrome on macOS with One Terminal Command

Posted on ClawList.io | Category: Development | Tags: Gemini, Chrome, macOS, AI Tools, Developer Tricks


If you've been trying to access Google Gemini directly inside Chrome on macOS only to hit a wall because of regional restrictions, you're not alone. Many developers outside the United States have run into this frustration — the feature exists, the browser supports it, but geography gets in the way. The good news: there's a single terminal command that bypasses this entirely, and it's beautifully simple.

Credit goes to @passluo on X, who shared this clean little hack. Let's break down exactly what it does and how to use it.


What Is Gemini in Chrome and Why Is It Region-Locked?

Google has been gradually rolling out Gemini integration directly into Chrome, giving users an AI assistant embedded in the browser experience — think smarter address bar suggestions, on-page assistance, and tighter integration with Google's AI ecosystem. However, like many of Google's AI features, the rollout is geographically staged. Chrome uses feature flag variations that are tied to detected country codes, meaning users outside the US often see the feature as simply unavailable.

This is not a paywall issue, and it's not a capability issue with your machine. Chrome is receiving a country signal during initialization and adjusting which feature flags it activates based on that signal. The browser is perfectly capable of running Gemini — it just needs to be told it's in the right place.


The Fix: Overriding Chrome's Country Detection at Launch

Here's where it gets elegant. Chrome supports a launch argument called --variations-override-country that lets you manually specify what country code the browser should use when evaluating feature flag variations. Combined with a US VPN connection and a clean browser restart, this is enough to unlock Gemini.

Step-by-Step Instructions

Prerequisites:

  • macOS (tested on recent versions)
  • Google Chrome installed
  • A VPN with a US exit node

Steps:

1. Connect to a US VPN node

Make sure your VPN is active and routed through a US server before launching Chrome. This ensures that any server-side eligibility checks also see a US IP address.

2. Fully quit Chrome

Use Command + Q to completely close Chrome. This is important — clicking the red X button leaves Chrome running in the background on macOS. A full quit ensures no residual process is holding old country settings.

# Verify Chrome is not running before proceeding
pgrep -x "Google Chrome"
# No output means Chrome is fully closed

3. Launch Chrome with the country override flag

Open Terminal and run:

open -n -a "Google Chrome" --args --variations-override-country=us

That's it. Chrome will launch with US as its variations country, activating feature flags that would otherwise be suppressed in your region.

What Each Part of That Command Does

open            # macOS command to open applications
-n              # Open a new instance, even if one is already running
-a "Google Chrome"  # Specify the application by name
--args          # Everything after this is passed as arguments to Chrome
--variations-override-country=us  # Tell Chrome to use US country code for feature flags

The --variations-override-country flag is an official Chrome command-line switch. It instructs the browser's Field Trial (Variations) system to treat the session as if the user is in the specified country when downloading and applying feature configurations from Google's servers.


Why This Works: Chrome's Variations System Explained

Chrome uses a system called Chrome Variations (also known as Finch internally at Google) to roll out features gradually. Rather than shipping one monolithic release that either has a feature or doesn't, Chrome downloads a set of "variations" — essentially configuration overrides — from Google's servers at startup. These variations are filtered based on factors like browser version, OS, and country.

When you pass --variations-override-country=us, you're substituting your real detected country with us in this filtering process. Combined with a US IP from your VPN (which handles the server-side checks), Chrome behaves as though it's running in the United States for the purposes of feature eligibility.

This is the same mechanism Google uses internally for staged rollouts, A/B testing, and regional feature launches. Developers and testers at Google use similar flags regularly — you're essentially using a legitimate testing mechanism that was never hidden.

Important note: This flag affects the variations system specifically. It does not spoof your IP address, alter your Google account's region settings, or affect anything outside of Chrome's feature flag evaluation.


Practical Use Cases for Developers and AI Engineers

Beyond just accessing Gemini, understanding this technique opens up a few practical applications:

  • Testing region-specific Chrome features before they roll out in your country, which is useful if you're building extensions or web apps that interact with Chrome's AI features.
  • Demoing AI-integrated workflows to clients or teams without needing to change account regions or purchase region-specific subscriptions.
  • Evaluating Gemini's capabilities for integration into automation pipelines — for example, assessing whether Gemini in Chrome can assist with workflows you're building on platforms like OpenClaw.
  • Staying current with Google's AI tooling as a developer, since Gemini features in Chrome are evolving rapidly and early access helps you plan ahead.

Making It Convenient: Create a Shell Alias

If you plan to use this regularly, add an alias to your shell config:

# Add to ~/.zshrc or ~/.bash_profile
alias chrome-us='open -n -a "Google Chrome" --args --variations-override-country=us'

Then reload your config:

source ~/.zshrc

Now you can simply type chrome-us in your terminal (with VPN active) to launch Chrome with US variations every time.


Caveats and Things to Keep in Mind

  • VPN is still required. The --variations-override-country flag handles the client-side variations check, but Google's backend services still validate your IP. Without a US IP, some features may still be blocked at the server level.
  • This applies per-launch. The flag is not persistent. Each time you launch Chrome normally (without the flag), it reverts to your actual country. You need to use the alias or repeat the command each time.
  • Feature availability may still vary. Google's rollout is multi-layered. Even with both the flag and a US IP, some features may be tied to account region or other eligibility criteria.
  • Chrome updates may affect behavior. Feature flag names and behavior can change between Chrome versions.

Conclusion

The best hacks are often the simplest ones. A single terminal command — open -n -a "Google Chrome" --args --variations-override-country=us — is all it takes to override Chrome's region detection on macOS and unlock Gemini where it would otherwise be unavailable. No patching, no extensions, no workarounds that might break on the next update. Just a legitimate command-line switch doing exactly what it was designed to do.

For developers and AI engineers keeping pace with Google's rapidly expanding AI tooling, this trick is worth having in your toolkit. Add the shell alias, keep it handy, and stay ahead of regional rollout delays.


Source: @passluo on X Published on ClawList.io — Developer resources for AI automation and OpenClaw skills.

Tags

#Chrome#Gemini#macOS#Terminal#Hack

Related Articles