Skip to content
The Ashton General Systems Company
Back to posts

How to Install ChatGPT Desktop with Codex on Linux

OpenAI now provides an official ChatGPT desktop preview for Linux, including Ubuntu, Debian, Fedora and Arch Linux. For a new installation, use that guide.

The community-wrapper instructions below describe the setup I used before the official package, last checked on August 11, 2026.

For terminal use, install the Codex CLI:

npm install -g @openai/codex
codex

The community wrapper covered here is:

ilysenko/codex-desktop-linux

If you are looking for the official macOS or Windows install paths instead:

The community wrapper

At the August check, codex-desktop-linux described itself as ChatGPT Desktop for Linux. It converts the upstream macOS app into a Linux Electron app, then builds native Linux packages around it.

The wrapper gives you:

  • the unified ChatGPT and Codex desktop interface
  • project threads
  • native Linux packages
  • a managed Linux Node.js runtime
  • a local updater service for future package rebuilds
  • optional Linux Computer Use support

You are building and installing software from a community repository, so read the scripts before running them on a machine you care about.

Supported Linux Paths

The wrapper supported these package families at that check:

Distro familyPackage output
Debian, Ubuntu, Pop!_OS, Mint, Elementary.deb
Fedora.rpm
openSUSE.rpm
Arch, Manjaro, EndeavourOS.pkg.tar.zst
Atomic desktops and other distrosself-built AppImage
NixOS / Nixnix run

The README says X11 is supported and that the launcher targets Wayland with XWayland first, then falls through to Electron's automatic Wayland handling.

How to Install It

The repository provided a native bootstrap target to install dependencies, build the app, package it and install it:

git clone https://github.com/ilysenko/codex-desktop-linux.git
cd codex-desktop-linux
make bootstrap-native

If the build dependencies are already installed, use make install-native. For a local AppImage without the native updater, use make build-app && make appimage.

The generated app bundles a managed Linux Node.js runtime. You do not need to install a distro nodejs package just to run this wrapper, though normal developer setups with Node already installed are fine.

NixOS / Nix

For Nix users, the README gives a one-liner:

nix run github:ilysenko/codex-desktop-linux

If that fails with a hash mismatch immediately after an upstream Codex release, the README says to wait for the repository's bot refresh and retry.

How It Works

The wrapper builds the Linux app by:

  • extracting the upstream macOS desktop app
  • patching it to run under Linux Electron
  • rebuilding native Node modules for Linux
  • creating native .deb, .rpm, or .pkg.tar.zst packages
  • installing a local codex-update-manager service for rebuilding future packages from newer upstream app releases

The Codex CLI is still required at runtime. On first launch, the app can install or update @openai/codex with its bundled npm, or you can manage the CLI yourself.

Optional Computer Use Support

The project also includes an opt-in Linux Computer Use backend. That part is separate from basic desktop app installation.

If you want it, expect extra desktop automation dependencies such as ydotool, /dev/uinput access, and a working XDG Desktop Portal on non-GNOME desktops. The README has the distro-specific commands and a doctor check for readiness.

If you only want the Codex desktop app for normal project work, you can skip Computer Use.

Troubleshooting Notes

If the install fails on a hardened Linux setup, check whether /tmp is mounted with noexec.

The README recommends setting a user-writable temp and cache directory before running the install steps:

mkdir -p ~/tmp/codex-work ~/tmp/codex-cache
export TMPDIR=~/tmp/codex-work
export XDG_CACHE_HOME=~/tmp/codex-cache

For launcher issues, the useful logs are:

~/.cache/codex-desktop/launcher.log
~/.local/state/codex-update-manager/service.log

For updater status:

systemctl --user status codex-update-manager.service
codex-update-manager status --json

Sources Checked