Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

antigravity-remote-cli

Latest version: v1.0.1

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: mdelius
0 Stars
0 Forks
3 Versions
JavaScript Repo language

Scan summary

antigravity-remote-cli was last scanned on 29 Nov 2026 at version 1.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 1.0.1.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.1 LATEST 29 Nov 2026 No rules fired
1.0.0 29 Nov 2026 No rules fired
0.0.0-stage 29 Nov 2026 Not shown

No rules fired in 1.0.1

Findings

Findings for v1.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

antigravity-remote-cli

Remotely control Antigravity IDE from any mobile browser or custom native mobile app (Kotlin / Flutter) using your own Server URL and API Key.

Features

  • Automatic IDE Launching with CDP: Automatically detects Antigravity IDE across Windows, macOS, and Linux and launches it with --remote-debugging-port=9222 if CDP is not already reachable (or use --restart-ide / --no-launch).
  • Zero-Setup Cloudflare Quick Tunnel: Pass --tunnel to expose your local server over HTTPS (https://*.trycloudflare.com). Uses your global cloudflared if installed, or automatically downloads the bundled cloudflared binary on first run.
  • Zero-Hardcode Cross-Platform Projects: Defaults --projects-dir to process.cwd(), always includes the current directory (.) as the first project entry, and strictly prevents path traversal outside --projects-dir.
  • Resilient Playwright CDP Engine: Fresh per-request CDP connections with 5s timeouts, concurrency guard, smart prompt input detection, formatted chat reader, quick actions (accept, reject, run, stop, new-chat, save, escape, enter), live screenshots, tap-to-click, and scrolling.
  • Polished Mobile-First Web UI: Emerald/mint theme with Key / Server settings drawer, Window & Project selectors, and 4 bottom tabs (Chat, Screen, Terminal, Files) that also works standalone on Vercel.

Quick Start

Run from any project folder:

npx antigravity-remote-cli
  1. In an interactive terminal, choose a connection mode from the menu (Cloudflare Quick Tunnel is default option 1), or pass --tunnel, --funnel, --tunnel-token, or --local directly.
  2. ag-remote checks if Antigravity CDP (127.0.0.1:9222) is reachable and auto-launches Antigravity IDE if needed.
  3. Scan the terminal QR code with your phone to open the mobile controller pre-paired with your Server URL and API Key.

Note: If Antigravity IDE is already open without --remote-debugging-port=9222, close it first or run with --restart-ide.


Connection Modes

Choose the mode that fits your workflow:

Mode Command Best For URL Stability
1. Quick Tunnel npx antigravity-remote-cli --tunnel Zero-setup remote access from anywhere Temporary trycloudflare.com (auto-restarts on drop)
2. Tailscale Funnel npx antigravity-remote-cli --funnel Permanent free HTTPS URL, unlimited bandwidth, no phone app required Permanent https://<host>.ts.net (auto-restarts on drop)
3. Permanent Named Tunnel npx antigravity-remote-cli --tunnel-token <token> --public-url https://ide.yourdomain.com All-day unattended office use with a custom domain Permanent HTTPS domain (auto-reconnects)
4. Local LAN & Tailscale npx antigravity-remote-cli --local Fastest local Wi-Fi or private Tailscale mesh VPN Static 100.x.x.x Tailscale IP (auto-detected)
  • Cloudflare Named Tunnel Setup: Create a tunnel in Cloudflare Zero Trust, point it to http://localhost:4000, and pass --tunnel-token <token> --public-url https://your-domain.com (or set CF_TUNNEL_TOKEN & PUBLIC_URL).
  • Tailscale Setup: Install Tailscale on your PC and phone; ag-remote automatically detects your 100.64.x.x–100.127.x.x Tailscale IP and prints its QR code.

CLI Flags

Flag Default Description
-p, --port <number> 4000 Port to bind the HTTP server
-k, --key <string> Saved in ~/.antigravity-remote/config.json API key (API_KEY env); auto-generated once and persisted across restarts for permanent bookmarks
--rotate-key false Generate a fresh random API key and overwrite ~/.antigravity-remote/config.json
--cdp <url> http://127.0.0.1:9222 Antigravity CDP endpoint URL
--projects-dir <path> process.cwd() Root directory for projects, files, and terminal
--ide-path <path> Auto-detected Override path to Antigravity IDE executable
--no-launch false Skip auto-launching Antigravity IDE with CDP
--restart-ide false Terminate existing Antigravity IDE processes and relaunch with CDP
--tunnel false Expose server via Cloudflare Quick Tunnel (cloudflared http2)
--tunnel-token <token> CF_TUNNEL_TOKEN Run permanent Cloudflare Named Tunnel with token
--funnel false Expose server via Tailscale Funnel (https://<host>.ts.net)
--local false Skip interactive menu and start in Local LAN / Tailscale IP mode
--public-url <url> PUBLIC_URL Public domain URL for Named Tunnel Pairing URL & QR code
--allow-sleep false Allow the host PC to sleep while the server is running
--no-qr false Disable terminal QR code output

Manual CDP Launch (Optional)

If you use --no-launch, start Antigravity manually with --remote-debugging-port=9222:

Windows (PowerShell)
& "$env:LOCALAPPDATA\Programs\Antigravity IDE\Antigravity IDE.exe" --remote-debugging-port=9222
macOS
/Applications/Antigravity.app/Contents/MacOS/Electron --remote-debugging-port=9222
Linux
antigravity --remote-debugging-port=9222

REST API Reference

All /api/* endpoints require the x-api-key HTTP header and return JSON ({ ok: false, error: "..." } on error).

Method Endpoint Body / Query Description
GET /api/health — Server status, cdpReachable, CDP URL, and projects directory
GET /api/windows — List active Antigravity IDE windows
GET /api/projects — List current root (.) and immediate subdirectories
POST /api/open-project { "path": "." } Launch Antigravity on a project folder
GET /api/chat-messages ?windowIndex=0 Read formatted chat messages from the IDE
POST /api/prompt { "prompt": "...", "windowIndex": 0 } Send a prompt to Antigravity chat
POST /api/action { "action": "accept\|reject\|run\|stop\|new-chat\|save\|escape\|enter", "windowIndex": 0 } Trigger an IDE action or shortcut
GET /api/screenshot ?windowIndex=0 Capture PNG screenshot of the IDE window
POST /api/click { "xRatio": 0.5, "yRatio": 0.5, "windowIndex": 0 } Click normalized coordinates (0..1)
POST /api/scroll { "direction": "up\|down", "amount": 400, "windowIndex": 0 } Scroll the IDE window
POST /api/terminal { "command": "git status", "cwd": ".", "project": "." } Run a shell command (30s timeout)
GET /api/files ?project=.&path=. List files/directories (ignores node_modules, .git)
GET /api/file ?project=.&path=src/server.js Read UTF-8 file contents (500KB max)
POST /api/file { "project": ".", "path": "src/server.js", "content": "..." } Write UTF-8 file contents (500KB max)

Security Best Practices

  • Keep your API Key private: When --key is omitted, ag-remote generates a 256-bit random hex key on every start.
  • QR Pairing URL: The built-in web UI reads ?server= and ?key= on load, saves them to localStorage, and immediately strips them from the browser URL via window.history.replaceState.
  • Sandboxed File & Terminal Access: All file reads/writes and terminal working directories are strictly validated against --projects-dir to prevent path traversal.
  • Tunnel Caution: --tunnel creates a temporary public trycloudflare.com URL. Stop the CLI (Ctrl+C) when you are finished.

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm antigravity-remote-cli

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229