Status: [LIVE] Endpoints found: https://api.x.ai/v1/*` Source: https://github.com/fun7257/xai-proxy # xai-proxy **Local developer tool** — a single-operator reverse proxy that logs you into xAI (Grok) via OAuth once, then lets any **local** OpenAI-compatible client call xAI’s native `/v1/*` APIs (chat **and** multimodal) without managing an API key. The proxy attaches your OAuth bearer and **pass-through** forwards to `https://api.x.ai/v1/*`. > **Not affiliated with xAI.** Unofficial, community-maintained software. > **For your machine only** — not a multi-tenant or public API gateway. > License: [MIT](LICENSE). Security model: [docs/SECURITY.md](docs/SECURITY.md). > Chinese: [README_zh.md](README_zh.md). ## Important: security & scope | Do | Don’t | |----|--------| | Bind **127.0.0.1** (default) | Expose the port to the public internet | | Use the **local client API key** on every `/v1/*` call | Call `/v1` without `Authorization` | | Treat OAuth tokens **and** the generated client key as secrets | Commit keys, `.env`, or volume dumps | | Keep client key off shared hosts | Share the key like a password | **Local client auth is required** on `/v1/*`: `Authorization: Bearer `. `/health` and `/ready` stay open for probes. Upstream OAuth is separate (attached by the proxy). OAuth uses a **public** device-code client id. xAI may change allowlists or terms at any time; use at your own risk. The xAI OAuth flow (device login / refresh) was implemented **with reference to [Hermes Agent](https://github.com/NousResearch/hermes-agent)**; this project is independent and not affiliated with Hermes Agent or xAI. Details: [docs/DESIGN.md](docs/DESIGN.md#oauth-contract). Full threat model: [docs/SECURITY.md](docs/SECURITY.md). ## What this is for - Point **Cursor / OpenAI SDKs / curl** at a local base URL during development - One OAuth login, automatic token refresh, native xAI paths for all modalities ## What this is not - An official xAI product or supported integration - A secure shared proxy for a team or the internet - A full OpenAI Au