ESC
AI 9 分钟阅读

Gemini配置检查器:链式区域扫描器,查找能让你进入Google AI Studio和Gemini的代理配置(签名浏览器检查,防DPI,Windows/macOS/Linux/Android)

这是一个开源工具,用于通过签名浏览器检查测试代理配置,帮助用户绕过Google AI Studio和Gemini的地区限制,支持Windows、macOS、Linux和Android平台,目前处于早期版本。

来源:GitHub

Gemini/Check

英文 · فارسی

Download the Gemini app

Gemini Config Checker

查找实际能让你进入Google AI Studio和Gemini的代理配置,通过在签名登录的浏览器中逐一测试,模拟真实使用路径。

版本0.1.0,早期预发布版。 目前仅在Windows上端到端测试通过(唯一运行过的平台)。macOS、Linux和Android构建来自CI流水线,尚未在真实设备上验证。请报告您的测试结果。

两种模式,一个开关

标题中的简单/高级开关决定测试内容。标题下的路线图会随之变化。

简单模式高级模式
解决的问题我的哪些配置有效?通过我的配置,哪些免费配置有效?
路线你 → 配置 → AI Studio / Gemini你 → 基础配置 → 免费配置 → AI Studio / Gemini
您提供您的配置(链接、订阅URL或base64),或选择现成的免费列表一个有效的基础配置,加上免费列表或粘贴的配置
防DPI配置文件应用于测试下的每个配置(每个从您的机器连接)基础配置的第一跳(免费配置在其隧道内运行)
典型用途检查已有的一堆配置;测试即将依赖的配置您的Cloudflare配置能连接,但需要Google接受的不同出口
导出链接、base64、单个配置的完整Xray配置链接、base64、链式Xray配置(基础 → 免费)

目录

致谢 · 为什么需要签名浏览器 · 下载与安装 · 用户指南 · 故障排除 · 隐私与安全 · 从源码构建 · 发布与CI

致谢与参考

本项目得益于其他人的工作。请使用并为他们加星。

项目贡献
0xRadikal/Free-v2ray-Configs自动更新的免费配置列表(已验证、快速、安全等),本工具扫描这些列表
patternihaPattN(Windows/Linux/macOS客户端)和PattNG(Android):防DPI配方,以及其Xray-core分支中的finalmask语义,本工具的分片转发器重现了该语义
bia-pain-bache/BPB-Worker-PanelCloudflare Worker面板,生成本工具链式使用的许多基础配置(patterniha维护了一个分支)
防DPI配方帖子用作默认值的确切Finalmask/指纹/ALPN/密码值
MatinSenPai/SenPaiScanner用于查找干净Cloudflare IP的配套工具,可作为配置地址
XTLS/Xray-core嵌入应用的代理引擎
2dust/v2rayN“带链导出”遵循的配置布局(PattN是其分支)
Wails原生桌面外壳
Vazirmatn 和 JetBrains MonoUI中使用的字体(SIL开源字体许可)

为什么需要签名浏览器?

Google根据签名登录账户在页面加载后决定区域可用性。即使向Gemini API发送带假密钥的普通HTTP请求,也会从每个国家回答“正常”,因此连通性检测会将所有在线配置标记为健康。构建本工具时实测:出口定位到美国、香港和新加坡的被阻止,且同一出口可能随时间变化。唯一可靠的信号是Google向签名用户显示的内容,因此本工具读取该信息:

产品“被阻止”的表现
AI Studio重定向到 /docs/available-regions
Gemini“Gemini目前在您的国家/地区不可用”

下载与安装

从发布页面获取您系统的构建版本。每个发布附带SHA256SUMS.txt。

平台桌面应用(原生窗口)Web服务器(UI在浏览器中)区域检查
Windowsamd64, arm64amd64, arm64✅ 需要 Chrome / Edge / Brave
macOS通用(Intel + Apple Silicon)amd64, arm64✅ 需要 Chrome / Edge / Brave
Linuxamd64 (GTK 3 + WebKitGTK 4.1)amd64, arm64, armv7✅ 需要 Chrome / Chromium / Edge / Brave
Android 8+APK (arm64-v8a)从源码为Termux构建 (GOOS=android)❌ 仅连通性模式
Windows
  1. 下载 gemini-config-checker-desktop_<version>_windows_amd64.zip(或 arm64)并解压到任意位置。
  2. 运行 GeminiConfigChecker.exe。Windows 10/11 内置WebView2;如果SmartScreen警告,选择 更多信息 → 仍然运行(构建未签名)。
