Skip to main content

Antigravity Automation

antigravity-automation

The official Python SDK for the Antigravity Automation extension

🌐 Website  ·  📖 API Docs  ·  ⬇️ Install Extension  ·  ⭐ GitHub



🚨 PREREQUISITE — Extension Required

This SDK connects to the Antigravity Automation VS Code extension. You MUST install the extension first — the SDK does not work without it.


Install Extension


Automate clicks, send commands, and stream live AI chat outputs from Python — all via the local REST API and WebSocket provided by the Antigravity Automation VS Code extension.

Install

pip install antigravity-automation

Quick Start

from antigravity_automation import AntigravityClient

client = AntigravityClient()

# Send a command to the AI chat
result = client.send_command("Refactor the auth module")
print(result)  # SendCommandResponse(status='queued', position=1, ...)

# Toggle auto-click automation
client.toggle_auto_run()

# Get usage stats
stats = client.get_stats()
print(f"Auto-Run clicks: {stats.autoRunClicks}")

WebSocket Stream

from antigravity_automation import AntigravityStream

stream = AntigravityStream()
stream.on_message(lambda msg: print(f"[{msg['title']}] {msg['content'][:80]}..."))
stream.on_connected(lambda: print("Connected!"))
stream.run()  # Blocking — runs asyncio event loop

API Reference

Method Endpoint Description
send_command(text) POST /send_command Send a prompt to the active AI chat
start_new_chat() POST /start-new-chat Start a new chat session
switch_chat(title) POST /switch_chat Switch to a conversation by title
toggle_auto_run() POST /toggle_auto_run Toggle auto-click Run button
toggle_auto_allow() POST /toggle_auto_allow Toggle auto-approve permissions
get_command() GET /get_command Poll for queued commands & state
get_stats() GET /stats Get cumulative usage statistics
update(title, content) POST /update Push chat content
track_action(action) POST /track_action Track a usage action

Configuration

client = AntigravityClient(
    base_url="http://localhost:5000",  # default
    timeout=10,                         # seconds, default
)

stream = AntigravityStream(
    url="ws://localhost:9812",   # default
    reconnect=True,              # auto-reconnect, default
    reconnect_delay=3.0,         # seconds, default
)

Local Development

pip install -e ".[dev]"          # Install in dev mode
python tests/test_import.py      # Run offline import tests
python tests/test_live.py        # Run live tests (bridge must be running)
python -m build                  # Build for PyPI
twine upload dist/*              # Publish to PyPI

Requirements

License

MIT — Built by JoeCodeCreations

Metadata

Release files for antigravity-automation 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for antigravity-automation 1.6.0
File Size Uploaded Provenance Actions
antigravity_automation-1.6.0.tar.gz 8.7 kB Without provenance Details for antigravity_automation-1.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for antigravity-automation 1.6.0
File Interpreter ABI Platform Actions
antigravity_automation-1.6.0-py3-none-any.whl Python 3 none any Details for antigravity_automation-1.6.0-py3-none-any.whl

Total release size: 16.3 kB

Release files / antigravity_automation-1.6.0.tar.gz

Download URL antigravity_automation-1.6.0.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d269a250785366693e23d3452e83178e36a6d19a43dc2f31db09c22adc026dca
BLAKE2b-256 checksum
How to use checksums
621de2f4305aa6acd8cadebf33255473683589b216b8446ac2892662b58b9d24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / antigravity_automation-1.6.0-py3-none-any.whl

Download URL antigravity_automation-1.6.0-py3-none-any.whl
Size 7.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46f9895586dc83fbfae143da9293780402191fc9751808e54bd583d49705bd28
BLAKE2b-256 checksum
How to use checksums
d2c0d61471c3af9041193a5e322f5ef211a6a2cbef99ef5d0d8b72c3d2143eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for antigravity-automation 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page