Skip to main content

A remote monitor and scheduler CLI tool for Antigravity 2.0 IDE

Project description

Antigravity Mobile Monitor & Task Scheduler

antigravity-mobile is a lightweight command-line tool and FastAPI-powered web application designed for the Google Antigravity IDE and CLI. It enables you to securely monitor your development workflow, switch AI models, track usage quotas, view real-time log outputs, and confirm or reject commands directly from your mobile device while you are away from your workstation.


Key Features

  • ๐Ÿ“ฑ Mobile-Optimized Dashboard: Responsive, glassmorphic UI styled in a beautiful dark theme with real-time stats.
  • ๐Ÿค– Model Control: Switch active models (Gemini 3.5 Flash, Claude 4.5 Sonnet, GPT-OSS, etc.) directly from your phone.
  • ๐Ÿ“Š Quota & Limit Progress: Live tracking of request limits (Gemini Weekly/5-Hr and Claude/GPT Weekly/5-Hr limits).
  • ๐Ÿ’ป Live Agent Thought Output Console: A real-time console streaming step-by-step developer thoughts, planned tools, and logs from the agent to your phone.
  • ๐Ÿ›ก๏ธ Interactive Mobile Approvals: Run terminal commands and get interruptive Yes/No popup prompts on your phone instead of the PC desktop.
  • ๐Ÿ”Œ Automatic Offline Fallback: Automatically bypasses the mobile check and falls back to standard PC desktop prompts if your FastAPI server is offline.
  • โšก PC CLI Run Wrapper (run): Execute commands directly on your PC that log to the server and appear on your phone, bypassing all sandbox desktop security prompts.
  • ๐ŸŽ›๏ธ Remote Toggle Switch (remote): Turn remote mode ON or OFF at any time to save tokens and resources when coding locally.
  • ๐Ÿ”’ PIN Authentication: Secure authorization PIN generated on first start, requiring authentication on the mobile client.

Installation

From Source (Editable Mode)

# Clone the repository and navigate to the folder
cd "d:\Remote Antigravity"

# Install dependencies and CLI tool in editable mode
pip install -e .

Packaging & Publishing to PyPI

To build and publish the package so others can install it via pip install antigravity-mobile:

  1. Install Build Tools:
    pip install --upgrade build twine
    
  2. Build Distribution Archives:
    python -m build
    
    (This generates .whl and .tar.gz files in the dist/ directory.)
  3. Upload to PyPI:
    python -m twine upload dist/antigravity_mobile-*
    

Setup & IDE Configuration

To enable silent executions on your PC and redirect confirmations to your phone, update your Antigravity IDE User Settings:

  1. Open your settings file: C:\Users\K\AppData\Roaming\Antigravity IDE\User\settings.json
  2. Add the following options to allow automatic local command approvals:
    {
        "antigravity.autoApprove": true,
        "antigravity.autonomyLevel": "full"
    }
    
  3. Press Ctrl + Shift + P in the IDE, type Developer: Reload Window, and press Enter to apply changes.

Usage

1. Initialize Configuration

antigravity-mobile init

Generates a randomized access PIN for mobile login (stored in config.json).

2. Start the Server & Tunnel

Start the server and expose it using localtunnel:

# Start FastAPI server on all interfaces
antigravity-mobile start --host 0.0.0.0 --port 8000

# Expose it to the internet so you can access it on your phone
npx localtunnel --port 8000

Open the localtunnel URL on your mobile phone browser and enter your access PIN!

3. CLI Command Execution

To execute commands on your PC, log them to the server, and monitor them live on your phone with no desktop prompts:

antigravity-mobile run "pytest tests/test_server.py"

4. Remote Mode Toggle

Turn remote monitoring and control on/off:

# Enable remote mode (wakes up daemon, streams logs)
antigravity-mobile remote --on

# Disable remote mode (puts daemon to sleep, stops logging)
antigravity-mobile remote --off

# Check status
antigravity-mobile remote --status

Project Structure

d:/Remote Antigravity/
โ”œโ”€โ”€ .agents/
โ”‚   โ”œโ”€โ”€ AGENTS.md          # Global agent logging & mobile approval rules
โ”‚   โ””โ”€โ”€ skills/
โ”‚       โ””โ”€โ”€ remote_control/
โ”‚           โ””โ”€โ”€ SKILL.md   # Remote loop instruction skill for AI agents
โ”œโ”€โ”€ antigravity_remote/
โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚   โ”œโ”€โ”€ cli.py             # CLI Command handling
โ”‚   โ”œโ”€โ”€ server.py          # FastAPI server with WebSocket logging & dashboard
โ”‚   โ”œโ”€โ”€ agent_daemon.py    # Background sidecar polling daemon
โ”‚   โ”œโ”€โ”€ agent_approve.py   # Mobile approval helper script
โ”‚   โ”œโ”€โ”€ task_runner.py     # Background subprocess runner
โ”‚   โ”œโ”€โ”€ templates/
โ”‚   โ”‚   โ””โ”€โ”€ index.html     # Mobile-responsive glassmorphic dashboard
โ”‚   โ””โ”€โ”€ static/
โ”‚       โ”œโ”€โ”€ css/
โ”‚       โ”‚   โ””โ”€โ”€ styles.css # Custom dashboard styles
โ”‚       โ””โ”€โ”€ js/
โ”‚           โ””โ”€โ”€ main.js    # Client-side WebSocket & model switcher logic
โ”œโ”€โ”€ pyproject.toml         # Packaging metadata & entrypoints
โ””โ”€โ”€ README.md              # Documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

antigravity_mobile-0.2.0.tar.gz (27.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antigravity_mobile-0.2.0-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file antigravity_mobile-0.2.0.tar.gz.

File metadata

  • Download URL: antigravity_mobile-0.2.0.tar.gz
  • Upload date:
  • Size: 27.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for antigravity_mobile-0.2.0.tar.gz
Algorithm Hash digest
SHA256 63fbc3af81fe87ba4042df9bb6fff825f73ea395cfc9ea055b5479d6cf497fba
MD5 0f8a516ba39dc7d3275d324963caafa8
BLAKE2b-256 9b2c4c000068056e40b384548ef75a3097df022e34aac2be15e725337d3d5a43

See more details on using hashes here.

File details

Details for the file antigravity_mobile-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for antigravity_mobile-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 473c6609fd6ef638948d29c214765604e3c7305c2c0d4ea410951096f41bd74f
MD5 0a929cade42661ca79d7c9f120233991
BLAKE2b-256 623b5cce74840dc60a0a8eb79470ccbf7cc7e31a2314e9aee73d7fae6313d4e3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page