Status: [UNTESTED] Endpoints found: http://127.0.0.1:18091/v1/chat/completions Source: https://github.com/maximilianolucius/nvidia_proxy # nvidia_proxy A small, dependency-light **reverse proxy for OpenAI-compatible inference APIs** that keeps long-running agent workloads alive: it paces requests, absorbs gateway errors, backs off on rate limits, and — the interesting part — **rotates across a pool of models per role** when one starts refusing. Built and hardened against NVIDIA NIM (`integrate.api.nvidia.com`) while running a multi-day, two-agent research loop, but it is generic: anything that speaks the OpenAI `/v1/chat/completions` shape works. ``` your client (any OpenAI-compatible SDK) │ base_url = http://127.0.0.1:18091/v1 ▼ ┌─────────────────────────────────────────────────────────┐ │ nvidia_proxy │ │ token bucket ──▶ 429 breaker ──▶ 5xx retry ──▶ pool │ └─────────────────────────────────────────────────────────┘ │ (optional SOCKS egress) ▼ upstream API ``` ## The problem it solves Agent workloads don't die from their *average* request rate. They die from **bursts**: one turn fires dozens of calls back to back, the provider answers `429`, and the turn is lost. The orchestrator that launched the agent sits *above* those individual HTTP calls and cannot space them out. This proxy sits *in* the request path, which lets it do four things the orchestrator can't: | # | Behaviour | Why it matters | |---|---|---| | 1 | **Pace** to ≤ N req/min (token bucket, capacity 1 ⇒ strict min-interval) | Removes the burst that triggers per-IP limits | | 2 | **Retry transparent 5xx** (500/502/503/504) | A gateway blip becomes a `200` for the client instead of a dead turn | | 3 | **Hold on 429** instead of rejecting | Rejecting kills the caller's turn; holding le