Skip to main content

A remote monitor and scheduler CLI tool for Antigravity 2.0 IDE

Project description

Antigravity Mobile

       _          _   _                       _ _
      / \   _ __ | |_(_) __ _ _ __ __ ___   _(_) |_ _   _
     / _ \ | '_ \| __| |/ _` | '__/ _` \ \ / / | __| | | |
    / ___ \| | | | |_| | (_| | | | (_| |\ V /| | |_| |_| |
   /_/   \_\_| |_|\__|_|\__, |_|  \__,_| \_/ |_|\__|\__, |
                        |___/                        |___/

                    M  O  B  I  L  E

Control your AI coding agent from your phone.

Monitor tasks, approve commands, switch models โ€” remotely.

PyPI Python License: MIT


โœจ Features

  • ๐Ÿ“ฑ Mobile Dashboard โ€” Responsive, glassmorphic dark-themed UI with real-time system stats (CPU, RAM, Disk)
  • ๐Ÿค– Model Switcher โ€” Change active AI models (Gemini 3.5 Flash, Claude 4.5 Sonnet, GPT-OSS) from your phone
  • ๐Ÿ“Š Quota Tracking โ€” Live progress bars for Gemini & Claude/GPT weekly and 5-hour request limits
  • ๐Ÿ’ป Live Agent Console โ€” Stream step-by-step agent thoughts and logs to your phone in real-time
  • ๐Ÿ›ก๏ธ Mobile Approvals โ€” Approve or reject terminal commands via interactive popups on your phone
  • ๐Ÿ”Œ Offline Fallback โ€” Automatically falls back to PC desktop prompts if the server is offline
  • โšก CLI Run Wrapper โ€” Execute commands silently on your PC and stream output to your phone
  • ๐ŸŽ›๏ธ Remote Toggle โ€” Turn remote mode on/off to save tokens when coding locally

๐Ÿš€ Installation

pip install antigravity-mobile

That's it! Now run antigravity-mobile to see the welcome screen.


๐Ÿ“‹ Quick Start

Step 1: Setup

Run the interactive setup wizard to generate your secure access PIN and configure agent rules:

antigravity-mobile setup

Step 2: Start the Server

Launch the FastAPI dashboard server on all interfaces:

antigravity-mobile start --host 0.0.0.0 --port 8000

Step 3: Get a Public URL

Expose your local server to the internet so your phone can reach it (requires Node.js):

npx localtunnel --port 8000

This will give you a public URL like https://xyz.loca.lt.

Step 4: Open on Your Phone

  1. Open the localtunnel URL on your mobile browser
  2. Enter your access PIN (shown during setup)
  3. You're in! Start monitoring and controlling your agent remotely ๐ŸŽ‰

๐Ÿ“– All Commands

Command Description
antigravity-mobile Show welcome banner & quick-start guide
antigravity-mobile setup Interactive first-time setup wizard
antigravity-mobile init Generate config & security PIN
antigravity-mobile start Start the FastAPI dashboard server
antigravity-mobile run <cmd> Execute a command & stream logs to phone
antigravity-mobile remote --on Enable remote monitoring mode
antigravity-mobile remote --off Disable remote monitoring (saves tokens)
antigravity-mobile remote --status Check if remote mode is on or off

๐Ÿ’ก Usage Examples

Run a command and monitor it from your phone

antigravity-mobile run "pytest tests/"

The command runs silently on your PC. Output streams live to your phone's console.

Turn off remote mode when coding locally

antigravity-mobile remote --off

This disables all remote logging, status updates, and mobile approval prompts โ€” saving tokens and resources.

Turn it back on when leaving your desk

antigravity-mobile remote --on

Start everything in one go

# Terminal 1: Start the server
antigravity-mobile start --host 0.0.0.0 --port 8000

# Terminal 2: Expose to internet
npx localtunnel --port 8000

โš™๏ธ IDE Configuration (Optional)

To enable silent command execution on your PC (so approvals go to your phone instead of popping up on the desktop), update your Antigravity IDE User Settings:

  1. Open: C:\Users\<YOU>\AppData\Roaming\Antigravity IDE\User\settings.json
  2. Add:
    {
        "antigravity.autoApprove": true,
        "antigravity.autonomyLevel": "full"
    }
    
  3. Press Ctrl + Shift + P โ†’ Developer: Reload Window

๐Ÿ”’ Security

  • PIN Authentication โ€” A secure 6-digit PIN is generated on first setup. Mobile clients must authenticate with this PIN before accessing any features.
  • Token-Based Sessions โ€” After PIN login, all API requests use a session token.
  • Command Approval โ€” Remote commands require explicit user confirmation before execution.
  • Offline Fallback โ€” If the server goes offline, the agent automatically falls back to local PC prompts instead of hanging.

๐Ÿ“ Project Structure

antigravity-mobile/
โ”œโ”€โ”€ antigravity_remote/
โ”‚   โ”œโ”€โ”€ cli.py              # CLI with banner, setup wizard, and commands
โ”‚   โ”œโ”€โ”€ server.py           # FastAPI server with WebSocket dashboard
โ”‚   โ”œโ”€โ”€ agent_daemon.py     # Background polling daemon for remote commands
โ”‚   โ”œโ”€โ”€ agent_approve.py    # Mobile approval helper with offline fallback
โ”‚   โ”œโ”€โ”€ task_runner.py      # Background subprocess runner
โ”‚   โ””โ”€โ”€ templates/
โ”‚       โ””โ”€โ”€ index.html      # Mobile-responsive glassmorphic dashboard
โ”œโ”€โ”€ .agents/
โ”‚   โ”œโ”€โ”€ AGENTS.md           # Agent logging & mobile approval rules
โ”‚   โ””โ”€โ”€ skills/
โ”‚       โ””โ”€โ”€ remote_control/
โ”‚           โ””โ”€โ”€ SKILL.md    # Remote loop skill for AI agents
โ”œโ”€โ”€ pyproject.toml          # Package metadata & CLI entrypoints
โ””โ”€โ”€ README.md

๐Ÿ“ฆ Publishing Updates

# Install build tools
pip install build twine

# Build distribution
python -m build

# Upload to PyPI
python -m twine upload dist/antigravity_mobile-*

License

MIT

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.2.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_mobile-0.2.2-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: antigravity_mobile-0.2.2.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_mobile-0.2.2.tar.gz
Algorithm Hash digest
SHA256 a55a850a5eddafc1b1068c129d593fc138b5b56f741012f804e527474672db22
MD5 936ece4ecb1234b581588d12a1ed2f9f
BLAKE2b-256 f94684d3de063a671108a458ecddadcc3bf88fa59900b8bd2060d96e54d83efa

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for antigravity_mobile-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfb532500246b619f980651c9d52b26b908203d793452a63c39756c2f0749ef7
MD5 fe8547862e5fd1053df024c3559705f4
BLAKE2b-256 83ccd53d60b1051704ac9b713d94712852c65c9016dbaeff89d3e58f88e2eb36

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