Deploy Now

SaaS Alternative

OpenRouter Portkey LiteLLM

Stars

94

Forks

1

Watchers

0

Developer links

Codex LB Enhanced

Codex LB Enhanced is a session-aware gateway that pools your ChatGPT accounts so a long Codex session survives quota limits, dropped connections, and paused accounts without losing the conversation. It serves Codex desktop, CLI, and IDE clients through the native Responses protocol and WebSocket transport, and answers any OpenAI-compatible client through the familiar /v1 endpoints. When an account runs out of quota, gets suspended, times out, or drops mid-stream, the gateway classifies the failure, removes that account from the current request, and selects the next one through your load-balancing policy. Verified request history, including interrupted tool-call context, is replayed across the account switch when it is safe, so the client sees a slower answer instead of a dead stream. Every API key carries its own policy: time windows from five hours to monthly, limits by credits, tokens, or cost, and model-specific rules. Usage appears in native Codex quota headers and in a /v1/usage view backed by the same data, so editors and automation agree on what is left. Diagnostics correlate each request with its upstream account, transport, failover stage, and retry count, and a web dashboard manages accounts, keys, usage windows, request logs, and recovery reports. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.

Codex LB Enhanced
Codex LB Enhanced
Codex LB Enhanced
Codex LB Enhanced
Codex LB Enhanced

Benefits

  • Sessions Survive Account Failures
  • Quota exhaustion, suspension, timeouts, and dropped streams are classified separately, the failed account leaves the candidate set, and verified context replays to the next account, so conversations continue instead of dying.
  • Every Key Gets Its Policy
  • Configure five-hour, daily, weekly, or monthly windows per API key with limits by credits, tokens, or cost, plus model-specific rules and independent passthrough and display settings for each consumer.
  • Quota You Can Read Anywhere
  • The same usage data drives native Codex primary, secondary, and credits headers and the /v1/usage endpoint, so your editor, scripts, and dashboard never disagree about remaining allowance.
  • Failures Explained, Not Hidden
  • Request diagnostics tie together the upstream account, transport, failover stage, quota reason, and retry count for every call, with no anonymous telemetry leaving the server you operate.

Features

  • Transparent Account Failover
  • Failed accounts are excluded from the current request before the load-balancing policy picks the next one, and a client-visible error appears only when the whole pool is exhausted.
  • Full-Session Recovery
  • Verified request history and interrupted tool-call context replay across accounts through the HTTP session bridge, including conversations resumed hours later on a different pooled account.
  • WebSocket And HTTP Bridge
  • Codex Responses traffic, the HTTP session bridge, and upstream WebSockets cooperate, so failures before the first event fall back cleanly without exposing a broken stream to the client.
  • Operations Web Dashboard
  • Manage pooled accounts, API keys, usage windows, reports, request logs, and recovery diagnostics from one dashboard, with SQLite by default and PostgreSQL for multi-replica Helm deployments.

Apps Similar to Codex LB Enhanced