macOS
  1. 下载 ..._macos_universal.zip,解压并将 .app 移动到应用程序。
  2. 首次启动:右键点击应用 → 打开。如果macOS仍拒绝:xattr -dr com.apple.quarantine "/Applications/GeminiConfigChecker.app"。
Linux
  1. 一次性安装运行时库:sudo apt install libgtk-3-0 libwebkit2gtk-4.1-0(Debian/Ubuntu;使用您发行版的等价包)。
  2. tar -xzf gemini-config-checker-desktop_<version>_linux_amd64.tar.gz,然后运行 ./GeminiConfigChecker。
  3. 无桌面环境?改用Web服务器构建:./gemini-config-checker 并打开 http://localhost:8787。
Android
  1. 在手机上下载 gemini-config-checker_<version>_android_arm64.apk。
  2. 为浏览器或文件管理器允许安装未知应用,然后打开APK。
  3. 启动应用。持久通知(“扫描引擎运行中”)是预期的:引擎作为前台服务运行,以便长时间扫描在屏幕关闭后仍能继续。使用其停止动作退出引擎。
  4. APK运行仅连通性模式(见设置参考)。Android不允许应用驱动签名Chromium,因此无法在那里验证区域。
  5. 发布APK在配置了仓库密钥时用其签名,否则用一次性密钥:它能安装,但后续构建无法就地更新,因此请先卸载。
Web服务器(任何OS、服务器、Termux)

./gemini-config-checker 在 http://localhost:8787 提供相同UI并打开浏览器。标志:-addr 127.0.0.1:8787、-no-open、-version。 UI无认证:保持在本地主机,或隧道它(ssh -L 8787:localhost:8787 your-server)而不是暴露。

用户指南

1. 首次启动

窗口有三个标签页:扫描(测试内容和方式)、结果(实时列表、过滤器、复制按钮)和导出。 标题中有简单/高级开关、扫描状态和明/暗主题按钮。勾选“记住”时,您输入的内容会在本设备上记住(在共享计算机上取消勾选)。

2. 选择模式

  • 使用简单模式当您已有配置并想知道哪些有效,或验证即将依赖的配置。
  • 使用高级模式当您的Cloudflare配置能连接但Google阻止其出口:链式免费配置为您提供其他出口。
  • 您可以随时切换开关。结果保留产生它们的扫描模式;导出和复制按钮遵循该模式。

3. 使用Google登录(区域检查)

区域检查以您的身份打开AI Studio和Gemini。点击使用Google登录一次:

  1. Chrome/Edge/Brave窗口在单独配置文件中打开,仅本应用使用。正常登录。应用从不查看您的密码。
  2. 检测到登录后,窗口自动关闭,卡片变为“Google账户已连接”。登录信息为下次记住。
  3. 最好使用辅助账户:请求来自多个IP,Google可能显示“可疑登录”通知。
  4. 从应用中移除账户仅删除该私有配置文件。它从不触及您的日常浏览器或账户。

未安装浏览器,或在Android上?将检查类型(设置)切换为仅连通性:无需登录或浏览器。

4. 简单模式,逐步操作

  1. 将配置粘贴到框中,每行一个:vless://、vmess://、trojan://、ss://。订阅URL(https://…)或base64文本也适用。 留空框以测试现成的免费列表(选择下方一个)。
  2. 如果您处于普通Cloudflare配置无法连接的网络,保持防DPI开启(见第6节)。
  3. 登录(区域检查)或选择仅连通性。
  4. 按开始扫描(或 Ctrl+Enter)。观察结果标签页填充。

5. 高级模式,逐步操作

  1. 基础配置:对您有效且不在AI Studio遇到区域墙的配置。粘贴分享链接或完整xray JSON,甚至是多跳链(例如)

it that already dials through a Cloudflare worker). This is the route every free config will be chained behind. 2. Anti-DPI: applied to the base config’s first hop, the connection that leaves your machine. 3. Source: choose a ready-made list (verified is recommended) or paste free configs yourself. custom accepts any subscription URL. 4. Settings, sign-in, Start scan. Before testing the free configs, the app tests your base config first and stops with a clear message if the base itself cannot reach Google.

6. The anti-DPI profile

