3,701 prompts from top AI collections
← Back to Market
[UNTESTED] [elbartl/openclaw-antigravity-proxy] 2 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,175 characters
Status: [UNTESTED] Endpoints found: http://127.0.0.1:8000/v1/chat/completions http://127.0.0.1:8000/v1/models Source: https://github.com/elbartl/openclaw-antigravity-proxy # openclaw-antigravity-proxy A tiny, zero-dependency Node.js proxy that exposes Google **Antigravity** (the `agy` CLI) as an **OpenAI-compatible API**, so that [OpenClaw](https://openclaw.ai) — or any other OpenAI-API client — can use Antigravity's agentic models as a chat backend. ``` OpenClaw gateway │ POST /v1/chat/completions (OpenAI format, streaming or not) ▼ proxy.js (127.0.0.1:8000) ← systemd user service │ spawn per request: │ agy --dangerously-skip-permissions --print-timeout 35m │ --log-file <private> [--model X] --print "<prompt>" ▼ agy (Antigravity CLI) ← its own agent loop: Gemini/Claude backend, │ shell, browser, web tools… ▼ response → back to the client as chat.completion(.chunk) ``` **One file, no npm dependencies** — plain `node:http`. The interesting part is not the translation itself but the production hardening around a CLI that was never designed to be a server backend: adaptive timeouts, live progress reporting, error mining from log files, process-tree cleanup, and per-request model routing. ## Why `agy` is a fully agentic CLI: given a single prompt it will happily run web searches, shell commands and multi-step investigations that take **minutes** and print *nothing* until the very end. Wrapping that in a chat API that streams, times out sanely, retries transient failures and reports progress requires solving a few non-obvious problems — documented below and in the comments throughout `proxy.js`. ## Features - **OpenAI-compatible endpoints**: `POST /v1/chat/completions` (stream and non-stream), `GET /v1/models`. - **Stateless by design** — each request spawns a fresh `agy` process; the conversation (system prompt + capped history + latest turn) is folded into a single prompt. Every request is reproducible, retryable and debuggable in isolation. - **Per-request model routing** — t
Download .txt