Repository navigation
Conversation
golamrabbi696
added a commit
to golamrabbi696/EzRouter
that referenced
this pull request
Aug 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a dedicated Codex Native provider path that keeps Codex CLI in control of
agent behavior, sessions, tools, compaction, and model metadata. 9Router only
handles client authentication, account selection, quota-aware failover, proxy
selection, and protocol relay.
future fields without passing through the Universal translator
and ChatGPT account headers from the selected 9Router Codex account
endpoints under
/v1/codexbackpressure, HTTP CONNECT, SOCKS, and strict-proxy handling
ModelInfometadata into deterministic account cohorts and cachecatalogs per client version/account/ETag
lease lifecycle tracking, and safe pre-output failover
auxiliary-operation transport failures
~/.codex/auth.jsonthe Codex dashboard card
CLI, Docker, and the native development launcher
Motivation
Codex CLI's native model metadata and reasoning levels (including
maxandultra) must be handled as a provider protocol, not translated as Universalchat traffic. Responses requests do not always repeat
client_version, so thenative relay resolves it from the request, installed Codex CLI, or the most
recent valid catalog instead of returning a false
codex_catalog_unavailable503.Safety properties
hop-by-hop headers never reach the upstream
reasoning, tool calls, images, or output items disable replay for that turn
stale and absence of any valid catalog is explicit
Verification
cohort switching, and handshake header filtering
pnpm buildpassed from an isolated worktree based on currentorigin/master, including all 133 routes, build traces, and standalonegateway dependency packaging