Claude Skill
Soju06/codex-lb
Codex-LB is a multi-account load balancer and proxy for Codex and ChatGPT with usage tracking, dashboard, and OpenCode-compatible endpoints. Built with FastAPI and SQLAlchemy.
Overview
Repository
Install this Skill
docker run -d --name codex-lb \Registry
docker run -d --name codex-lb \uvx codex-lb
Summary
Codex-LB is a multi-account load balancer and proxy system for Codex and ChatGPT, featuring usage tracking, a dashboard, and OpenCode-compatible endpoints. Built with FastAPI and SQLAlchemy, it supports OAuth, rate limiting, and efficient API proxy management.
Codex/ChatGPT 多账户负载均衡与代理系统,具备使用追踪、仪表盘功能,并兼容 OpenCode 的端点接口。
Key features
- Multi-account load balancing for Codex and ChatGPT
- Usage tracking and real-time dashboard
- OpenCode-compatible API endpoints
- Built-in rate limiting and OAuth support
- FastAPI-based proxy with SQLAlchemy backend
Use cases
- Distributing API requests across multiple OpenAI accounts
- Monitoring usage and preventing rate limit errors
- Building a custom proxy for Codex or ChatGPT applications
- Integrating with OpenCode-compatible tools and workflows
README excerpt
<!-- About Codex/ChatGPT account load balancer & proxy with usage tracking, dashboard, and OpenCode-compatible endpoints Topics python oauth sqlalchemy dashboard load-balancer openai rate-limit api-proxy codex fastapi usage-tracking chatgpt opencode Resources --> # codex-lb Load balancer for ChatGPT accounts. Pool multiple accounts, track usage, manage API keys, view everything in a dashboard. |  |  | |:---:|:---:| <details> <summary>More screenshots</summary> | Settings | Login | |:---:|:---:| |  |  | | Dashboard (dark) | Accounts (dark) | Settings (dark) | |:---:|:---:|:---:| |  |  |  | </details> ## Features <table> <tr> <td><b>Account Pooling</b><br>Load balance across multiple ChatGPT accounts</td> <td><b>Usage Tracking</b><br>Per-account tokens, cost, 28-day trends</td> <td><b>API Keys</b><br>Per-key rate limits by token, cost, window, model</td> </tr> <tr> <td><b>Dashboard Auth</b><br>Password + optional TOTP</td> <td><b>OpenAI-compatible</b><br>Codex CLI, OpenCode, any OpenAI client</td> <td><b>Auto Model Sync</b><br>Available models fetched from upstream</td> </tr> </table> ## Quick Start ```bash # Docker (recommended) docker volume create codex-lb-data docker run -d --name codex-lb \ -p 2455:2455 -p 1455:1455 \ -v codex-lb-data:/var/lib/codex-lb \ ghcr.io/soju06/codex-lb:latest # or uvx uvx codex-lb ``` Open [localhost:2455](http://localhost:2455) → Add account → Done. ## Remote Setup When accessing the dashboard remotely