openai-nim-proxy (LLM Gateway)

openai-nim-proxy (LLM Gateway)

A Node.js gateway that exposes NVIDIA NIM, Chutes, Ollama, GPT4Free, and OpenRouter behind one OpenAI-compatible API — with explicit provider-prefixed model IDs instead of fake OpenAI aliases.

The gateway never fakes OpenAI model aliases. Each provider's models are exposed under explicit, prefixed IDs — nim:, chutes:, ollama:, g4f:, openrouter: — so a client always knows where a request is going, and the gateway never maintains a fragile mapping table of fake OpenAI names to real upstream models.

A model registry discovers models from every configured provider in parallel (one provider being down never breaks the union), dedupes by ID, and persists to a cache with a configurable TTL. A round-robin key pool selects across multiple keys per provider with exponential cooldown and Retry-After honoring, so many free-tier OpenRouter keys can sit behind one stable endpoint.

On top of the routing core it ships a built-in browser chat UI backed by SQLite with per-message provider/model attribution, a TTS benchmark UI probing local Kokoro/KittenTTS/Piper engines through one OpenAI-style /v1/audio/speech endpoint, an optional GPT4Free sidecar (chat + image generation) as a separate Docker container, and a Responses-API translator so Codex CLI 0.136+ can keep talking to chat-completions-only providers.

Key features

Stack

JavaScriptNode.jsExpressSQLiteDockersystemd

← All projects