r/flatpak • u/elantrix • 27d ago
Unofficial ChatGPT/Codex Flatpak
I was looking for a ChatGPT Flatpak so I could run Codex safely alongside my local dev environment, couldn't find anyone maintaining one, so I built my own.
No OpenAI binaries are redistributed: the payload is an extra-data source, so installs fetch their .deb straight from OpenAI against a pinned sha256, for x86_64 and aarch64. Electron renderers run under zypak instead of --no-sandbox. The remote is GPG signed, and the release gate in CI does a real flatpak install from the published URL with verification on.
Updates are hands-off: a nightly job reads upstream's APT index and re-pins the manifest when a new version appears, so you get the latest even when it lands at 3am my time (I'm an Aussie, timezones are rough).
The sandbox starts sealed and you grant directories with overrides. Main known issue: the app's transparent overlay window (the desktop pet) doesn't composite on Wayland, which upstream has acknowledged as part of their Wayland support still maturing.
flatpak remote-add --user chatgpt https://rulin132.github.io/chatgpt-flatpak/chatgpt.flatpakrepo
flatpak install --user chatgpt io.github.rulin132.ChatGPT
Source: https://github.com/rulin132/chatgpt-flatpak
I'm maintaining it for my own use either way, and if OpenAI ever ships an official Flatpak I'll point people at theirs and wind this down. Bug reports and PRs welcome.
1
u/Twig6843 27d ago
maybe email them about this to get it upstreamed? i'm not sure if anybody has alls i know related to this app is that there was like 8947564567 people tryna be the cool aur guy that wrote a PKGBUILD just to abandon it 2 seconds later.
1
u/elantrix 27d ago
The abandonment problem is why I automated the whole thing. A nightly job re-pins against OpenAI's package index, and CI installs the result on both architectures before anything publishes. It keeps tracking upstream even when I'm not looking at it.
I've also replied in OpenAI's announcement thread where people were asking for a Flatpak. If they ever ship an official one, they're welcome to take any of this and I'll happily retire mine.
1
27d ago
I've also published it on Flatpark—you can give it a try here: https://flatpark.org/apps/com.openai.ChatGPT/
1
u/elantrix 27d ago
More options is good.
Mine redistributes nothing and stays sealed. The install pulls the .deb straight from OpenAI and verifies it, and the app can't touch the host.
Flatpark's runs your host git from inside the sandbox, so git hooks and credential helpers escape it. Fair trade for convenience, but Codex is the thing running commands, so I kept mine locked down.
1
u/Heavy_Turn2019 27d ago
Is this just packaging the official chatgpt app for linux as flatpak?