Inside Iran, plain Cloudflare configs mostly connect only with the settings below (recipe by patterniha / PattN). The values can change, so every one is editable; Suggested values restores the defaults.

SettingDefaultWhat it does
Finalmask (JSON)two fragment masks: tlshello with lengths [0,104,1], then 1-1 with lengths [114,1]splits the TLS ClientHello so filters cannot read the server name
Fingerprintunsafenative Go TLS instead of a browser imitation, so the cipher list below applies
ALPNhttp/1.1
Cipher suitesthe 13-suite list from the recipe
Clean IPemptyreplaces the connection address (the old domain stays as SNI and Host)
  • Read from config: if the config you pasted already carries these values (finalmask, cipherSuites, alpn in JSON, or fm, ciphers, alpn, fp link parameters), this button copies them into the form.
  • Stock xray-core only supports one length/delay per fragment mask, while the recipe uses per-segment lengths/delays (a PattN fork feature). The app runs the same fragmenting algorithm in a small local forwarder in front of the connection. Only fragment masks are supported; other mask types are rejected with a clear message.
  • Switch the profile off outside filtered networks; it only adds latency there.

7. Settings reference

SettingDefaultMeaning
Check typeRegion with signed-in browserRegion: opens AI Studio and Gemini and reads Google’s verdict (accurate, 20–40 s per config). Connectivity only: just proves the route reaches Google and measures latency (fast, no sign-in, but the region is not checked)
“Healthy” meansAI Studio and GeminiRequire both, only AI Studio, or only Gemini
Max configs60How many configs to test (the list is shuffled first)
Simultaneous browser checks4Each uses about 200 MB of RAM; lower it on small machines
Simultaneous connectivity tests20The cheap first stage that drops dead configs before the browser stage
Connectivity timeout10 sRaise it on slow links
RememberonStores configs and settings in the app’s local storage on this device only

8. Reading the results

  • Healthy / Connected: white label. In region mode it means your “healthy” rule passed; in connectivity mode it only means “reachable”.
  • Region blocked: Google showed the region wall for at least one product you require. The AI Studio and Gemini columns show each product (✓ free, ✗ blocked).
  • Error: dead config, timeout, or a browser problem; hover the label for the reason.
  • Ping is the latency of one request through the full route. The first tile shows the number tested, and “base ping” (advanced) or “lowest ping” (simple).
  • Filter by status, search by name or address, sort by ping or name, and select several rows for bulk copy.
  • A verdict is a sample, not a guarantee. The exit of a Cloudflare Worker can change between connections, so the same route may pass now and fail a minute later. Re-test the config you intend to keep.

9. Using what you found

  • Copy puts the share link on the clipboard. Paste it into your client (v2rayN, Hiddify, PattN, …), or into BPB’s Chain Proxy field.
  • Copy with chain (advanced) / Copy full config (simple) puts a ready-to-import Xray config on the clipboard. The Export tab does the same and can save a .json file. Choose the target client:
TargetOptionfinalmask in the file
PattN / PattNGPattN / PattNG (with finalmask)included
Xray / v2rayN with the stock coreXray / v2rayN standardremoved (stock cores cannot parse the fork’s schema)

The file uses the classic vnext / servers layout (old and new cores accept it), mixed inbounds on 10808 and 10809, pinned DNS and a UDP/443 block. In v2rayN: Servers → Add custom configuration server and pick the file. To try it without a GUI: xray run -c file.json.

  • Export tab: links (one per line), a base64 subscription, or the Xray config; limit how many, copy, or save.

10. Android notes

Same UI, connectivity mode only, default Simple. The foreground notification keeps the engine alive during a scan; tapping it reopens the app, Stop shuts the engine down. “Save to file” opens Android’s file picker.

Troubleshooting and FAQ

