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
The proxy listens on port 8000 by default. To configure it, create a .env file in the directory where you start the command. The 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.
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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| antigravity_proxy-0.1.2.tar.gz | 4.2 kB | Without provenance | Details for antigravity_proxy-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| antigravity_proxy-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for antigravity_proxy-0.1.2-py3-none-any.whl |
Total release size: 8.7 kB
Release files / antigravity_proxy-0.1.2.tar.gz
| Download URL | antigravity_proxy-0.1.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
72ea7af64f7d59bd60b72a8869681d18eacd8f6b5867f6863d7e6df9d72c5cea
|
|
BLAKE2b-256 checksum How to use checksums |
462e27b9548deb7cc99ad913482077ffb61b7b0096d3a985202e23375a70b3ed
|
| 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.2-py3-none-any.whl
| Download URL | antigravity_proxy-0.1.2-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b1468deb5ef7cb1cdfc8cfe3a714b85ed758388fb5ded278f621f23944b5bfb7
|
|
BLAKE2b-256 checksum How to use checksums |
59b9b1911d0bd06b3e5d3763c365cf955265bd35c5e2a99f6c859cd2987b4ee0
|
| 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.2
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.