Skip to main content

Antigravity OpenAI-Compatible Proxy

A small FastAPI wrapper that accepts OpenAI-compatible requests and invokes the local agy CLI. A chat request passes its requested model to agy --model <model> --prompt <prompt>. /v1/models runs agy models and exposes the returned model IDs. Antigravity CLI handles sign-in; model names are passed through unchanged.

Run on Termux (Android)

The agy command must already be installed, available in Termux's PATH, and signed in. Install the proxy from PyPI:

pkg update
pkg install python
python -m pip install --upgrade antigravity-proxy
antigravity-proxy --web

Then open http://127.0.0.1:8091/index.html in a browser. The UI gets the model list from agy models and sends chat requests through the same local proxy. The --web mode binds only to 127.0.0.1:8091. To run the API without the UI, start antigravity-proxy; it listens on port 8000 by default.

To configure the CLI executable or API port, create a .env file in the directory where you start the command. Defaults are AGY_EXECUTABLE=agy and PROXY_PORT=8000:

printf 'AGY_EXECUTABLE=agy\nPROXY_PORT=8000\n' > .env

To run from an unpacked source checkout instead, install its dependencies with python -m pip install . and start it with python main.py --web.

Test the proxy:

curl http://127.0.0.1:8000/health
curl http://127.0.0.1:8000/v1/models
curl -N http://127.0.0.1:8000/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{"model":"YOUR_MODEL","messages":[{"role":"user","content":"Hello"}],"stream":true}'

/health runs agy models and returns HTTP 200 if the command succeeds, or 503 if it cannot start or returns an error. Chat requests execute agy --model <model> --prompt <prompt> without shell interpolation. Streaming requests are returned as SSE while stdout is produced by the CLI.

Metadata

Release files for antigravity-proxy 0.1.3

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-proxy 0.1.3
File Size Uploaded Provenance Actions
antigravity_proxy-0.1.3.tar.gz 6.6 kB Without provenance Details for antigravity_proxy-0.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for antigravity-proxy 0.1.3
File Interpreter ABI Platform Actions
antigravity_proxy-0.1.3-py3-none-any.whl Python 3 none any Details for antigravity_proxy-0.1.3-py3-none-any.whl

Total release size: 13.5 kB

Release files / antigravity_proxy-0.1.3.tar.gz

Download URL antigravity_proxy-0.1.3.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8e7adc1f4a367f0ac50a5e550bf003df78b0c601c505c11aef9988e3a0a4841e
BLAKE2b-256 checksum
How to use checksums
2eb3c6b69e54ddf8ada68c0cc6f903d51bec9c717436ed09a54973fd45c09929
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / antigravity_proxy-0.1.3-py3-none-any.whl

Download URL antigravity_proxy-0.1.3-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ff482e7053a30654e8846167b4904c3b833c323ccbc4bc548c7db57c8e7a1b0
BLAKE2b-256 checksum
How to use checksums
3813a3c536c880a5b4e3edfffe1664d96275b3e1d2a0d72524f921f991483f21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for antigravity-proxy 0.1.3

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