# codexjx **Repository Path**: acenoly/codexjx ## Basic Information - **Project Name**: codexjx - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-08-20 - **Last Updated**: 2026-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

Codex App Mirror — mirror pipeline

codex-app-mirror logo

codex-app-mirror

把官方 Codex 桌面应用安装包,原样、可校验、国内可达地镜像到 GitHub Release,
并为 macOS 提供 Sparkle 增量自动更新源。

Official website R2 cumulative installer downloads GitHub stars Latest update time Mirror workflow Probe every 15 minutes macOS Sparkle auto-update Microsoft Store ProductId 9PLM9XGG6VKS macOS arm64 and x64 MIT License

官网 · Official Website · 中文 · English

🖥️ 不想手动下载?Codex App Manager 是基于本镜像的桌面客户端——一键安装、增量更新、干净卸载官方 Codex。
🖥️ Prefer one click? Codex App Manager — the desktop client built on this mirror — installs, updates and uninstalls official Codex for you.

---
DuckCoding 本项目由 DuckCoding 赞助支持
为 Claude Code / Codex / Gemini CLI 提供按量计费的 API 中转服务。
Sponsored by DuckCoding — a pay-as-you-go API relay for Claude Code / Codex / Gemini CLI.
--- # 中文 `codex-app-mirror` 是面向 OpenAI Codex 桌面应用的安装包镜像与分发项目,用于在 Microsoft Store 或官方下载不便时提供稳定且可校验的获取渠道。项目仅做镜像,不构建、不修改、不重打包:Stable 通道将官方 Windows MSIX 与 macOS DMG 原样发布到 GitHub Release,并经 CDN 短链分发;Linux 版统一 ChatGPT 桌面应用(包含 Codex)在 Preview 期间只进入独立 GitHub prerelease。macOS 端另提供 Sparkle 增量更新 appcast,由下游 [Codex App Manager](#cn-ecosystem) 客户端消费。 ## 能力一览 | 能力 | 说明 | |---|---| | 🪟 **Windows MSIX** | 直接镜像 Microsoft Store 包,x64 稳定发布,ARM64 纳入 manifest 与镜像路径 | | 🍎 **macOS DMG** | Apple Silicon + Intel 双架构,官方原包,零改动 | | 🐧 **Linux Preview** | Ubuntu / Debian 的 DEB 与 Fedora 的 RPM,x64 + ARM64;仅发布 GitHub prerelease,不进入 CDN/latest | | 🔄 **增量自动更新** | macOS Sparkle appcast + delta 差量包,pinned EdDSA 签名字节级保真 | | 🌏 **国内可达** | Cloudflare R2 全球节点 + 中国大陆自动分流到 S3 副镜像,同一条短链全自动选路 | | ⏱️ **15 分钟探测** | Cloudflare Cron 主调度 + GitHub Actions 6 小时兜底,上游一变就发版 | | 🔐 **可校验** | 每个 Release 附 `SHA256SUMS.txt` 与 `release-manifest.json` 上游指纹 | ## 下载与安装 打开 [最新 GitHub Release](https://github.com/Wangnov/codex-app-mirror/releases/latest),下载你的平台对应文件: - **Windows x64**:`OpenAI.Codex_..._x64__2p2nqsd0c76g0.Msix` - **Windows B2B 引导脚本**:`Install-Codex-Windows.ps1`(安装、模型注入与首次启动临时 TUN) - **Windows ARM64**:`OpenAI.Codex_..._arm64__2p2nqsd0c76g0.Msix`(当官方下载 URL 已解析时发布) - **Apple Silicon Mac**:`Codex-mac-arm64.dmg` - **Intel Mac**:`Codex-mac-x64.dmg` ### Linux Preview OpenAI 于 2026-08-11 发布了统一 ChatGPT 桌面应用的 Linux Preview,其中包含 ChatGPT、ChatGPT Work 与 Codex。Linux 包不会混入上面的 Stable Latest;请到 [GitHub Releases](https://github.com/Wangnov/codex-app-mirror/releases) 查找 `codex-app-linux-preview-<版本>` prerelease: - **Ubuntu 24.04/26.04、Debian 13**:`chatgpt_<版本>_amd64.deb` 或 `chatgpt_<版本>_arm64.deb` - **Fedora 43/44**:`chatgpt-<版本>-1.x86_64.rpm` 或 `chatgpt-<版本>-1.aarch64.rpm` Linux Preview 是显式隔离的第三通道:`stable | beta | linux-preview`。它按需输入精确版本,验证 OpenAI APT/RPM 仓库签名与四个包的 SHA-256 后发布;不会推进 GitHub Latest,不会上传 R2/S3,也不创建任何 `latest/linux*` 短链。官方包安装后会配置 OpenAI 自己的更新仓库,因此后续自动更新默认直接来自 OpenAI。 或直接使用 CDN 短链(推荐,**自动按你的网络选最优节点**——国内走 S3 副镜像,海外走 R2,只保留当前最新版): | 平台 | 短链 | |---|---| | Windows x64(兼容别名) | | | Windows x64 | | | Windows ARM64(当前版本可用时) | | | Apple Silicon Mac | | | Intel Mac | | | 校验和 | | | Release 指纹 | | 需要**历史版本**时,到 [GitHub Releases](https://github.com/Wangnov/codex-app-mirror/releases) 按 release/tag 查找;短链只指向最新版。建议同时下载 `SHA256SUMS.txt` 核对文件完整性。 ## macOS 自动更新 macOS 版除了手动下载 DMG,还支持 **Sparkle 增量自动更新**。下游的 Codex App Manager 客户端会订阅本镜像的 appcast,自动检查新版并**只下载版本间的 delta 差量包**,而不是每次重拉完整安装包: - Apple Silicon: - Intel: 镜像**逐字节复制**官方 Sparkle 归档和 OpenAI 的 EdDSA 签名,只改写 `enclosure` 的下载地址指向镜像。由于 EdDSA 签的是归档字节本身,只要镜像与官方字节级一致,**原始签名依然有效**——本镜像不会、也无法伪造签名。如果客户端没有匹配的 delta,会自动回退到完整归档。 ## 工作原理 ### 探测 → 比对 → 发布 每次运行先做一次轻量探测,只有上游真的变了才下载和发版: - **Windows**:通过 Microsoft Store DisplayCatalog 探测 x64 / ARM64 包元数据,再用 FE3 metadata 解析可下载 MSIX moniker 和临时 Microsoft CDN URL;ARM64 若暂未解析到 URL,会以 `catalog-only` 状态记录在 manifest - **macOS**:对官方 DMG 与 appcast 发请求,读取 `ETag` / `Last-Modified` / `Content-Length` 与 appcast 版本字段 - **Linux Preview**:使用固定公钥验证官方 APT `InRelease` 与 RPM `repomd.xml`,解析带版本的四个包 URL,并对下载结果执行包名、版本、架构、文件清单、嵌入公钥及 RPM 包签名门禁 - **比对**:与最新 Release 的 `release-manifest.json` 做稳定字段比较 没有变化就在探测阶段结束,不下载、不发重复 Release。任一平台有变化,则下载所有可下载的安装包、生成校验和与 manifest、构建 Sparkle appcast,发布新的 GitHub Release。 ### 双层镜像 + 按地域分流 发布后,资产会同步到两套镜像,由一个 Cloudflare Worker 路由: - **全球**:Cloudflare R2(`codexapp-r2.agentsmirror.com`) - **中国大陆**:S3 副镜像,通过预签名 URL 下发 路由器读取请求的 `CF-IPCountry`,把中国大陆访客分流到 S3 副镜像,其余走 R2——**对用户透明,同一条短链全自动选路**。 ### 调度 - **主调度**:Cloudflare Cron Trigger,每 15 分钟触发一次 `mirror.yml`(`workflow_dispatch`) - **兜底**:GitHub Actions 自带 `schedule`,每 6 小时一次(`11 */6 * * *`)——防止 GitHub 计划任务被延迟或跳过时漏检 ### 生态:Codex App Manager 本镜像不只是给人手动下载——它是 **Codex App Manager** 桌面客户端的更新后端。客户端在本地检测平台与能力,并消费这里的 Sparkle appcast 完成安装与增量更新。镜像保持窄而稳,把"分发与更新"这层基础设施沉淀下来。 ➡️ 官网:[codexapp.agentsmirror.com](https://codexapp.agentsmirror.com) · 仓库:[Wangnov/Codex-App-Manager](https://github.com/Wangnov/Codex-App-Manager) ## 版本号说明 Release 以 Codex 应用内部版本聚合,而不是以 Windows Store 的四段 MSIX 包版本命名。Windows MSIX 包名里的四段版本(例如 `26.623.5175.0`)仍会记录在 release body 和 `release-manifest.json` 的平台包字段里;Codex 内部版本来自 Windows 包内的应用 `package.json`,并与 macOS `CFBundleShortVersionString` 对齐,例如 `26.623.41415`。 Release tag 与标题使用内部版本: ```text codex-app-26.623.41415 Codex App Mirror 26.623.41415 ``` 当某个平台尚未发布同一内部版本时,会先创建该内部版本的 prerelease,并在 body 的“版本与发布时间”表格中把缺失平台标记为待官方发布。已发布的架构会立即推进 R2/S3 `latest/*` 短链;尚未发布该版本的架构会继续指向它自己的当前 latest。四个架构补齐后,同一个 Release 会被补全并提升为正式 latest。 Windows x64 是 Windows 平台的必需包;Windows ARM64 是可选架构。如果 Microsoft Store 在探测和下载之间发生 ARM64 rollout 漂移,本轮会跳过本地 ARM64 上传,并保留上一份校验匹配的 `latest/win-arm64`;后续探测到稳定包时再补上。 当前 Windows 包名形如: ```text OpenAI.Codex__x64__2p2nqsd0c76g0.Msix OpenAI.Codex__arm64__2p2nqsd0c76g0.Msix ``` ## Windows 企业 GUI 启动器 `windows-launcher/` 提供精简的 Windows x64 Tauri GUI,视觉风格和业务接口与 Agent Relay 启动器保持一致。它只保留登录、注册、Token 用量概览与趋势、子账户创建与用量,以及 Codex 安装、配置、打开和关闭;不包含图片、钱包、备忘录、资料库和普通用户后端设置。 生产后端固定为 `https://api.lotjc.com/sub`,接口保持不变:`/v1/auth/login`、`/v1/auth/register`、`/v1/usage`、`/v1/children`、`/v1/children/{id}/usage` 和 `/v1/codex/lease`。启动器不调用 `/v1/install-proxy/lease`。`.github/workflows/windows-launcher.yml` 在 Windows runner 上生成 `Codex-Enterprise-Launcher-Setup-x64.exe`;搭建或发布 Agent 也可以在 `windows-launcher/` 执行 `npm ci` 和 `npm run build:windows`。 GUI 不会修改或重签官方 MSIX。它通过 `https://codexapp.agentsmirror.com/latest/manifest` 检查镜像站最新 Windows x64 包版本,与本机 AppX 四段版本比较;发现新版时显示“更新 Codex”。安装和更新都会校验清单 SHA-256、Authenticode 签名与 Microsoft 签名者,再通过 `Add-AppxPackage` 安装。模型配置仍由业务后端注入,并仅在第一次成功打开 Codex 时启用临时 TUN。Codex 连续运行 30 秒后保留 TUN 60 秒再清理,另有 15 分钟硬超时。 ### PowerShell 备用入口 Release 同时提供独立的 `Install-Codex-Windows.ps1`。它不会修改或重签官方 MSIX,而是在 Windows 本机依次执行: 1. 调用业务后端 `/v1/auth/login` 和 `/v1/codex/lease` 获取当前用户的模型配置; 2. 备份已有 `~/.codex/config.toml` 和 `auth.json`,再写入 `relay` provider、模型和 API Key; 3. 下载并验证官方签名的 Codex MSIX,然后安装; 4. 仅在第一次成功打开 Codex 时下载固定 Mihomo YAML,并以管理员权限启用 TUN; 5. Codex 连续运行 30 秒后再保留 TUN 60 秒,随后关闭 Mihomo并删除临时 YAML;另有 15 分钟硬超时。 Release 中同时下载 `install.ps1`、`uninstall.ps1` 和 `Install-Codex-Windows.ps1`,放在同一目录。请在该目录的**管理员 PowerShell** 中运行: ```powershell # 安装(会交互式询问 B2B 邮箱和密码,后端地址已预置) .\install.ps1 # 卸载(默认要求确认) .\uninstall.ps1 ``` 如果执行策略阻止脚本,可仅对当前窗口临时放行: ```powershell Set-ExecutionPolicy -Scope Process Bypass ``` 安装器不调用 `/v1/install-proxy/lease`,临时 TUN 直接使用固定 YAML。重复安装默认不会再次开启首次启动 TUN;如需排障,可增加 `-ForceFirstLaunchTun`。卸载会停止临时 Mihomo、卸载 AppX、清理首次启动状态,并恢复安装前备份的 Codex 配置;使用 `-KeepCodexConfig` 可保留当前配置。 > 该引导器目前只支持 Windows x64。官方 MSIX 仍保持字节级原样,脚本属于单独的 Release 资产。 ## Windows 提示「已被系统管理员阻止」怎么办 如果双击 `.Msix` 时提示“你的系统管理员已阻止此程序。有关详细信息,请与你的系统管理员联系。”,通常不是下载文件损坏,而是当前系统策略不允许从商店外安装 MSIX / AppX 包,或者应用安装器 / AppX 部署服务被管理员禁用。 可以按这个顺序排查: - 优先尝试从 [Microsoft Store 官方页面](https://apps.microsoft.com/detail/9plm9xgg6vks)安装 Codex App。 - 如果这是你自己的电脑,确认系统允许安装任意来源应用,并确认应用安装器可用。 - 需要看更详细错误时,可以在管理员终端里运行:`Add-AppxPackage -Path .\OpenAI.Codex_..._x64__2p2nqsd0c76g0.Msix` - 如果这是公司、学校或其他受组织策略管理的设备,需要联系设备管理员放行;本镜像不会也不能绕过这些本机安装策略。 ## 上游来源 macOS DMG 使用 OpenAI Codex 桌面安装器的官方静态地址,并以官方 appcast 锁定版本: - `https://persistent.oaistatic.com/codex-app-prod/Codex.dmg` - `https://persistent.oaistatic.com/codex-app-prod/Codex-latest-x64.dmg` Windows MSIX 使用 Microsoft Store metadata 解析: - **DisplayCatalog**:查询 ProductId `9PLM9XGG6VKS` - **FE3**:获取与当前 Windows Desktop x64 条件匹配的包 metadata - **Microsoft CDN**:下载 FE3 返回的临时包 URL 仓库内的解析器是纯 .NET 实现,不依赖 `StoreLib` 这类第三方 Store helper 包。 Linux Preview 使用 OpenAI 官方 APT/RPM 仓库元数据,并固定仓库签名公钥指纹 `3BFA0E4AE8B8CC16A2D9BA684A3B4A566C4660E4`。官方网页入口位于 ;仓库探测结果只发布到独立 prerelease。 ## 这个仓库不会做什么 - 不修改 Codex 安装包 - 不破解 Microsoft Store 或 OpenAI 的授权逻辑 - 不伪造或重新计算 Sparkle 签名(只字节级复制官方签名) - 不保留 Microsoft CDN 临时 URL 作为长期下载地址 - 不保证安装包能绕过你本机的 Windows AppX / MSIX 安装策略 - 不替代 OpenAI、Microsoft 或 Microsoft Store 的官方分发渠道 ## 致谢 - **[LINUX DO](https://linux.do/)** 社区——下载链路、安装体验、校验结果的讨论与反馈都汇聚于此。 - **中国科学院高能物理研究所(IHEP)**——提供国内 S3 镜像存储,让中国大陆的下载与更新低延迟直达。 ## Star History

