Download Codex for Linux

On Linux, install the Codex CLI with curl -fsSL https://chatgpt.com/codex/install.sh | sh or npm install -g @openai/codex. OpenAI also offers the ChatGPT desktop app, with Codex, as a Linux preview. It comes as .deb packages for Ubuntu and Debian, .rpm for Fedora, and an install script for Arch, on x64 and ARM64.

Applies to: Ubuntu, Debian, Fedora, Arch Linux, Codex CLI

Codex CLI

The official installer works on most distributions:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

Or with npm:

npm install -g @openai/codex

The CLI’s requirements page lists Ubuntu 20.04+ or Debian 10+, 4 GB of RAM (8 GB recommended), and optionally Git 2.23+. If you download a binary by hand from GitHub Releases, choose codex-x86_64-unknown-linux-musl.tar.gz or codex-aarch64-unknown-linux-musl.tar.gz, then rename the extracted file to codex.

Desktop app preview

First check your architecture:

uname -m

x86_64 means x64. aarch64 or arm64 means ARM64. Then get the matching package from OpenAI’s Linux app page:

DistributionPackageInstall command
Ubuntu, Debian.debsudo apt install ./chatgpt_amd64.deb
Fedora.rpmsudo dnf install ./chatgpt.x86_64.rpm
Arch Linuxinstall scriptsee OpenAI’s Linux docs

For ARM64, the files are chatgpt_arm64.deb and chatgpt.aarch64.rpm. After installing, open ChatGPT from your applications menu or run chatgpt, sign in, and choose Codex.

The packages set up a signed OpenAI repository, so updates come through your package manager:

# Ubuntu / Debian
sudo apt update && sudo apt install --only-upgrade chatgpt
# Fedora
sudo dnf upgrade --refresh chatgpt

Wayland

OpenAI calls native Wayland support experimental. The app uses XWayland when available. To try native Wayland, quit the app fully and launch it with chatgpt --ozone-platform=wayland.

Questions people ask

Which Linux distributions does the desktop app support?

OpenAI's Linux docs list Ubuntu 24.04 LTS and 26.04 LTS, Debian 13, Fedora 43 and 44, and current Arch Linux, each on x64 and ARM64. Other distributions may work but aren't formally supported.

Does Computer Use work in the Linux app?

Not yet. OpenAI's docs say Computer Use is available on macOS and Windows but not in the Linux preview.

Sources

We link to the official source for every instruction on this page. If anything here disagrees with them, trust the official source and tell us.