Skip to main content

A remote monitor and scheduler CLI tool for Antigravity 2.0 IDE

Project description

Antigravity Remote Monitor & Task Scheduler

antigravity-remote 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-remote:

  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/*
    

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-remote 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-remote 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-remote 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-remote remote --on

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

# Check status
antigravity-remote 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.1.0.tar.gz (25.5 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.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antigravity_mobile-0.1.0.tar.gz
  • Upload date:
  • Size: 25.5 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.1.0.tar.gz
Algorithm Hash digest
SHA256 d48860258fb4bbf93e4817318e9916b2b8b5df22b0942111dc90ef02ddf8e490
MD5 81dd7b185cc1a51f99dd4eef2811d332
BLAKE2b-256 8c7366e2ffbde989e0b2f19a0a5ed6d9e551e15392ed5c8fb76b7a956e573680

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antigravity_mobile-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cdeae18fa7588c6488ab16ec372b4c52956d82094e9e8e0f6c9748aa4e9c1a13
MD5 3b5e342a9d378f78f753b9a098e52ddc
BLAKE2b-256 acbc63dd73adddab564e78de68a58c21e36a4f57adddd7ecfe9df8e4b0aa6654

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