# Antigravity Bridge

> Bridge Antigravity AI desktop app to REST API

- Skill: `ythx-101/antigravity-bridge` (Agent Skill, multi-file: 5 files)
- Install (CLI): `npx skillmds@latest add ythx-101/antigravity-bridge`
- Raw SKILL.md: https://api.skillmd.com/api/skills/ythx-101/antigravity-bridge/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: ythx-101 (https://skillmd.com/u/ythx-101)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/ythx-101/antigravity-bridge

---


# Antigravity Bridge

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

## Usage

### Mode 1: Bridge API (Q&A)
```bash
# 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
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
```bash
# 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)

