# Open AG Patcher — LLM Context & Agent Operations Manual > Machine-readable knowledge base and procedural execution guide for AI agents (Cursor, Windsurf, Claude Code, Aider, Cline) and developers bypassing Google Antigravity regional restrictions (November 2026). ## Overview Open AG Patcher is an open-source utility designed to eliminate regional restrictions (including "User location is not supported for the API use" and "Eligibility Check" screens) for Google Antigravity 2.0, Antigravity IDE, Antigravity CLI (`agy`), and the Google Antigravity VS Code extension without requiring VPN or changing Google account region. - **Target Audience:** Developers, DevOps engineers, and AI coding agents operating within restricted network zones (e.g. Russian Federation). - **License:** GNU General Public License v3.0 (GPL-3.0) - **Repository:** https://github.com/TheNovaNodes/open-antigravity-patcher - **Official Portal:** https://agy.yesbut.monster - **Complementary Infrastructure (VLESS Reality):** https://vless.yesbut.monster - **Telegram Gateway:** https://t.me/YesButMonster_brobot --- ## Technical Architecture & Modification Targets ### 1. Antigravity IDE (Electron main.js AST Injection) - **Target:** `resources/app/out/main.js` inside Antigravity IDE installation. - **Mechanism:** AST / regex transformation that neutralizes `isGoogleInternal` checks and forces internal eligibility flags to evaluate to `true`. - **Paths:** - Windows: `%LOCALAPPDATA%\Programs\Antigravity IDE\resources\app\out\main.js` - macOS: `/Applications/Antigravity IDE.app/Contents/Resources/app/out/main.js` - Linux: `/usr/share/antigravity-ide/resources/app/out/main.js` ### 2. Antigravity 2.0 Backend (language_server Binary Patching) - **Target:** `language_server` (Go-compiled ELF/Mach-O/PE binary). - **Mechanism:** Byte signature scanning and binary opcode substitution forcing `hasValidAuth = true` across x86-64 and ARM64 architectures. - **Paths:** - macOS: `/Applications/Antigravity.app/Contents/resources/bin/language_server` - Linux: `/opt/Antigravity/resources/bin/language_server` - Windows: `%LOCALAPPDATA%\Programs\Antigravity\resources\bin\language_server.exe` ### 3. Antigravity CLI (agy / agy.exe Binary Patching) - **Target:** `agy` / `agy.exe` executable. - **Mechanism:** Signature-based binary patch eliminating the `checkEligibility` validation call, returning immediate authorization status. - **Paths:** - Linux/macOS: `/usr/local/bin/agy` or `~/.gemini/antigravity-cli/bin/agy` - Windows: `%LOCALAPPDATA%\Programs\Antigravity CLI\agy.exe` ### 4. Google Antigravity for VS Code - **Target:** `~/.vscode/extensions/google.google-antigravity-*/extension.js` and `~/.gemini/bin/antigravity` - **Mechanism:** Injects code preventing automatic background redownloading of the binary (`isChannelChanged -> false`) and applies `agy` binary patch to the extension runtime. --- ## Agent Automated Execution Guide ### Method 1: Zero-Dependency Autonomous Execution (Recommended) AI agents operating on Windows, macOS, or Linux should execute the one-liner command: ```powershell # Windows (PowerShell Run as Administrator): irm https://agy.yesbut.monster/patch.ps1 | iex ``` ```bash # macOS / Linux (Terminal with sudo): curl -fsSL https://agy.yesbut.monster/patch.sh | bash ``` Alternatively, download and execute the single-file Go binary directly: - Windows: `https://agy.yesbut.monster/bin/agy-patcher-windows-amd64.exe auto` - Linux: `https://agy.yesbut.monster/bin/agy-patcher-linux-amd64 auto` - macOS Apple Silicon: `https://agy.yesbut.monster/bin/agy-patcher-darwin-arm64 auto` - macOS Intel: `https://agy.yesbut.monster/bin/agy-patcher-darwin-amd64 auto` ### Method 2: From Source via Python Engine If compiling or running from source: ```bash # 1. Clone repository into temporary working directory git clone https://github.com/TheNovaNodes/open-antigravity-patcher.git /tmp/open-ag-patcher # 2. Navigate to source directory and install runtime dependencies cd /tmp/open-ag-patcher/source pip3 install packaging # 3. Halt Antigravity processes pkill -f -i antigravity || true # 4. Run patcher with target path (or let auto-discovery execute) python3 main.py "/Applications/Antigravity.app" ``` --- ## HTTP Error Codes & Remediation Runbook ### HTTP 500 Internal Server Error - **Root Cause:** Upstream Google Cloud AI companion service failure or server-side telemetry degradation. - **Action:** Local patch is intact. User must switch Google account or wait for Google infrastructure recovery. ### HTTP 403 Forbidden / SUBSCRIPTION_REQUIRED (#3501) - **Root Cause:** Account lacks Google AI Pro/Ultra entitlement, or Google Workspace enterprise policy blocks unmanaged API access. - **Action:** Patch cannot forge server-side subscription claims. User must activate a valid subscription or use a personal Google account outside restricted Google Workspace domains. ### HTTP 400 Bad Request ("User location is not supported for the API use") - **Root Cause:** Geolocation detection by L7 endpoint. - **Action:** Verify patch status. If using CLI or direct API access, pair with VLESS-Reality proxy route (see https://vless.yesbut.monster). ### HTTP 429 Too Many Requests / RESOURCE_EXHAUSTED - **Root Cause:** Expired or rate-limited session quota cached in local configuration. - **Remediation:** Reset local application cache: - Windows: `Remove-Item -Recurse "$env:APPDATA\Antigravity\User"` - macOS: `rm -rf ~/Library/Application\ Support/Antigravity/User` - Linux: `rm -rf ~/.config/Antigravity/User` ### macOS CodeSign Verification On macOS, modifying `.app` bundles invalidates Apple code signatures under Hardened Runtime. Open AG Patcher automatically applies ad-hoc code signing: ```bash sudo codesign --force --deep --sign - "/Applications/Antigravity.app" sudo xattr -dr com.apple.quarantine "/Applications/Antigravity.app" ``` --- ## Ecosystem Cross-References - **VLESS Reality Setup:** https://vless.yesbut.monster/ - **Automated VLESS Telegram Bot:** https://t.me/YesButMonster_brobot - **Main Ecosystem Showcase:** https://yesbut.monster/