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_remote_k-0.1.0.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

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

antigravity_remote_k-0.1.0-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for antigravity_remote_k-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5ed39890dc0b300671123954fc21cb33a717187379a2bbd20a3326947845f9e
MD5 2f38ee4e90aac6c9a93b79c1124906e2
BLAKE2b-256 7377aa7bad2417b3a666ef01b89d7c6a42e0e94535898986e9b9df33546f3bf9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antigravity_remote_k-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 846339b57c328c8d92a350880714058c06ac9c3f383fbdc064b0b99d3b76154b
MD5 47362cdce39469b0625dd8e70b482699
BLAKE2b-256 6a47c63eed309fca752b24e509e66d275b325e9604aa621862ebcdeb5524cb57

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