{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "aafqaq-codex-lb-enhanced--point-codex-cli-at-enhanced-gateway",
 "repo": "aafqaq/codex-lb-enhanced",
 "repo_url": "https://github.com/aafqaq/codex-lb-enhanced",
 "repo_slug": "aafqaq-codex-lb-enhanced",
 "title": "Point Codex CLI at the gateway with a provider entry",
 "page_title": "How to point Codex CLI at the gateway with a provider entry with Codex LB Enhanced",
 "summary": "Add a Codex LB Enhanced provider to config.toml so Codex routes through the pool.",
 "who": "A developer who uses the Codex CLI or IDE integration and wants long sessions to survive account quota limits and interruptions.",
 "problem": "Codex sessions break when one upstream account is exhausted or a WebSocket drops without a close frame.",
 "outcome": "Codex sends its Responses traffic through the gateway, with WebSocket support enabled and the provider selected by default.",
 "steps": [
  "Start the gateway and create an API key in the dashboard at http://localhost:2455.",
  "Open ~/.codex/config.toml and add the model, model_reasoning_effort, and model_provider lines from the README example.",
  "Add a [model_providers.codex-lb-enhanced] block with base_url set to http://127.0.0.1:2455/backend-api/codex, wire_api = \"responses\", supports_websockets = true, and requires_openai_auth = true.",
  "Replace base_url with your reverse-proxy address if you do not run the gateway on localhost.",
  "Start Codex and send one short prompt to confirm it reaches the gateway."
 ],
 "agent_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.",
 "agents": [
  "codex"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README example uses a specific model name, so change model and model_reasoning_effort to values your account supports.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "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"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The config file will hold a reference to an API key, so keep the file private and do not commit it to version control."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/aafqaq-codex-lb-enhanced/point-codex-cli-at-enhanced-gateway/",
 "md": "https://dedupedai.com/use-cases/aafqaq-codex-lb-enhanced/point-codex-cli-at-enhanced-gateway/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/aafqaq-codex-lb-enhanced--point-codex-cli-at-enhanced-gateway.json",
 "api_version": "v1"
}
