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.
Screenshots
Main Dashboard View
Accounts View
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.
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
OpenCode Setup
Run:
opencode auth login
Then select OpenAI -> Manually enter API Key and enter any value.
Add the following to ~/.config/opencode/opencode.json:
{
...
"provider": {
"openai": {
"options": {
"baseURL": "http://127.0.0.1:2455/v1"
}
},
...
}
}
Data
Data storage locations:
- Local/uvx:
~/.codex-lb/ - Docker:
/var/lib/codex-lb/
Files:
store.db– accounts, usage logsencryption.key– encrypts tokens (auto-generated)
Backup this directory to preserve your accounts.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Soju06 💻 ⚠️ 🚧 🚇 |
Jonas Kamsker 💻 🐛 🚧 |
Quack 💻 🐛 🚧 🎨 |
Jill Kok, San Mou 💻 ⚠️ 🚧 |
PARK CHANYOUNG 📖 |
Choi138 💻 🐛 ⚠️ |
This project follows the all-contributors specification. Contributions of any kind welcome!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file codex_lb-0.5.2.tar.gz.
File metadata
- Download URL: codex_lb-0.5.2.tar.gz
- Upload date:
- Size: 787.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88a0393dcf1f69d8c0f2ea1b32c48c11f7660d0286e666e0f72c8c50deb44955
|
|
| MD5 |
5c7001a6f7cf2ead56e8c22f8e2fa80d
|
|
| BLAKE2b-256 |
f72e2c5ee011a126f522e4617930e41a4b1e951d1457ab8d8b07d8b4a3b6fcd5
|
Provenance
The following attestation bundles were made for codex_lb-0.5.2.tar.gz:
Publisher:
release.yml on Soju06/codex-lb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_lb-0.5.2.tar.gz -
Subject digest:
88a0393dcf1f69d8c0f2ea1b32c48c11f7660d0286e666e0f72c8c50deb44955 - Sigstore transparency entry: 909598342
- Sigstore integration time:
-
Permalink:
Soju06/codex-lb@67d2485c0dee427376ad571c3e3451447cb12a5e -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Soju06
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@67d2485c0dee427376ad571c3e3451447cb12a5e -
Trigger Event:
release
-
Statement type:
File details
Details for the file codex_lb-0.5.2-py3-none-any.whl.
File metadata
- Download URL: codex_lb-0.5.2-py3-none-any.whl
- Upload date:
- Size: 127.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f130d8ae4934337292d4dc92a115f2336c357308ddf37033bcfc4ed93cbe0338
|
|
| MD5 |
cca6be19dd1532d527f3436a8dee4598
|
|
| BLAKE2b-256 |
670bd6a8227200565391f0eef7adccbb8c04a6b0cd27d307f53ba54c54ad9060
|
Provenance
The following attestation bundles were made for codex_lb-0.5.2-py3-none-any.whl:
Publisher:
release.yml on Soju06/codex-lb
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
codex_lb-0.5.2-py3-none-any.whl -
Subject digest:
f130d8ae4934337292d4dc92a115f2336c357308ddf37033bcfc4ed93cbe0338 - Sigstore transparency entry: 909598345
- Sigstore integration time:
-
Permalink:
Soju06/codex-lb@67d2485c0dee427376ad571c3e3451447cb12a5e -
Branch / Tag:
refs/tags/v0.5.2 - Owner: https://github.com/Soju06
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@67d2485c0dee427376ad571c3e3451447cb12a5e -
Trigger Event:
release
-
Statement type: