Run OpenAI Codex Desktop on Intel macOS by converting the official macOS DMG into an x86_64 Electron app bundle.
This is an unofficial community project. Codex Desktop is a product of OpenAI.
Learn more about Codex: https://openai.com/codex/
The installer:
- Extracts the macOS
.dmg - Pulls out
app.asar(the Electron app) - Rebuilds native modules (
node-pty,better-sqlite3) for Electron x64 - Disables macOS‑only Sparkle auto‑update
- Downloads Electron v40 for darwin‑x64
- Repackages everything into a runnable
Codex.app - Applies a small patch so it doesn’t try to connect to a Vite dev server
- Intel Mac (x86_64)
- Node.js 20+ and npm
- Python 3
- Xcode Command Line Tools (
xcode-select --install) - Homebrew (for
p7zipandcurl)
Install dependencies:
brew install p7zip curlYou also need the Codex CLI installed:
npm i -g @openai/codexgit clone https://github.com/<your-user>/codex-intel.git
cd codex-intel
chmod +x install.sh
./install.sh /path/to/Codex.dmgIf you have the DMG URL, you can pass it directly:
./install.sh https://example.com/Codex.dmgThe installer creates:
./codex-app/Codex.app
Launch it from Finder or:
./codex-app/Codex.app/Contents/MacOS/Electron --no-sandboxOr use the helper script:
./start.sh- Auto‑update is disabled (Sparkle is macOS‑only and removed).
- The app may show warnings about
url.parsedeprecation — safe to ignore. - The app expects the Codex CLI on your PATH. If you installed it globally, that’s already done.
App opens a blank window
- Make sure the patch applied (installer output should say “patched main.js”).
Native module load error
- Delete
codex-app/and reruninstall.sh.
Gatekeeper warning
- Right‑click the app → Open (once) to allow it.
This project does not distribute OpenAI software. It automates the same conversion steps a user would perform locally using their own DMG.
MIT