Star History Chart

## 许可 [MIT](./LICENSE)。本项目与 OpenAI、Microsoft 无隶属或背书关系。 --- # English `codex-app-mirror` is an installer mirror and distribution project for the OpenAI Codex desktop app, providing a stable, verifiable way to obtain it when the Microsoft Store or official downloads are inconvenient. The project only mirrors — it does not build, modify, or repackage packages. Stable publishes official Windows MSIX and macOS DMG assets verbatim to GitHub Releases and CDN short links. During preview, the unified ChatGPT Linux desktop app (including Codex) is isolated in GitHub prereleases only. For macOS the project also provides a Sparkle incremental-update appcast, consumed by the downstream [Codex App Manager](#en-ecosystem) client. ## At a glance | Capability | Detail | |---|---| | 🪟 **Windows MSIX** | Mirrored from the Microsoft Store package: x64 is published, ARM64 is tracked in the manifest and mirror paths | | 🍎 **macOS DMG** | Apple Silicon + Intel, official packages, unmodified | | 🐧 **Linux Preview** | DEB for Ubuntu/Debian and RPM for Fedora, x64 + ARM64; GitHub prerelease only, never CDN/latest | | 🔄 **Incremental auto-update** | macOS Sparkle appcast + delta enclosures, pinned EdDSA signatures kept byte-for-byte | | 🌏 **Reachable in China** | Cloudflare R2 globally + auto-failover to an S3 mirror for mainland China; one link, auto-routed | | ⏱️ **15-minute probe** | Cloudflare Cron primary + GitHub Actions 6-hour fallback; releases only when upstream changes | | 🔐 **Verifiable** | Every release ships `SHA256SUMS.txt` and a `release-manifest.json` of upstream fingerprints | ## Download & install Open the [latest GitHub Release](https://github.com/Wangnov/codex-app-mirror/releases/latest) and grab your platform's asset: - **Windows x64**: `OpenAI.Codex_..._x64__2p2nqsd0c76g0.Msix` - **Windows B2B bootstrap**: `Install-Codex-Windows.ps1` (install, model injection, and temporary first-launch TUN) - **Windows ARM64**: `OpenAI.Codex_..._arm64__2p2nqsd0c76g0.Msix` (published when the official download URL resolves) - **Apple Silicon Mac**: `Codex-mac-arm64.dmg` - **Intel Mac**: `Codex-mac-x64.dmg` ### Linux Preview OpenAI announced the unified ChatGPT desktop app for Linux Preview on 2026-08-11, including ChatGPT, ChatGPT Work, and Codex. Linux packages are not mixed into Stable Latest. Browse [GitHub Releases](https://github.com/Wangnov/codex-app-mirror/releases) for a `codex-app-linux-preview-` prerelease: - **Ubuntu 24.04/26.04 and Debian 13**: `chatgpt__amd64.deb` or `chatgpt__arm64.deb` - **Fedora 43/44**: `chatgpt--1.x86_64.rpm` or `chatgpt--1.aarch64.rpm` Linux Preview is an explicitly isolated third channel: `stable | beta | linux-preview`. An on-demand run requires an exact version, verifies OpenAI's signed APT/RPM metadata and all four package checksums, and publishes without advancing GitHub Latest, writing R2/S3, or creating `latest/linux*` routes. The official packages configure OpenAI's own update repository after installation, so subsequent automatic updates come directly from OpenAI by default. Or use the CDN short links (recommended — **auto-routed to the fastest node**: mainland China via the S3 mirror, elsewhere via R2; latest version only): | Platform | Short link | |---|---| | Windows x64 (compat alias) | | | Windows x64 | | | Windows ARM64 (when available for the current version) | | | Apple Silicon Mac | | | Intel Mac | | | Checksums | | | Release manifest | | For **older versions**, browse [GitHub Releases](https://github.com/Wangnov/codex-app-mirror/releases) by release/tag — the short links only point at the latest. Download `SHA256SUMS.txt` too if you want to verify integrity. ## macOS auto-update Beyond manual DMG downloads, macOS supports **Sparkle incremental auto-update**. The downstream Codex App Manager client subscribes to this mirror's appcast and downloads only the **delta between versions** rather than the full installer each time: - Apple Silicon: - Intel: The mirror copies the official Sparkle archives and OpenAI's EdDSA signatures **byte-for-byte**, rewriting only the `enclosure` URL to point at the mirror. Because EdDSA signs the archive bytes themselves, the original signature stays valid as long as the mirror is byte-identical — the mirror never forges or recomputes a signature. Clients with no matching delta fall back to the full archive. ## How it works ### Probe → compare → release Each run starts with a lightweight probe and only downloads/releases when upstream actually changed: - **Windows**: query Microsoft Store DisplayCatalog for x64 / ARM64 package metadata, then resolve downloadable MSIX monikers + temporary Microsoft CDN URLs via FE3 metadata; ARM64 is recorded as `catalog-only` until its URL resolves - **macOS**: request the official DMGs and appcast, read `ETag` / `Last-Modified` / `Content-Length` and appcast version fields - **Linux Preview**: verify the official APT `InRelease` and RPM `repomd.xml` with a pinned key, resolve four versioned packages, then gate package name, version, architecture, file list, embedded key, and RPM package signatures - **Compare**: diff those stable fields against the latest release's `release-manifest.json` No change → it stops after the probe. Any platform changes → it downloads every downloadable installer, writes checksums + manifest, builds the Sparkle appcasts, and publishes a new GitHub Release. ### Two-tier mirror + geo routing After release, assets sync to two mirrors fronted by a Cloudflare Worker: - **Global**: Cloudflare R2 (`codexapp-r2.agentsmirror.com`) - **Mainland China**: an S3 mirror served via presigned URLs The router reads `CF-IPCountry` and sends mainland-China visitors to the S3 mirror, everyone else to R2 — transparent to users, one short link, auto-routed. ### Scheduling - **Primary**: a Cloudflare Cron Trigger fires `mirror.yml` (`workflow_dispatch`) every 15 minutes - **Fallback**: GitHub Actions' own `schedule` runs every 6 hours (`11 */6 * * *`), in case GitHub's scheduler is delayed or skipped ### Ecosystem: Codex App Manager This mirror isn't only for manual downloads — it's the update backend for the **Codex App Manager** desktop client, which detects platform/capabilities locally and consumes the Sparkle appcast here for install and incremental updates. The mirror stays narrow and stable, owning the "distribution + update" infrastructure layer. ➡️ Website: [codexapp.agentsmirror.com](https://codexapp.agentsmirror.com) · Repo: [Wangnov/Codex-App-Manager](https://github.com/Wangnov/Codex-App-Manager) ## Version numbers Releases are grouped by the Codex app's internal version, not by the four-part Windows Store MSIX package version. The Windows package version from the MSIX moniker (for example `26.623.5175.0`) is still recorded in the release body and `release-manifest.json` as platform package metadata. The Codex app version is read from the Windows package's app `package.json` and aligned with macOS `CFBundleShortVersionString`, for example `26.623.41415`. Release tags and titles use the internal version: ```text codex-app-26.623.41415 Codex App Mirror 26.623.41415 ``` If one platform has not yet published the same internal version, the mirror creates a prerelease for that internal version and marks the missing platform as waiting in the "Versions and publish times" table. Architectures that have shipped immediately advance the R2/S3 `latest/*` short links; architectures that have not shipped that version keep pointing at their own current latest package. Once all four architectures arrive, the same Release is completed and promoted to latest. Windows x64 is the required Windows package; Windows ARM64 is an optional architecture. If the Microsoft Store ARM64 rollout drifts between probe and download, that run skips the local ARM64 upload and preserves the previous checksum-matching `latest/win-arm64`; it is replaced once a stable ARM64 package is detected. ## Windows enterprise GUI launcher `windows-launcher/` contains a streamlined Windows x64 Tauri GUI using the same visual language and unchanged business API as the Agent Relay launcher. It keeps only sign-in, registration, Token usage summaries and trends, child-account creation and usage, plus Codex installation, configuration, launch, and close controls. Image, wallet, memo, product portal, and end-user backend settings are intentionally excluded. The production backend is fixed to `https://api.lotjc.com/sub`. The launcher uses `/v1/auth/login`, `/v1/auth/register`, `/v1/usage`, `/v1/children`, `/v1/children/{id}/usage`, and `/v1/codex/lease`; it never calls `/v1/install-proxy/lease`. `.github/workflows/windows-launcher.yml` produces `Codex-Enterprise-Launcher-Setup-x64.exe` on a Windows runner. A build agent may also run `npm ci` followed by `npm run build:windows` in `windows-launcher/`. The GUI neither modifies nor re-signs the official MSIX. It reads `https://codexapp.agentsmirror.com/latest/manifest`, compares the latest Windows x64 package version with the locally installed four-part AppX version, and displays an “Update Codex” action when newer. Both install and update verify the manifest SHA-256, Authenticode signature, and Microsoft signer before invoking `Add-AppxPackage`. It injects the relay profile returned by the existing backend and enables temporary TUN only for the first successful Codex launch. TUN remains active for a 60-second grace period after Codex runs continuously for 30 seconds, with a separate 15-minute hard timeout. ### PowerShell fallback Each Release also includes a separate `Install-Codex-Windows.ps1`. It does not modify or re-sign the official MSIX. On Windows it: 1. calls `/v1/auth/login` and `/v1/codex/lease` on your business backend; 2. backs up existing `~/.codex/config.toml` and `auth.json`, then injects the relay model configuration; 3. downloads, signature-checks, and installs the official MSIX; 4. downloads the fixed Mihomo YAML and enables an elevated TUN only for the first successful Codex launch; 5. stops Mihomo and deletes temporary YAML after Codex runs for 30 seconds plus a 60-second grace period, with a 15-minute hard timeout. Download `install.ps1`, `uninstall.ps1`, and `Install-Codex-Windows.ps1` from the Release into one directory. Run these commands from an **administrator PowerShell** in that directory: ```powershell # Install; B2B credentials are prompted and the backend is preconfigured. .\install.ps1 # Uninstall; confirmation is requested by default. .\uninstall.ps1 ``` If execution policy blocks the files, enable them only for the current shell with `Set-ExecutionPolicy -Scope Process Bypass`. The installer never calls `/v1/install-proxy/lease`; use `-ForceFirstLaunchTun` only for troubleshooting. Uninstall stops managed Mihomo, removes the AppX and first-launch state, and restores backed-up Codex configuration. Pass `-KeepCodexConfig` to preserve current configuration. The bootstrap currently supports Windows x64; the official MSIX remains byte-for-byte unchanged. ## Windows "blocked by your system administrator" If double-clicking the `.Msix` shows "This app has been blocked by your system administrator", the package is usually not damaged — Windows is blocking sideloaded MSIX / AppX installation, or App Installer / AppX deployment is disabled by policy. - Prefer the official [Microsoft Store page](https://apps.microsoft.com/detail/9plm9xgg6vks) first. - On a personal PC, check that Windows allows apps from outside the Store and that App Installer is available. - For a detailed error, run from an elevated terminal: `Add-AppxPackage -Path .\OpenAI.Codex_..._x64__2p2nqsd0c76g0.Msix` - On managed (work/school) devices, ask the administrator to allow the install. This mirror does not and cannot bypass local install policies. ## Upstream sources macOS DMGs use OpenAI's official static URLs, version-pinned via the official appcast: - `https://persistent.oaistatic.com/codex-app-prod/Codex.dmg` - `https://persistent.oaistatic.com/codex-app-prod/Codex-latest-x64.dmg` The Windows MSIX is resolved from Microsoft Store metadata (DisplayCatalog → FE3 → Microsoft CDN). The resolver is implemented directly in .NET and does not depend on third-party Store helpers such as `StoreLib`. Linux Preview uses OpenAI's official APT/RPM repository metadata with pinned signing-key fingerprint `3BFA0E4AE8B8CC16A2D9BA684A3B4A566C4660E4`. The official web entry point is ; repository snapshots are published only to isolated prereleases. ## Non-goals - Does not modify Codex installer packages - Does not bypass Microsoft Store or OpenAI authorization - Does not forge or recompute Sparkle signatures (official signatures are copied verbatim) - Does not preserve Microsoft CDN temporary URLs as permanent links - Does not guarantee your local Windows AppX / MSIX policy will accept the package - Is not a replacement for official OpenAI / Microsoft / Microsoft Store distribution ## Acknowledgements - **[LINUX DO](https://linux.do/)** community — the home for feedback on download availability, install results, and checksums. - **Institute of High Energy Physics, Chinese Academy of Sciences (IHEP)** — provides the S3 mirror storage that keeps downloads and updates fast and reachable inside mainland China. ## Star History

Star History Chart

## License [MIT](./LICENSE). Not affiliated with or endorsed by OpenAI or Microsoft.