What do you want to do?
4 use cases
-
Run a self-hosted Codex account-pool gateway with Docker
Start the gateway in a container, add accounts, and create an API key in the dashboard.
- REPO
aafqaq/codex-lb-enhanced - Software and DevOps
- Intermediate
View prompt
In the aafqaq/codex-lb-enhanced repo, run the Docker quick start to start the gateway as the container named codex-lb-enhanced, using the target directory <workdir>. Report the container status from `docker ps` and confirm that http://localhost:2455 responds. Verify that the data volume codex-lb-enhanced-data exists before you finish.
- REPO
-
Point Codex CLI at the gateway with a provider entry
Add a Codex LB Enhanced provider to config.toml so Codex routes through the pool.
- REPO
aafqaq/codex-lb-enhanced - Codex
- Software and DevOps
- Intermediate
View prompt
Using the aafqaq/codex-lb-enhanced README, add the codex-lb-enhanced provider block to <path to config.toml> with the base_url for <gateway URL>. Report the final provider block and whether a test Codex prompt succeeds. Verify that the file still parses as TOML.
- REPO
-
Read API-key quota usage from /v1/usage in scripts
Query the usage endpoint to track remaining limits for each API key.
View prompt
In the aafqaq/codex-lb-enhanced repo, write a small script that calls /v1/usage on <gateway URL> with the API key in <env var name>. Output the remaining usage per window as JSON. Verify that the output matches the usage limits shown in the dashboard for that key.
-
Run the gateway from source for local development
Sync dependencies with uv and launch codex-lb from a source checkout.
View prompt
In a clone of aafqaq/codex-lb-enhanced at <path>, run `uv sync --dev --frozen` and then `uv run codex-lb`. Report whether the launcher starts and whether http://localhost:2455 responds. Verify that no dependency install step failed before you start the launcher.
Quick start with Codex LB Enhanced
- Check you have what it needs: Docker installed and running, or uv installed for running from source; Upstream ChatGPT accounts you are authorized to use, to add in the dashboard; A browser to open the dashboard at localhost:2455.
- Open aafqaq/codex-lb-enhanced on GitHub and read the README and license.
- Create the Docker network if it does not exist:
docker network inspect codex-lb-net >/dev/null 2>&1 || docker network create codex-lb-net - Create the data volume:
docker volume create codex-lb-enhanced-data - Start the container:
docker run -d --name codex-lb-enhanced --restart unless-stopped -e CODEX_LB_HTTP_RESPONSES_SESSION_BRIDGE_AMBIGUOUS_CONTINUATION_RECOVERY_MODE=server_indefinite_recovery --network codex-lb-net -p 2455:2455 -p 1455:1455 -v codex-lb-enhanced-data:/var/lib/codex-lb ghcr.io/aafqaq/codex-lb-enhanced:1.25.3(inferred, check the README) - Open http://localhost:2455, complete initialization, and add your accounts.
These steps come from our top use case, Run a self-hosted Codex account-pool gateway with Docker, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for aafqaq/codex-lb-enhanced
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeCodex LB Enhanced alternatives · Best AI repos for Software and DevOps
About this repo
- Who it is forDevelopers and small teams who run Codex or other OpenAI-compatible clients and want one self-hosted endpoint in front of several upstream accounts.
- Why it is hot104 stars, launched 59 days ago
- LanguagePython
- Sourcegithub.com/aafqaq/codex-lb-enhanced · Back to Hot repos
Requirements
- Docker installed and running, or uv installed for running from source
- Upstream ChatGPT accounts you are authorized to use, to add in the dashboard
- A browser to open the dashboard at localhost:2455
- Codex CLI, desktop, or IDE integration, or another OpenAI-compatible client, if you plan to connect one
Add this badge to your README
Maintain Codex LB Enhanced? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/aafqaq-codex-lb-enhanced/?utm_source=github&utm_medium=badge&utm_campaign=aafqaq-codex-lb-enhanced)
HTML
<a href="https://dedupedai.com/use-cases/aafqaq-codex-lb-enhanced/?utm_source=github&utm_medium=badge&utm_campaign=aafqaq-codex-lb-enhanced"><img src="https://dedupedai.com/badge/aafqaq/codex-lb-enhanced.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Codex LB Enhanced
What is Codex LB Enhanced?
Codex LB Enhanced is a self-hosted gateway that pools several upstream accounts behind Codex-compatible and OpenAI-compatible endpoints, with failover, session recovery, quota headers, and diagnostics. It is an open-source project on GitHub: https://github.com/aafqaq/codex-lb-enhanced.
Who is Codex LB Enhanced for?
Developers and small teams who run Codex or other OpenAI-compatible clients and want one self-hosted endpoint in front of several upstream accounts.
What can I do with Codex LB Enhanced?
4 use cases so far, for example: Run a self-hosted Codex account-pool gateway with Docker; Point Codex CLI at the gateway with a provider entry; Read API-key quota usage from /v1/usage in scripts. Each has steps and a copy-paste agent prompt.
What do I need to run Codex LB Enhanced?
Docker installed and running, or uv installed for running from source; Upstream ChatGPT accounts you are authorized to use, to add in the dashboard; A browser to open the dashboard at localhost:2455; Codex CLI, desktop, or IDE integration, or another OpenAI-compatible client, if you plan to connect one.
What are alternatives to Codex LB Enhanced?
Other hot AI repos in Software and DevOps: Reuse Before Build, Aibuildai LLM Posttrain Agent, FlowX, Codex Guard, Kyb.
Is Codex LB Enhanced safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.