antigravity_phone_chat README

The project's README from github.com/krishnakanthb13/antigravity_phone_chat. As one markdown file: README.md.

Antigravity Phone Connect

Antigravity Phone Connect 📱

License: GPL v3

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.

Antigravity Phone Connect

Antigravity Phone Connect

Note: This project is a refined fork/extension based on the original Antigravity Shit-Chat by gherghett.


🚀 Quick Start

💡 Tip: While we recommend starting Antigravity first, the server is now smart enough to wait and automatically connect whenever Antigravity becomes available!

Step 1: Launch Antigravity in Debug Mode

Start Antigravity with the remote debugging port enabled:

Option A: Using Right-Click Context Menu (Recommended)

Option B: Manual Command

antigravity . --remote-debugging-port=9000

Step 2: Open or Start a Chat

💡 The server needs an active chat session to capture snapshots. Without this, you'll see "chat container not found" errors.

Step 3: Run the Server

Windows:

Double-click start_ag_phone_connect.bat

macOS / Linux:

chmod +x start_ag_phone_connect.sh   # First time only
./start_ag_phone_connect.sh

The script will:

Step 4: Connect Your Phone (Local Wi-Fi)

  1. Ensure your phone is on the same Wi-Fi network as your PC
  2. Open your mobile browser and enter the URL shown in the terminal
  3. If using HTTPS: Accept the self-signed certificate warning on first visit

🌍 NEW: Global Remote Access (Web Mode)

Access your Antigravity session from anywhere in the world (Mobile Data, outside Wi-Fi) with secure passcode protection.

Step 1: Choose a Tunnel Provider

You can use ngrok (requires account), Cloudflare Tunnel (requires cloudflared), or Pinggy (free SSH tunnel, no account/install needed).

Option A: ngrok (Default)

  1. Get an ngrok Token: Sign up for free at ngrok.com and get your "Authtoken".
  2. Setup: Update your .env file:
    TUNNEL_PROVIDER=ngrok
    NGROK_AUTHTOKEN=your_token_here
    

Option B: Cloudflare Tunnel

  1. Install cloudflared: Follow the official guide to install cloudflared on your system.
  2. Setup: Update your .env file:
    TUNNEL_PROVIDER=cloudflare
    

Option C: Pinggy Tunnel

  1. No Install Required: Pinggy works via SSH and the Python SDK. The launcher will automatically install the pinggy pip package.
  2. Setup: Update your .env file:
    TUNNEL_PROVIDER=pinggy
    
    (Optional) You can add PINGGY_TOKEN=your-token for a persistent subdomain if you have a Pinggy account.

Step 2: Configuration

  1. Automatic Configuration: Simply run any launcher script. They will detect if .env is missing and automatically create it using .env.example as a template.
  2. Manual Setup: Alternatively, copy .env.example to .env manually and update the values:
    copy .env.example .env   # Windows
    cp .env.example .env     # Mac/Linux
    
    Ensure you set a secure password:
    APP_PASSWORD=your_secure_passcode
    

Usage

The script will launch the server and provide a Public URL (e.g., https://abcd-123.ngrok-free.app).

Two Ways to Connect:

  1. Magic Link (Easiest): Scan the Magic QR Code displayed in the terminal. It logs you in automatically!
  2. Manual:
    • Open the URL on your phone.
    • Enter your APP_PASSWORD to 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:

Option 1: Command Line

node generate_ssl.js

Option 2: Web UI

  1. Start the server on HTTP
  2. Look for the yellow "⚠️ Not Secure" banner
  3. Click "Enable HTTPS" button
  4. Restart the server when prompted

After Generating:

  1. Restart the server - it will automatically detect and use HTTPS.
  2. 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!

macOS: Adding Right-Click "Quick Action" (Optional)

Since macOS requires Automator for context menu entries, follow these steps manually:

  1. Open Automator (Spotlight → type "Automator").
  2. Click File → New and select Quick Action.
  3. At the top, set:
    • "Workflow receives current" → folders
    • "in" → Finder
  4. In the left sidebar, search for "Run Shell Script" and drag it to the right pane.
  5. Set "Shell" to /bin/zsh and "Pass input" to as arguments.
  6. Paste this script:
    cd "$1"
    antigravity . --remote-debugging-port=9000
    
  7. Save the Quick Action with a name like Open with Antigravity (Debug).
  8. Now you can right-click any folder in Finder → Quick Actions → Open with Antigravity (Debug).

🏗️ Architecture Infographic

Repo Infographic


🛡️ Shielding & Account Safety

This tool is designed with a "Local-First" security model.


✨ Features


📂 Documentation

For more technical details, check out:


License

Licensed under the GNU GPL v3.
Copyright (C) 2026 Krishna Kanth B (@krishnakanthb13)


Star History

Star History Chart

antigravity_phone_chat (krishnakanthb13/antigravity_phone_chat)

Searching Database…

这是什么?它是一个针对 Antigravity AI 桌面会话的实时手机监视与远程控制工具,把聊天镜像到你的手机上,让你能远程发送消息、停止生成或批准操作。
这是装在手机上的应用,还是在电脑上运行的服务器?它是运行在电脑上的 Node.js 服务器;手机只需打开一个浏览器网址(或扫描二维码)就能查看和控制镜像的会话,无需安装手机应用。
怎么让它跑起来?以启用远程调试的方式启动 Antigravity,打开或新建一个聊天,然后运行提供的启动脚本(Windows 用 bat,macOS/Linux 用 sh),它会启动服务器并显示二维码,让你通过本地 Wi-Fi 连接手机。
运行之前需要安装什么?需要 Node.js 16+,启动脚本会自动创建 Python 虚拟环境来安装其他依赖;另外 Antigravity 桌面应用本身必须在运行且有一个进行中的聊天。
桌面端不做任何设置也能镜像吗?不能,服务器需要 Antigravity 中有进行中的聊天会话才能截取快照;否则会出现 'chat container not found' 错误,而且要在家庭 Wi-Fi 之外访问手机还需要配置隧道服务。
服务器可以运行在哪些操作系统上?提供了适用于 Windows、macOS 和 Linux 的启动脚本和安装说明。
这会把我的账号凭据或 AI 服务商登录信息暴露给服务器吗?不会,它只通过 Chrome DevTools Protocol 镜像界面,绝不提取 OAuth 令牌,也不直接与 AI 服务商的 API 通信;所有请求仍然来自你的官方桌面应用。
在家庭 Wi-Fi 之外怎么访问我的手机?在 .env 中配置一个隧道服务:ngrok(需要免费账号的 token)、Cloudflare Tunnel(需要安装 cloudflared)或 Pinggy(无需账号,通过 SSH 工作)。远程访问随后由应用密码或二维码魔法登录链接保护。
除了观看,我在手机上还能远程做什么?你可以发送消息、停止生成、切换 AI 模型(Gemini/Claude/GPT)或模式(Fast/Planning)、批准或拒绝权限请求、展开思考块以及新建聊天,所有操作都与桌面端双向同步。
这是全新项目,还是基于其他项目?它是对 gherghett 的 'Antigravity Shit-Chat' 原项目的精修分支/扩展,增加了 HTTPS、全局隧道和重新设计的移动端界面等功能。
桌面与手机之间的镜像速度有多快?快照通过 Chrome DevTools Protocol 截取,耗时低于 100 毫秒,并以约 1 秒的轮询间隔实现桌面与移动端近乎即时的同步。
Size
15.6 MB
Stars
810
Age
9mo
Commits · 90 Days