codex-lb — What is it?

Codex/ChatGPT multiple account load balancer & proxy with usage tracking, dashboard, and OpenCode-compatible endpoints addresses the need for efficient management and load balancing of ChatGPT accounts, providing insights and control over usage and performance.

⭐ 2,254 Stars 🍴 347 Forks Python MIT Author: Soju06
Source: README View on GitHub →

Why it matters

This project is gaining attention due to its unique solution for managing multiple ChatGPT accounts, which is particularly relevant for users with high usage demands. Its integration with OpenCode and the ability to track usage and manage API keys are standout features that fill a gap in the market for OpenAI account management tools. The project's use of FastAPI and its focus on security and performance are also notable technical choices.

Source: Synthesis of README and project traits

Core Features

Account Pooling

Balances requests across multiple ChatGPT accounts, ensuring even usage and preventing overloading of any single account.

Source: README Features
Usage Tracking

Monitors and reports on per-account tokens, costs, and usage trends over 28 days, providing valuable insights for users to manage their resources effectively.

Source: README Features
API Keys

Manages API keys with per-key rate limits, costs, and window configurations, ensuring compliance with OpenAI's terms and optimizing usage.

Source: README Features
Dashboard Auth

Enables secure access to the dashboard with password protection and optional Two-Factor Authentication (TOTP), enhancing security.

Source: README Features
OpenAI-compatible

Supports Codex CLI, OpenCode, and other OpenAI clients, allowing seamless integration with existing workflows.

Source: README Features
Auto Model Sync

Automatically fetches available models from the upstream Codex model catalog, ensuring users have access to the latest models.

Source: README Features

Architecture

The architecture is based on a FastAPI framework, utilizing asynchronous programming for performance. It features a modular design with separate components for account management, usage tracking, and API key handling. Data flow is managed through SQLAlchemy for database interactions, and the project leverages various asynchronous libraries for efficient I/O operations.

Source: Code tree + dependency files

Project Knowledge Graph

Knowledge graph: project (center) + core features (inner hexagons) + key dependencies (outer chips) aiohttp alembic aiosqlite asyncpg bcrypt Account Pooling Usage Tracking API Keys Dashboard Auth OpenAI-compatible Auto Model Sync codex-lb Project Core feature Key dependency

Center: project; inner ring: core feature modules; outer ring: key dependencies. Auto-generated from core_features and tech_stack.key_deps.

Tech Stack

LanguagePythonFrameworkFastAPI
aiohttpalembicaiosqliteasyncpgbcryptcryptographyfastapipydanticsqlalchemy
Docker
Source: Dependency files + code tree

Quick Start

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
Source: README Installation/Quick Start

Use Cases

This project is suitable for developers and technical teams that require efficient management of multiple ChatGPT accounts, especially those with high usage demands. It is useful in scenarios such as building AI applications that require access to multiple ChatGPT accounts, managing large-scale ChatGPT deployments, or for users who need detailed usage tracking and performance optimization.

Source: README

Strengths & Limitations

Strengths

  • Strength 1: Comprehensive account management and usage tracking
  • Strength 2: Integration with OpenAI tools
  • Strength 3: Secure access and authentication

Limitations

  • Limitation 1: May require technical expertise to set up and configure
  • Limitation 2: Limited documentation for some features
Source: Synthesis of README, code structure and dependencies

Latest Release

v1.21.0-beta.2 (2026-07-11): Fixed proxy issues, introduced smart HTTP→upstream transport routing, and other improvements.

Source: GitHub Releases

Verdict

Codex/ChatGPT multiple account load balancer & proxy is a valuable tool for managing and optimizing the use of multiple ChatGPT accounts. It is particularly suited for developers and teams with high usage demands and those who require detailed usage tracking and performance optimization. Its integration with OpenAI tools and focus on security make it a strong choice for users looking for a comprehensive solution to manage their ChatGPT accounts.

Source: Synthesis

Frequently Asked Questions

What is codex-lb?

Codex/ChatGPT multiple account load balancer & proxy with usage tracking, dashboard, and OpenCode-compatible endpoints addresses the need for efficient management and load balancing of ChatGPT accounts, providing…

What are the main features of codex-lb?

codex-lb's core features include: Account Pooling, Usage Tracking, API Keys, Dashboard Auth, OpenAI-compatible.

Why is codex-lb trending?

This project is gaining attention due to its unique solution for managing multiple ChatGPT accounts, which is particularly relevant for users with high usage demands.

What is codex-lb used for?

This project is suitable for developers and technical teams that require efficient management of multiple ChatGPT accounts, especially those with high usage demands.

Transparency Notice
This page is auto-generated by AI (a large language model) from the following public materials: GitHub README, code tree, dependency files and release notes. Analyzed at: 2026-07-11 18:35. Quality score: 85/100.

Data sources: README, GitHub API, dependency files