Skip to main content

Codex load balancer and proxy for ChatGPT accounts with usage dashboard

Project description

codex-lb

Load balancer for ChatGPT accounts. Pool multiple accounts, track usage, view everything in a dashboard.

Codex Load Balancer dashboard

Quick Start

Docker

docker run -d --name codex-lb \
  -p 2455:2455 -p 1455:1455 \
  -v ~/.codex-lb:/var/lib/codex-lb \
  ghcr.io/soju06/codex-lb:latest

uvx

uvx codex-lb

Open localhost:2455 → Add account → Done.

Accounts view

Accounts list and details

Codex CLI & Extension Setup

Add to ~/.codex/config.toml:

model = "gpt-5.2-codex"
model_reasoning_effort = "xhigh"
model_provider = "codex-lb"

[model_providers.codex-lb]
name = "OpenAI"  # MUST be "OpenAI" - enables /compact endpoint
base_url = "http://127.0.0.1:2455/backend-api/codex"
wire_api = "responses"
chatgpt_base_url = "http://127.0.0.1:2455"
requires_openai_auth = true  # Required: enables model selection in Codex IDE extension

Data

All data stored in ~/.codex-lb/:

  • store.db – accounts, usage logs
  • encryption.key – encrypts tokens (auto-generated)

Backup this directory to preserve your accounts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

codex_lb-0.1.4.tar.gz (696.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codex_lb-0.1.4-py3-none-any.whl (111.8 kB view details)

Uploaded Python 3

File details

Details for the file codex_lb-0.1.4.tar.gz.

File metadata

  • Download URL: codex_lb-0.1.4.tar.gz
  • Upload date:
  • Size: 696.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_lb-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3a83505b8561d23cf3471daa85e7d4181e08d44f816a3d6655ddc6b78671d40d
MD5 2c81941c5c2168dafd2b226cb328d5d1
BLAKE2b-256 2f7afe29455681295148907413f4587b4c28e4c69b552604f34d15cba98899f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_lb-0.1.4.tar.gz:

Publisher: release.yml on Soju06/codex-lb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file codex_lb-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: codex_lb-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 111.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for codex_lb-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0db1785da400b6d1373321f26e4ae053b4e7c42c8e1daa7a55cc256f362304db
MD5 ff3de98d17e65a147fd9d5ba6def91b1
BLAKE2b-256 e4ccb59d484f322cbde8ea7aa5f11cf3bcb77c3df64af64bfbac01b0289073ae

See more details on using hashes here.

Provenance

The following attestation bundles were made for codex_lb-0.1.4-py3-none-any.whl:

Publisher: release.yml on Soju06/codex-lb

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page