This repository is a Linux-focused fork of
sybil-solutions/codex-shim and the companion
adapter for
rabesss/codex-linux.
Keep changes in this repository when they concern:
- CLIProxyAPI discovery and route metadata;
- Codex Responses, streaming, compaction, image, or tool translation;
- namespace-tool flattening/restoration;
- credential resolution and loopback service behavior;
- generated catalog/config/profile helpers.
Keep Desktop picker, fork/resume payloads, Browser feature exposure, ASAR patches, packaging, and installed-app verification in the companion Desktop repository.
patch-app and restore-app remain for legacy overlay compatibility. Do not
expand them as the primary integration path.
The expected remotes are:
upstream https://github.com/sybil-solutions/codex-shim.git
fork https://github.com/rabesss/codex-shim.git
Before rebasing or merging upstream:
- Fetch
upstream, then reviewgit log --left-right main...upstream/mainand classify each upstream change against the fork-owned implementation. - Preserve loopback/Host-header security checks and credential behavior.
- Re-run translation tests, especially streaming and namespace tools.
- Re-run the cross-repository Desktop fork/resume/Browser smoke path.
- Keep official OpenAI routing direct in the companion Desktop setup.
CLIProxyAPI is the provider source of truth. Prefer live discovery. Bootstrap rows and capability overrides are fallback metadata only and should contain no provider endpoints beyond the local aggregator, no account identifiers, and no credential values.
After matrix changes:
codex-shim desktop write-models --output /tmp/models.json
codex-shim --settings /tmp/models.json generate
codex-shim --settings /tmp/models.json listInspect generated JSON for duplicate slugs, unsupported capabilities, personal data, and secret-shaped fields before publishing.
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install -e ".[dev]"
python3 -m pytest -q
python3 -m compileall -q codex_shim
git diff --checkFor translation changes, include focused coverage for request history, streaming deltas, terminal events, and returned tool-call shape. For Desktop integration changes, also run the companion repository's custom-model feature tests and installed routing verifier.
- Confirm all tracked documentation uses the current companion repository and no removed branch or legacy Linux wrapper.
- Confirm generated files, logs, auth data, request dumps, and local service files are untracked.
- Scan tracked Markdown and fixtures for personal paths, account ids, tokens, and credential values.
- Run the full test suite and
git diff --check. - Commit the shim independently and record the companion Desktop commit used for integration validation.
- Push only a clean, reviewed
maincommit to the fork remote.
../README.md: public architecture, setup, and limitations.linux-desktop.md: integrated Desktop setup and smoke tests.AUTO_ROUTER.md: optional classifier/router behavior.../CONTRIBUTING.md: contributor workflow and reports.