Antigravity Phone Connect is a high-performance, real-time mobile monitor and remote control for your Antigravity AI sessions. It allows you to step away from your desk while keeping full sight and control over your AI's thinking process and generations.
Note: This project is a refined fork/extension based on the original Antigravity Shit-Chat by gherghett.
π‘ Tip: While we recommend starting Antigravity first, the server is now smart enough to wait and automatically connect whenever Antigravity becomes available!
Start Antigravity with the remote debugging port enabled:
Option A: Using Right-Click Context Menu (Recommended)
- Run
install_context_menu.bat(Windows) or./install_context_menu.sh(Linux) and select [1] Install - Then right-click any project folder β "Open with Antigravity (Debug)" (now with visual icons!)
Option B: Manual Command
antigravity . --remote-debugging-port=9000- In Antigravity, open an existing chat from the bottom-right panel, OR
- Start a new chat by typing a message
π‘ The server needs an active chat session to capture snapshots. Without this, you'll see "chat container not found" errors.
Windows:
Double-click start_ag_phone_connect.bat
macOS / Linux:
chmod +x start_ag_phone_connect.sh # First time only
./start_ag_phone_connect.shThe script will:
- Verify Node.js and Python dependencies
- Auto-kill any existing server on port 3000
- Wait for Antigravity if it's not started yet
- Display a QR Code and your Link (e.g.,
https://192.168.1.5:3000) - Provide numbered steps for easy connection
- Ensure your phone is on the same Wi-Fi network as your PC
- Open your mobile browser and enter the URL shown in the terminal
- If using HTTPS: Accept the self-signed certificate warning on first visit
Access your Antigravity session from anywhere in the world (Mobile Data, outside Wi-Fi) with secure passcode protection.
- Get an ngrok Token: Sign up for free at ngrok.com and get your "Authtoken".
- Automatic Configuration (Recommended): Simply run any launcher script. They will detect if
.envis missing and automatically create it using.env.exampleas a template. - Manual Setup: Alternatively, copy
.env.exampleto.envmanually and update the values:Update thecopy .env.example .env # Windows cp .env.example .env # Mac/Linux
.envfile with your details:NGROK_AUTHTOKEN=your_token_here APP_PASSWORD=your_secure_passcode XXX_API_KEY=your-ai-provider-key PORT=3000
- Windows: Run
start_ag_phone_connect_web.bat - Mac/Linux: Run
./start_ag_phone_connect_web.sh
The script will launch the server and provide a Public URL (e.g., https://abcd-123.ngrok-free.app).
Two Ways to Connect:
- Magic Link (Easiest): Scan the Magic QR Code displayed in the terminal. It logs you in automatically!
- Manual:
- Open the URL on your phone.
- Enter your
APP_PASSWORDto log in.
π‘ Tip: Devices on the same local Wi-Fi still enjoy direct access without needing a password.
For a secure connection without the browser warning icon:
node generate_ssl.js- Uses OpenSSL if available (includes your IP in certificate)
- Falls back to Node.js crypto if OpenSSL not found
- Creates certificates in
./certs/directory
- Start the server on HTTP
- Look for the yellow "
β οΈ Not Secure" banner - Click "Enable HTTPS" button
- Restart the server when prompted
- Restart the server - it will automatically detect and use HTTPS.
- On your phone's first visit:
- You'll see a security warning (normal for self-signed certs).
- Tap "Advanced" β "Proceed to site".
- The warning won't appear again!
Since macOS requires Automator for context menu entries, follow these steps manually:
- Open Automator (Spotlight β type "Automator").
- Click File β New and select Quick Action.
- At the top, set:
- "Workflow receives current" β folders
- "in" β Finder
- In the left sidebar, search for "Run Shell Script" and drag it to the right pane.
- Set "Shell" to
/bin/zshand "Pass input" to as arguments. - Paste this script:
cd "$1" antigravity . --remote-debugging-port=9000
- Save the Quick Action with a name like
Open with Antigravity (Debug). - Now you can right-click any folder in Finder β Quick Actions β Open with Antigravity (Debug).
- π§Ή Clean Mobile View (NEW!): Automatically filters out "Review Changes" bars, "Linked Objects," and Desktop-specific input areas to keep your phone view focused purely on the chat and code content.
- Glassmorphism UI (NEW!): Sleek and modern quick-action and settings menus featuring a beautiful glassmorphism effect for enhanced mobile usability. Includes customizable, ready-to-use prompt pills (like "Explain this code", "Continue", and "Fix Bugs").
- π Improved Dark Mode (NEW!): Enhanced UI styling and state capture designed to provide maximum clarity and correct model detection in dark mode.
- π§ Latest AI Models: Automatically updated support for the latest model versions from Gemini, Claude, and OpenAI.
- π Premium Chat History (NEW!): Full-screen history management with a completely redesigned, sleek card-based UI. Features modern loading states, gorgeous gradients, and intelligent strictly-scoped scraping to safely extract past conversations without background noise. Dismissing the history view automatically triggers a remote Escape sequence on the desktop to keep your workspace clean.
- β One-Tap New Chat (NEW!): Start a fresh conversation instantly from your phone without needing to touch your desktop.
- πΌοΈ Context Menu Icons (NEW!): Visual icons in the right-click menu for better navigation.
- π Global Web Access: Secure remote access via ngrok tunnel. Access your AI from mobile data with passcode protection.
- π‘οΈ Auto-Cleanup: Launchers now automatically sweep away "ghost" processes from previous sessions for a clean start every time.
- π HTTPS Support: Secure connections with self-signed SSL certificates.
- Local Image Support: Local images and SVGs (
vscode-file://paths) in the desktop chat are automatically converted to Base64 so they render perfectly on mobile without exposing local files. - Real-Time Mirroring: 1-second polling interval for near-instant sync.
- Remote Control: Send messages, stop generations, and switch Modes (Fast/Planning) or Models (Gemini/Claude/GPT) directly from your phone.
- Scroll Sync: When you scroll on your phone, the desktop Antigravity scrolls too!
- π― Precision Remote Control (NEW!): A deterministic targeting layer that prevents "Sync-Fighting". It uses leaf-node filtering to ensure clicks land exactly on buttons, even when nested inside complex DOM structures.
- Occurrence Index Tracking: Robustly handles multiple identical elements (like three "Run" buttons in history) by tracking the specific tapped instance.
- Thought Expansion: Tap on "Thinking..." or "Thought" blocks on your phone to remotely expand/collapse them with first-line text matching.
- Smart Sync: Bi-directional synchronization ensures your phone always shows the current Model and Mode selected on your desktop.
- Premium Mobile UI: A sleek, dark-themed interface optimized for touch interaction.
- Context Menu Management: Dedicated scripts to Install, Remove, Restart, or Backup your Right-Click integrations.
- Health Monitoring: Built-in
/healthendpoint for server status checks. - Graceful Shutdown: Clean exit on Ctrl+C, closing all connections properly.
- Zero-Config: The launch scripts handle the heavy lifting of environment setup.
For more technical details, check out:
- Code Documentation - Architecture, Data Flow, and API.
- Security Guide - HTTPS setup, certificate warnings, and security model.
- Design Philosophy - Why it was built this way.
- Contributing - Guidelines for developers.
Licensed under the GNU GPL v3.
Copyright (C) 2026 Krishna Kanth B (@krishnakanthb13)

