Palimpsest Gateway

Swap one base URL and Palimpsest Gateway turns the LLM keys you own into a single OpenAI-compatible endpoint that fails over by itself. Apps keep their OpenAI client and use a gateway key of their own; provider keys stay encrypted and are never shown again. Teams that mix free and paid keys cap the free ones, leave the paid ones uncapped, and the gateway spends the free allowance first. When a key hits a rate limit, empty quota, outage or refusal, the same call moves to the next suitable key. Clients send only the new message, because the gateway keeps per-user session history and carries it through a failover. Asking for palimpsest/supermode picks the strongest model the pool can serve right now and skips any that cannot take the prompt, images or tools. A circuit breaker skips a provider in a real outage, and a concurrency gate caps in-flight requests per provider. Per-user daily caps and a pool low-water mark throttle demand before the keys run dry. Live Flow traces each request through the gateway, retries included, and key tests find the models an account can use. Spend appears against the per-model prices and monthly budget you enter, by day, model and user, with a projection. An audit trail, CSV exports and Prometheus metrics cover operations. The dashboard never shows message content. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

Palimpsest Gateway
Palimpsest Gateway
Palimpsest Gateway
Palimpsest Gateway
Palimpsest Gateway
Palimpsest Gateway
Palimpsest Gateway

Benefits

  • Provider keys never reach apps
  • Apps authenticate with their own pgw_live_ gateway keys. Provider keys stay Fernet-encrypted at rest and are never shown again after creation, so apps and their logs never hold one.
  • A dead key never fails requests
  • Rate limits, empty quotas, outages and refused keys move the request to the next suitable key inside the same API call, within a fixed retry budget and with the context carried over.
  • Best available model on demand
  • Requesting palimpsest/supermode picks the strongest model the pool can serve right now, skips models that cannot take the prompt, images or tools, and falls back to the next best on failure.
  • Spend and health at a glance
  • The dashboard charts key health, cap use, latency, failovers and cost against your own per-model prices and monthly budget, without ever displaying message content.

Features

  • Drop-in OpenAI API
  • Serves /v1/chat/completions with streaming and tool calls, plus /v1/models, so any OpenAI SDK works by changing the base URL and using a pgw_live_ key.
  • Multi-provider key pool
  • Pools OpenAI, Anthropic, Gemini, OpenRouter, Mistral, Groq, Z.ai, xAI, GitHub Models and custom OpenAI-compatible endpoints, with request caps, token budgets and reset schedules per key.
  • Supermode and Live Flow
  • Supermode ranks every model the pool can serve with score, context window and capacity left, and Live Flow traces each request from client through gateway to provider and back.
  • Provider protection
  • A per-provider circuit breaker skips real outages and a concurrency gate caps in-flight requests; neither spends a retry, and key tests find models an account can really use.
  • Alerts, audit and metrics
  • Alerts with an optional webhook, an audit trail and CSV exports cover operations, alongside Prometheus metrics, an /ops/overview view and one JSON log line per request.
  • One-command Docker Compose
  • docker compose up -d --wait starts the gateway on port 8000 with Redis; first boot generates and persists the master and operator keys, and signup can be switched off.

Apps Similar to Palimpsest Gateway