Warning. This software is provided for research and diagnostic purposes only, AS IS, without warranty of any kind. You are solely responsible for compliance with applicable laws and service terms.
Русский · MIT · Credits · Validation
A tool to bypass client-side regional restrictions in Antigravity (CLI, Desktop App, and IDE).
pagy— Transparent wrapper for theagyCLI. Verifies and applies patches on launch, forwarding all arguments to the original binary.antigravity-region-fix— Management utility to inspect, patch, and restore the CLI, desktop application, and IDE.
Download the release for your platform from Releases:
- Windows: download and run
antigravity-region-fix-windows-installer.exe(one-click installer) or extract the zip archive and run:.\install.ps1
- Linux / macOS: download and extract the archive, then run the installation script:
Standalone executable binaries (
sh install.sh
pagyandantigravity-region-fix) are also provided directly in the release assets.
Default install locations:
- Linux / macOS:
~/.local/bin - Windows:
%LOCALAPPDATA%\Programs\AntigravityRegionFix\bin
To install to a custom directory, use --bin-dir:
sh install.sh --bin-dir /path/to/binRequires Rust 1.88+:
cargo build --release --locked --bins
./target/release/antigravity-region-fix installOn Windows:
.\target\release\antigravity-region-fix.exe installUse pagy as a drop-in replacement for agy. All arguments and flags are forwarded directly:
pagy
pagy --help
pagy models
pagy --mode plan --print "Hello"Close target applications and active CLI sessions before patching or restoring.
# Check status
antigravity-region-fix status
# Apply patches
antigravity-region-fix patch cli
antigravity-region-fix patch app
antigravity-region-fix patch ide
# Restore originals
antigravity-region-fix restore all
# or individually: restore cli | app | ide
# Uninstall
antigravity-region-fix uninstallStandard installation paths are detected automatically. For custom locations, use flags or environment variables:
| Environment Variable | CLI Flag | Target |
|---|---|---|
PAGY_AGY |
--path-cli |
Path to agy executable |
PAGY_APP |
--path-app |
Path to resources/bin/language_server (app) |
PAGY_IDE |
--path-ide |
Path to resources/app/out/main.js (IDE) |
PAGY_STATE_DIR |
— | State directory (locks, manifest, cache) |
PAGY_NO_CACHE |
— | Force full signature scan without cache (1) |
- Original files are preserved alongside targets with a
.agybakextension. - SHA-256 hashes are tracked in
.pagy.jsonfor reliable restoration. - On macOS, modified binaries and bundles are automatically ad-hoc signed and cleared of quarantine attributes.
cargo fmt --check
cargo test --locked
cargo clippy --locked --all-targets -- -D warnings
cargo build --release --locked --bins