Status: [UNTESTED] Endpoints found: http://proxy.example.com:8080 Source: https://github.com/imroc/llm-proxy # LLM Proxy [中文文档](./README.zh-CN.md) A thin local proxy for LLM APIs with automatic retry, flexible protocol conversion, and model-level routing. Designed for team-shared API scenarios where rate limiting (429) frequently interrupts AI CLI tool sessions. ## Why? When using AI CLI tools (CodeBuddy Code, Claude Code, Codex CLI) with team-shared model APIs, global rate limits cause 429 errors that interrupt sessions. Most CLI tools have limited or no retry capability, requiring manual "continue" to resume work. This proxy sits between the CLI tool and the API, transparently retrying requests that receive 429/5xx errors with exponential backoff + jitter, so the CLI tool never sees the error. It also solves a second problem: different AI tools use different API protocols (OpenAI Responses, Chat Completions, Anthropic Messages), but upstream usually does not provide full support. The proxy automatically detects the inbound protocol and converts it to whatever the upstream supports — no manual transform configuration needed. ## Features - **Unlimited retry** — keeps retrying until the client disconnects or succeeds - **Flexible protocol conversion** — auto-detects inbound format (Responses/Chat/Anthropic) and converts to any supported upstream format - **Default route** — all AI tools point to the same address; the `model` field in the request body determines the upstream target - **API key management** — per-model API keys with `${ENV_VAR}` expansion, independent of client-side keys - **Upstream proxy** — route upstream traffic through a corporate proxy via `HTTPS_PROXY`/`HTTP_PROXY`/`ALL_PROXY`/`NO_PROXY` - **Model name mapping** — automatic bidirectional model name rewriting (`upstream_model`) - **GET /v1/models** — returns all configured models for client-side model discovery - **Transparent** — CLI tools don't need any retry support; just point them at the proxy - **Streaming support** — SSE streaming passthrough and real-time prot