← Blog

How-to4 min read

Codex on Linux: the desktop app, the CLI, and servers without a screen

Codex on Linux comes as a desktop app (preview: Ubuntu, Debian, Fedora, Arch) and a CLI. Install commands, updates, the sandbox, and signing in on a server.

Mirasim's Add a space dialog: a team space we host, your own computer, or an SSH serverMirasim's Add a space dialog: a team space we host, your own computer, or an SSH server

The short answer

Yes, Codex runs on Linux. OpenAI's desktop app for Linux is in preview: it's the ChatGPT desktop app, for Ubuntu, Debian, Fedora and Arch on x64 and ARM64, and you choose Codex inside it. The Codex CLI runs on Linux too, including servers with no screen.

The ChatGPT desktop app, then Codex
A desktop Linux on the supported list
Codex CLI
Another distribution, or you prefer the terminal
Codex CLI, with device code sign-in
A server you reach over SSH
Mirasim
Codex next to Claude Code, or a server your phone can open

Install the Codex desktop app on Linux

DistributionInstallUpdate
Ubuntu 24.04 and 26.04 LTS, Debian 13Download the .deb, then sudo apt install ./chatgpt_amd64.debsudo apt update && sudo apt install --only-upgrade chatgpt
Fedora 43 and 44Download the .rpm, then sudo dnf install ./chatgpt.x86_64.rpmsudo dnf upgrade --refresh chatgpt
Arch Linux, fully updatedOpenAI's install-arch.sh, run with sudo; it does a full system upgradesudo pacman -Syu

Run uname -m first: x86_64 means the x64 package, aarch64 or arm64 the ARM64 one, whose file names end in arm64.deb and aarch64.rpm. The downloads are on OpenAI's page, learn.chatgpt.com/docs/linux/linux-app. After installing, open ChatGPT from the applications menu or run chatgpt, and sign in.

Install Codex CLI on Linux

bash
# install; run it again to update
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# the sandbox (Fedora: sudo dnf install bubblewrap)
sudo apt install bubblewrap
# start in your project and sign in
codex
  • npm works as well: npm install -g @openai/codex. GitHub Releases of openai/codex has x86_64 and arm64 builds.
  • On Linux, Codex's sandbox relies on bubblewrap. Without it, Codex warns at startup.
  • On Ubuntu 24.04 the warning can stay after you install it, because of AppArmor. OpenAI's sandboxing page gives the profile to load.
  • On Windows, run the same command inside WSL2. WSL1 isn't supported since Codex 0.115.

Codex on a Linux server

A server has no browser for the sign-in page. Turn on device code login in your ChatGPT security settings, run codex login --device-auth, and enter the code on any device. If that isn't possible, OpenAI's docs say you can sign in on a machine with a browser and copy the auth.json file from its Codex folder to the server. Treat that file like a password.

Over SSH, Codex stops when the connection drops unless you keep it in something like tmux.

Codex in Mirasim on Linux

A Linux desktop app
AppImage or .deb, x86_64 and arm64, for Ubuntu 22.04 or a distribution of the same age
Codex CLI, as it is
On your ChatGPT sign-in, an API key or Mirasim credit, next to Claude Code and other agents
A server that stays on
One command on a server without a desktop; it runs as a service and comes back after a reboot
From your phone
Open that server's sessions from the phone app or a browser

The one-command install needs a glibc Linux such as Ubuntu, Debian or Fedora, and a Mirasim account with collab spaces enabled. Mirasim is not an OpenAI app.

Questions

Is there an official Codex desktop app for Linux?
Yes, in preview. It's the ChatGPT desktop app for Linux, published by OpenAI. Repackaged versions from before it existed are unofficial.
Does Codex work on Linux Mint, openSUSE or NixOS?
They aren't on OpenAI's list for the desktop app. The app may still run; the CLI is the safer choice.
Does Codex on Linux need a paid plan?
Nothing differs from other systems: sign in with a ChatGPT account that includes Codex, or use an API key.

Sources

Checked on November 24, 2026 against OpenAI's documentation (learn.chatgpt.com/docs: linux/linux-app, the Codex CLI page, sandboxing, auth, windows/wsl) and the README at github.com/openai/codex. The Linux app is a preview and changes quickly, so check those pages for the latest.

Keep reading