The Antigravity Automation is an extension for automating and remotely controlling the Antigravity IDE.
Eliminate those pesky manual clicks but more than that, be able to interact with the chats from anywhere outside the ide to allow complete and full control.

Recursive planning, execution and continuation using orchestrated workflows to leverage Antigravity as a piece of your larger workflows.
This extension injects a secure, lightweight communication bridge directly into your active VSCode Workbench, allowing you to orchestrate the AI using external scripts, automate repetitive conversational clicks, and export scraped content natively to your local filesystem.
Install directly from the Open VSX Registry:
Once installed, the extension runs locally and provides a REST API + WebSocket for external control. Use the Node.js SDK or Python SDK to interact with it programmatically.
- 100% Safe: Locally ran, no data leaves your machine.
- Auto-Run Automation: Automatically detects and clicks the "Run" buttons inside the Antigravity chat, saving you from constant clicking during complex tasks.
- Auto-Allow Execution: Bypasses the "Allow this Conversation" prompts seamlessly.
- Ability to Orchestrate Chats with AI: Extension spins up a local server that you can send requests to in order to start new chats, send new messages, get data from the chats.
- Bridge Control Dashboard: An interactive Webview UI for toggling automation states and tracking real-time websocket activity.
- One Click Button: One Click button to easily enable or disable auto click
Ready-to-run examples for interacting with every API endpoint in 8 languages:
Each file demonstrates: toggle automation, send commands, start/switch chats, get stats, push updates, track actions, and WebSocket streaming.
Start Antigravity Bridge: Opens the Bridge Control Dashboard.Toggle Antigravity Automation: Globally pauses/resumes the Auto-Run and Auto-Allow logic from the Activity Bar.
You can fully customize the backend ports to prevent local network collisions. Use Ctrl + , to open Settings and search for Antigravity Bridge:
antigravityBridge.httpPort(Default:5000): The REST API port used for injecting scripts into the Workbench.antigravityBridge.wsPort(Default:9812): The WebSocket broadcasting port used for streaming live JSON payload logs.
Want to connect your Python system to the Antigravity Output Feed? Just listen to the local WebSocket!
import asyncio
import websockets
import json
async def watch_stream():
url = "ws://localhost:9812"
async with websockets.connect(url) as websocket:
while True:
message = await websocket.recv()
data = json.loads(message)
print(f"Update in thread [{data.get('title')}]: {data.get('content')}")
if __name__ == "__main__":
asyncio.run(watch_stream())The Antigravity Automation runs entirely within your local machine. It never sends data to any external API or 3rd party service.
Now you can easily include Antigravity as a piece of your larger workflows and systems like Moltbot, Cron Jobs, Cursor and more.
Leverage your existing Antigravity subscription to get the most out of it now.
By default, the Antigravity Automation API runs on the following ports (configurable via VS Code Settings under bridge):
-
HTTP Port:
5000(http://localhost:5000)here you can send commands and control the automation.
-
WebSocket Port:
9812(ws://localhost:9812)here you can listen to the chat outputs so your external agents can use the outputs to make decisions.
All endpoints accept JSON payloads and return JSON responses. Send requests with Content-Type: application/json.
- Endpoint:
POST /toggle_auto_run - Description: Toggles the Auto-Run automation state (automatically clicking "Run").
- Response:
{ "auto_run": true }
- Endpoint:
POST /toggle_auto_allow - Description: Toggles the Auto-Allow automation state (automatically approving permissions).
- Response:
{ "auto_allow": true }
- Endpoint:
POST /send_command - Description: Enqueues a message/command to be sent as input to the active chat in Antigravity.
- Payload:
{ "text": "Your prompt or command string" } - Response:
{ "status": "queued", "position": 1, "usage": { ... } }
- Endpoint:
POST /start-new-chat - Description: Signals the UI to start a completely new chat session.
- Response:
{ "status": "queued_new_chat" }
- Endpoint:
POST /switch_chat - Description: Tells the UI to switch to a specific prior chat conversation by its title.
- Payload:
{ "title": "Conversation Name" } - Response:
{ "status": "queued", "title": "Conversation Name", "usage": { ... } }
- Endpoint:
ws://localhost:9812 - Description: Connect an external client to the WebSocket port to listen to chat updates in real-time. This broadcasts payloads directly out to connected clients
- Format Received:
{"title": "Current Topic", "content": "Full conversation text..."}
- Endpoint:
POST /update - Description: Receives chat logs pushed directly by the bridge front-end webview. Writes logs to
content_log_<title>.txtin the root of the active VS Code workspace and broadcasts them over the WebSocket. - Payload:
{ "title": "Conversation Title", "content": "..." }
GET /stats- View current usage metrics for Auto-Run, Auto-Allow, Remote Commands.POST /track_action- Track a usage action. Payload:{ "action": "auto_run" }
Freemium Limits: The extension is free to use with generous limits — 500 auto-clicks and 100 remote commands. After that, a one-time or subscription license unlocks unlimited usage. API responses include
{"error": "...", "upgrade_url": "..."}when limits are reached.
