install
source · Clone the upstream repo
git clone https://github.com/jackwener/OpenCLI
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/jackwener/OpenCLI "$T" && mkdir -p ~/.claude/skills && cp -r "$T/clis/antigravity" ~/.claude/skills/jackwener-opencli-antigravity-a8adcb && rm -rf "$T"
manifest:
clis/antigravity/SKILL.mdsource content
Antigravity Automation Skill
This skill allows AI agents to control the Antigravity desktop app (and any Electron app with CDP enabled) programmatically via OpenCLI.
Requirements
opencli automatically detects, launches (with
--remote-debugging-port=9234), and connects to Antigravity.
If Antigravity is already running without CDP, opencli will prompt to restart it.
If the endpoint exposes multiple inspectable targets, set: ```bash export OPENCLI_CDP_TARGET="antigravity" ```
High-Level Capabilities
- Send Messages (
): Type and send a message directly into the chat UI.opencli antigravity send <message> - Read History (
): Scrape the raw chat transcript from the main UI container.opencli antigravity read - Extract Code (
): Automatically isolate and extract source code text blocks from the AI's recent answers.opencli antigravity extract-code - Switch Models (
): Instantly toggle the active LLM (e.g., `gemini`, `claude`).opencli antigravity model <name> - Clear Context (
): Start a fresh conversation.opencli antigravity new
Examples for Automated Workflows
Generating and Saving Code
```bash opencli antigravity send "Write a python script to fetch HN top stories"
wait ~10-15 seconds for output to render
opencli antigravity extract-code > hn_fetcher.py ```
Reading Real-time Logs
Agents can run long-running streaming watch instances: ```bash opencli antigravity watch ```