Antigravity Bridge

Bridge Antigravity AI desktop app to REST API

ythx-101 7a38b36 5 files · 10.7 KB Updated

File contents

Antigravity Bridge

Turn Antigravity (free AI desktop app) into a REST API via Chrome DevTools Protocol (CDP).

Usage

Mode 1: Bridge API (Q&A)

# CLI
ag "Your question" [model]

# HTTP
curl -s -X POST http://localhost:19999/chat \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"Your question","model":"Claude Opus 4.6 (Thinking)"}'

Mode 2: IDE Agent (project tasks)

bash scripts/agy_invoke.sh "Task description" [--model opus]

Parameters

  • model: opus (Claude Opus 4.6), gemini (Gemini 3.1 Pro), sonnet (Claude Sonnet 4.6), flash (Gemini 3 Flash), gpt (GPT-OSS 120B)

Examples

# Health check
curl -s http://localhost:19999/health

# Call Claude Opus
ag "Write a bash script" opus

# IDE agent task
bash scripts/agy_invoke.sh "Fix bug in common.sh" --model sonnet

Requirements

  • Mac with Antigravity installed and running
  • Antigravity started with --remote-debugging-port=9229
  • Bridge mode: run bridge.py
  • IDE mode: Node.js with ws package

Configuration

  • Bridge port: --port (default: 19999)
  • CDP port: --cdp-port (default: 9229)
  • Host: localhost (or set AG_BRIDGE_HOST env var)

ythx-101/antigravity-bridge/tree/main/ commit 7a38b36381

Frequently asked questions

npx skillmds@latest add ythx-101/antigravity-bridge