How confeden/antigravity works
Antigravity Unlocker is a Windows/Linux tool for making Google’s Antigravity coding products usable from restricted regions. The user enters a license, enables switches in the GUI or TUI, and the app patches the client and configures a local service; Antigravity traffic then uses DNS routing and available proxy/egress paths, with route choice informed by model responses. The README documents these capabilities; source-index references and excerpts support the implementation links shown. Unsampled subsystems are included where documented, but their internal call paths are not inferred.
Main entry points: ops.rs Switch operations · main_view.rs Desktop GUI · proxy.rs Local proxy · dns_forwarder.rs DNS forwarder
Components 25
App and interfaces
- Process entry
src/main.rs - Desktop GUI
src/gui/main_view.rs - Terminal UI
src/tui/mod.rs - License flow
src/gui/license.rs
Switches and maintenance
- Switch operations
src/ops.rs - Persistent settings
src/settings.rs - Client patching
src/patch_binary.rs - IDE patching
src/patch_ide.rs - Auto patch watchdog
src/watchdog.rs - Unlocker updates
src/update.rs
Local service
- Background service
src/background.rs - DNS forwarder
src/dns_forwarder.rs - Local proxy
src/proxy.rs - Region gate monitor
src/gate.rs
DNS and egress
- System DNS rules
src/dns.rs - Resolver selection
src/resolvers.rs - DNS query client
src/dns_client.rs - Route selection
src/routes.rs - Egress selection
src/egress.rs - Proxy upstreams
src/upstream.rs
Status and diagnostics
- Live status
src/gui/status.rs - Diagnostic report
src/gui/report.rs
Other components
- User
- Antigravity client
- Google endpoints
Connections 33
- User → Process entry: launches
README.md - Process entry → Desktop GUI: starts
src/main.rs - Process entry → Terminal UI: starts
src/main.rs - User → License flow: provides key
README.md - Desktop GUI → License flow: opens
src/gui/mod.rs - Desktop GUI → Switch operations: controls
src/gui/main_view.rs - Terminal UI → Switch operations: controls
src/tui/mod.rs - Desktop GUI → Live status: renders
src/gui/main_view.rs - Desktop GUI → Diagnostic report: requests
src/gui/main_view.rs - Desktop GUI → Unlocker updates: checks
src/gui/mod.rs - Switch operations → Persistent settings: reads/writes
src/ops.rs - Switch operations → Client patching: applies patch
src/ops.rs - Switch operations → IDE patching: applies patch
src/ops.rs - Switch operations → System DNS rules: sets rules
src/ops.rs - Switch operations → Background service: manages
src/ops.rs - Auto patch watchdog → Client patching: reapplies
src/watchdog.rs - Auto patch watchdog → Background service: checks
src/watchdog.rs - Background service → DNS forwarder: runs
src/background.rs - DNS forwarder → Resolver selection: resolves via
src/dns_forwarder.rs - Resolver selection → DNS query client: queries
src/resolvers.rs - DNS forwarder → Local proxy: dispatches
src/dns_forwarder.rs - Local proxy → Route selection: selects route
src/proxy.rs - Local proxy → Proxy upstreams: opens upstream
src/proxy.rs - Local proxy → Egress selection: selects egress
src/egress.rs - DNS forwarder → Region gate monitor: reports gate
src/dns_forwarder.rs - Region gate monitor → Route selection: responds to refusals
src/gate.rs - Antigravity client → Local proxy: uses local proxy
README.md - Antigravity client → System DNS rules: queries routed hosts
README.md - Local proxy → Google endpoints: forwards traffic
- Desktop GUI → Live status: reads state
src/gui/status.rs - Diagnostic report → DNS forwarder: reads service log
src/gui/report.rs - Diagnostic report → Region gate monitor: reads gate state
src/gui/report.rs - Live status → Switch operations: reads status
src/gui/status.rs