English · العربية · 中文 · Français · Русский · Español
A native, fast, lightweight Codex Desktop in Rust for macOS and Linux, built with GPUI.
Install · Docs · Changelog · Contribute
codex-gpui is an open-source Rust port of the Codex section of the macOS ChatGPT app. It is for people who want a small, quick desktop client for OpenAI Codex. The app is built with GPUI and drives the real codex app-server over stdio, the same JSON-RPC transport that the original uses.
The goal is pixel parity with the original: the same layout, text, colors and icons, device pixel for device pixel.
- Pixel parity: a harness renders each screen headless and compares it with the original renderer; the page lists what is and is not proven.
- Real Codex backend: the app talks to
codex app-serverand does not reimplement Codex. - Full feature set: computer use, SSH, terminals, skills, connectors, ACP, cloud transport, sign-in, onboarding and the Security workbench.
- Menus and native links: permission menus, command-menu actions and deep links.
- In-app updates: release bundles, update policy and versions.
- Small and quick: it starts in 0.2 to 1.4 s and idles at 155 MB of memory (see Performance).
codex is the open-source OpenAI Codex CLI. codex-gpui is a front end for it: the app starts codex app-server and shows what it returns. You need a codex binary, and you sign in with your ChatGPT account or an API key (run codex once and choose Sign in with ChatGPT).
Install codex with one of these commands (from the Codex CLI README):
npm install -g @openai/codex # npm
brew install --cask codex # Homebrew
curl -fsSL https://chatgpt.com/codex/install.sh | sh # macOS and Linux installerThe app uses the first codex that it finds, in this order:
- the file that
$CODEX_BINnames; - on macOS, the copy in the ChatGPT app (
/Applications/ChatGPT.app/Contents/Resources/codex-cli/bin/codex); codexon yourPATH.
| Platform | Release file | Status |
|---|---|---|
| macOS, Apple silicon | .dmg, .zip |
supported |
| Linux, x86_64 | AppImage, .deb |
supported |
| Windows, x64 | .msix |
built in CI (unit tests run) |
Intel Macs and Linux on arm64 have no release file.
Download the file for your platform from the latest release, open it, and make sure that codex is installed (see above).
Install rustup. The file rust-toolchain.toml pins Rust 1.98.1, so rustup installs that version on the first build. Then run:
cargo run -p app --releaseSetup from a clean machine: setup.md. Requirements, flags, environment variables and tests: Build and run.
codex-gpui starts in 1.4 s cold and 0.2 s warm, against 11.1 s and 9.3 s for the original. It idles at 155 MB of RSS, against 2 034 MB. The .app is 107 MB, against 1.9 GB. Full table and how to reproduce: Performance.
flowchart LR
UI["codex-gpui window (GPUI)"] -->|"JSON-RPC over stdio"| S["codex app-server"]
S -->|"threads, items, notifications"| UI
R["Original renderer references"] -->|"pixel compare"| P["parity harness"]
UI --> P
The window sends requests to codex app-server and shows each item and notification that it returns. The parity harness renders the same screens and compares them with the original. See Architecture for the crates and the data flow.
crates/: the Rust workspace:app(binary),bridge(app-server client),ui,theme,shapes,textsysandparity.docs/: build, architecture, parity, features, release and flow documentation.tools/: reference capture, extraction and parity scripts.refs/: original-renderer reference screenshots and specs.fixtures/: recorded data for tests and the parity harness.vendor/: vendored and forked third-party crates.scripts/: helper scripts.assets/: bundled app assets.
Start at the documentation index. Main pages: Build and run, Features, Architecture, Parity, Releases. Project files: Contributing, Security, Code of conduct, Changelog.
MIT License: use, copy, modify and distribute the code with the license notice. See LICENSE. Vendored and forked third-party code keeps its own license in its directory.