This repository provides a Windows-only runner that extracts the macOS Codex DMG and runs the Electron app on Windows. It unpacks app.asar, swaps mac-only native modules for Windows builds, and launches the app with a compatible Electron runtime. It does not ship OpenAI binaries or assets; you must supply your own DMG and install the Codex CLI.
- Windows 10/11
- Node.js
- 7-Zip (
7zin PATH) - If 7-Zip is not installed, the runner will try
wingetor download a portable copy - Codex CLI installed (
npm i -g @openai/codex, using a node package manager (in my case fnm) can cause issues regarding detecting codex-cli) - git (for codex desktop)
If your build fails due to missing Spectre-mitigated libraries, install the option shown below in the Visual Studio Installer.
- Place your DMG in the repo root (default name
Codex.dmg). - Run:
.\scripts\run.ps1Or explicitly:
.\scripts\run.ps1 -DmgPath .\Codex.dmgOr use the shortcut launcher:
run.cmdThe script will:
- Extract the DMG to
work/ - Build a Windows-ready app directory
- Auto-detect
codex.exe - Launch Codex
- WiX Toolset (for MSI)
- NSIS (for EXE)
- Desktop development with C++ (
- If your build fails due to missing Spectre-mitigated libraries, install the option shown below in the Visual Studio Installer.
- .Net sdk 8
One-shot build (runs run.ps1, then produces installer\out\CodexDesktop-setup.exe):
pwsh -NoProfile -ExecutionPolicy Bypass -File .\scripts\build-setup-exe.ps1Skip re-extraction if work/ is already populated:
pwsh -NoProfile -ExecutionPolicy Bypass -File .\scripts\build-setup-exe.ps1 -ReuseAllow building the installer without a real Codex CLI present (CI-only, uses a placeholder):
pwsh -NoProfile -ExecutionPolicy Bypass -File .\scripts\build-setup-exe.ps1 -AllowMissingCodexCliOutput:
installer\out\CodexDesktop-setup.exe
- This is not an official OpenAI project.
- Do not redistribute OpenAI app binaries or DMG files.
- The Electron version is read from the app's
package.jsonto keep ABI compatibility.
If the project folder becomes too large, you can clear all build artifacts and temporary files with:
Remove-Item -Recurse -Force work, installer\out, codexd-launcher\bin, codexd-launcher\obj -ErrorAction SilentlyContinueMIT (For the scripts only)


