feat: add codex adapter module with per-key candidate routing#642
Open
Kayphoon wants to merge 1 commit into
Open
feat: add codex adapter module with per-key candidate routing#642Kayphoon wants to merge 1 commit into
Kayphoon wants to merge 1 commit into
Conversation
Kayphoon
force-pushed
the
codex/codex-adapter
branch
4 times, most recently
from
June 16, 2026 17:00
06a7c41 to
3c99e51
Compare
Codex adapter module for Aether that allows dedicated API keys to route requests through a configurable chain of global models with Responses format conversion support. Backend: - codex_adapter module: config, runtime config, planner, request guard, selection (priority/sticky/load-balance scheduling), compatibility checks - Multi-model iteration in candidate_source.rs: wraps upstream priority/ deferred page pagination inside an outer model loop, each model gets its own priority pass, format scan, and fallback - Auth gate: dedicated key guard carrying feature_settings through auth resolution, CodexAdapter rejection variant in ccswitch - Admin routes: codex-adapter-compatibility endpoint in global models, module config validation on system config save - State: codex adapter runtime config cache with write invalidation Frontend: - CodexAdapter admin module page with route candidate table, drag-reorder priority management, scheduling mode selection - API layer and router integration
Kayphoon
force-pushed
the
codex/codex-adapter
branch
from
June 16, 2026 17:13
3c99e51 to
9dd9f38
Compare
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.
Adds a Codex Adapter module that lets dedicated API keys route requests through a configurable chain of global models with Responses format conversion support.
Backend (Rust)
codex_adaptermodule: config, runtime config, planner, request guard, selection (priority/sticky/load-balance scheduling), compatibility checkscandidate_source.py: wraps upstream priority/deferred page pagination inside an outer model loop — each model gets its own priority pass, format scan, and fallbackfeature_settingsthrough auth resolution,CodexAdapterrejection variant in ccswitch/api/admin/models/global/codex-adapter-compatibilityendpoint, module config validation on system config saveFrontend (Vue/TS)
modules-codex-adapter.ts) and router integrationMerge adaptation: Adapted codex adapter's multi-model iteration to work with upstream's new priority-page/deferred-page pagination in
candidate_source.rs.Verification: 584 admin tests, 130 planner tests, 22 codex adapter backend tests, 4 candidate source tests pass. Frontend type-checks and builds cleanly.