SymptomWhat to do
“No Chrome / Edge / Brave found”Install one, or choose connectivity only. Searched: Windows Program Files / per-user installs / the registry “App Paths” (Chrome, Edge, Brave, Chromium, Vivaldi, Opera); macOS /Applications, ~/Applications and Spotlight; Linux PATH, /usr/bin, /snap/bin, /opt/.... A browser somewhere else: set GCC_BROWSER (or CHROME_BIN) to its executable. Flatpak browsers cannot be driven.
Linux: sign-in window does not openThe window needs a graphical session (DISPLAY / WAYLAND_DISPLAY); on a server, sign in on a desktop. Snap browsers work (the profile is kept under ~/snap/<browser>/common); as root the browser starts with --no-sandbox.
“Google session expired, sign in again”Press Sign in with Google again. A sign-in redirect must persist for several seconds before the app believes it, so a brief redirect no longer aborts a scan; if it still happens, Google really asked you to sign in again (often a security check after many IPs).
Everything times outThe base config (advanced) or the configs themselves (simple) cannot connect. Inside a filtered network turn the anti-DPI profile on and try a clean IP; make sure the base config works in your normal client.
AI Studio passes but Gemini is blocked (or the reverse)They use different region rules. Change “Healthy” means if you only need one.
A config passed, then failed laterSee “A verdict is a sample”: the exit varies per connection. Re-test before relying on it.
“A scan is already running”Stop it first (the red button in the bar or in Results).
Windows SmartScreen / macOS Gatekeeper warnsThe builds are unsigned. Use Run anyway / right-click → Open (see Download).
Linux: window does not openInstall libgtk-3-0 and libwebkit2gtk-4.1-0, or use the web server build.
Android: install blockedAllow “Install unknown apps” for the app you used to open the APK.
Android: “App not installed as package appears to be invalid”The file is damaged or incomplete (a half-finished download, or a repository page saved as .apk). Download it again, check its size and SHA256SUMS.txt, or install it from a computer with adb install file.apk. It also appears when an APK signed with a different key is installed over an older build: uninstall the old app first.
Start over completelyRemove account from app, then delete the app’s local storage (Windows: %AppData%\GeminiConfigChecker; macOS: ~/Library/Application Support/GeminiConfigChecker; Linux: ~/.config/GeminiConfigChecker).

Privacy and security

  • Sign-in happens in your browser, not in the app; cookies live in memory only. The isolated profile never touches your everyday browser profile or accounts.
  • Traffic to Google is end-to-end TLS; a free-config operator sees destinations, not content. Do not push sensitive traffic through free configs.
  • Your configs and settings are stored only in the app’s local storage, and only if “remember” is ticked. They are never sent anywhere except through your own routes.
  • The web server binds to 127.0.0.1 and rejects foreign Host headers and non-JSON POSTs, but it has no authentication.

Details and reporting: SECURITY.md.

Build from source

Requires Go (see go.mod). The desktop app additionally needs Wails v2 and the platform webview (WebView2 on Windows, WebKit on macOS, GTK 3 + WebKitGTK 4.1 on Linux). The Android app needs the Android SDK, JDK 17+ and Gradle 8.10.

make test                      # vet + unit tests
make web                       # ./dist/gemini-config-checker
make desktop                   # native app via Wails (on the target OS)
make android                   # APK (engine for arm64 + Gradle)
make dist VERSION=0.1.0        # cross-compiled web binaries for all targets

Releases and CI

  • ci.yml: gofmt, vet and tests on Linux / Windows / macOS; cross-compile check for every web target.
  • release.yml: builds desktop apps (Windows amd64/arm64, macOS universal, Linux amd64), web servers (Linux, Windows, macOS) and the Android APK, writes SHA256SUMS.txt and publishes the GitHub release v<VERSION>. It runs by itself only when a push to main changes VERSION (ordinary pushes run just ci.yml): if that release does not exist yet it is built and published, otherwise the run does nothing. To ship a new version, bump VERSION and CHANGELOG.md and push. A tag vX.Y.Z matching VERSION, or Actions → Release → Run workflow (tick “publish”, also how you retry a failed release), works too.
  • Optional repository secrets keep one Android signature across releases: ANDROID_KEYSTORE_BASE64, ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS, ANDROID_KEY_PASSWORD.

Project layout

main.go              web server (HTTP API + embedded UI)
desktop/             Wails desktop shell around the same engine and UI
android/             Android app: foreground service + WebView around the same engine
internal/scan/       engine: config parsing, anti-DPI forwarder, chain builder, browser region check
internal/ui/         single-page UI and fonts (shared by every build)
internal/buildinfo/  version stamped at release time
VERSION              the version the release workflow publishes

Disclaimer

This tool measures connectivity and regional availability. Use it in accordance with the laws of your country and the terms of the services you access. Free configs are run by unknown third parties; do not send sensitive data through them.

License

MIT. The bundled engine (Xray-core) and fonts keep their own licenses (MPL-2.0 and SIL OFL).