# Codex Overload Fix: a local relay that retries capacity errors before you see them

> A local Python relay sits between the Codex client and its endpoint and retries requests that fail with capacity errors before any output begins.

- Project: Codex Overload Fix by NewBeeM4n
- List: Built for AI
- Kind: tool
- Works with: Codex
- Noticed: 271 GitHub stars (when we found it)
- Added: 2026-11-25T18:10:19+00:00
- Web page: https://ai-news.ikangai.com/built/codex-overload-fix/

Codex Overload Fix is a single-file Python relay that uses only the standard library and runs on 127.0.0.1 between Codex and its endpoint. The README says Codex sometimes returns "Selected model is at capacity" as an error event inside an HTTP 200 stream, which status-code retry logic never sees. The relay parses the stream, matches overload markers such as server_is_overloaded, and re-sends the request. It does this only until output has begun. After that, events pass through untouched.

The Windows, macOS and Linux installers register the relay as a background service and point openai_base_url in config.toml at it. The uninstallers restore the original file byte for byte. The only requirement is Python 3.9+, with no dependencies. A Skill bundle and an optional local dashboard are also offered. The author measured one evening of real use: 71 requests, 82 retries absorbed, and no failures shown to the user. The project is MIT licensed.

The README is explicit about its limits. It cannot create server capacity, fix an exhausted quota or expired login, or restore the quality of a degraded model. The author says that moving to a different account made the largest difference in their own case, though that was a single observation. A November 16, 2026 update quotes a post by Tibo suggesting the upstream problem may be fixed, and the author calls the measurements historical.

## In the author's words

> A lightweight local relay that recognises capacity errors in Codex response streams and retries before output begins.

## When to reach for it

Anyone whose Codex turns stall on overload refusals can borrow the approach. Retry only before a stream commits, and measure request body size with the bundled capture tool before cutting context. The README reports that large request bodies were rejected far more often than small ones.

## See it

- [Codex Overload Fix](https://github.com/NewBeeM4n/codex-overload-fix)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
