codex-gpui is a native, fast, lightweight Codex Desktop in Rust for macOS and Linux, built with GPUI. It is an open-source port of OpenAI Codex that drives the real codex app-server.
Setup · Build and run · Architecture · Parity · Contributing · Code of conduct · Security · Changelog
- Latest release, with the macOS Apple silicon
.dmg, LinuxAppImageand Linuxdeb: github.com/i098/codex-gpui/releases/latest
The original is the Codex section of the macOS ChatGPT app.
The goal is pixel parity with the original: the same layout, text, colors and icons, device pixel for device pixel.
The app drives the real codex app-server over stdio, the same JSON-RPC transport that the original uses.
The app runs on macOS (Apple silicon and Intel). The workspace also builds on Linux for CI. Pixel parity is checked by the harness in Parity and proof; the sections there list what is and is not proven.
Feature details, including computer use, SSH, terminals, skills, connectors, ACP, cloud transport, sign-in, onboarding and the Security workbench: Features and runtime setup.
Measured against the original Codex app (26.1029; 26.1103 for size) on the same account-free fixture:
| Metric | Original | codex-gpui |
|---|---|---|
| Cold start to sidebar rows painted (median) | 11 079 ms | 1 378 ms |
| Warm start to sidebar rows painted (median) | 9 295 ms | 204 ms |
| Idle memory, RSS at +30 s (all processes), no thread link | 2 034 MB | 155 MB |
| Idle memory, RSS at +30 s, with thread link | 2 118 MB | 181 MB |
Idle memory, phys_footprint at +90 s, no thread link |
798 MB | 93 MB |
Idle memory, phys_footprint at +90 s, with thread link |
892 MB | 123 MB |
| Idle CPU, window visible, no thread link | 2.2 % of one core | 0.7 % |
| Idle CPU, window visible, with thread link | 31.9 % | 0.7 % |
| Idle CPU, window hidden, no thread link | 0.7 % | 0.2 % |
App size, .app (du -sh) |
1.9 GB (1 964 200 KB) | 107 MB (109 204 KB), arm64 |
Download size (ditto zip) |
815 MB | 56.2 MB |
Download size, macOS .dmg |
not measured | 60.8 MB |
How to reproduce: docs/BENCHMARKS.md
-
Install Rust 1.98.1 (
rust-toolchain.tomlpins it, sorustupdoes it on the first build). -
Make a
codexbinary available:$CODEX_BIN, the ChatGPT app's bundled one, orcodexonPATH. -
Run the app:
cargo run -p app --release
Step-by-step setup from a clean machine: setup.md. Full requirements, flags, environment variables and tests: Build and run.
Crates, data flow and design: Architecture.
| Doc | Content |
|---|---|
| Build and run | Requirements, CI notes, build flags, run modes, tests |
| Features and runtime setup | Computer use, SSH, terminals, skills, connectors, ACP, cloud transport, sign-in, onboarding, Security workbench |
| Updates, releases and live QA | Update policy, release bundle, in-app updates, versions, live QA build |
| Architecture | Crates, data flow, design |
| Parity and proof | Parity method, regenerate inputs, live preview and proof, frame benchmark, current parity |
| Menus and native links | Permission-menu replay, command-menu actions, deep links |
| Computer use contract | Computer Use integration contract |
| Flows | Flow parity: original vs port |
| Inventory | Screen and flow inventory (data in inventory.json) |
| Proof matrix | Census proof command |
| Windows | Native windows |
Read CONTRIBUTING.md before you open a pull request. Report security issues through .github/SECURITY.md. Release history: CHANGELOG.md.
MIT. Vendored and forked third-party code keeps its own license in its directory.