# Codex CLI silently installs a self-updating background daemon on every launch

Original title: Codex CLI installs a persistent, self-updating background daemon by default

> Hacker News story 50060694 · language: en · submitted 2026-10-12
> Web version: https://zeli.app/story/50060694
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 599 · by [whimblepop](<https://news.ycombinator.com/user?id=whimblepop>) · 💬 292
[original](<https://github.com/openai/codex/issues/48195>) · [HN discussion](<https://news.ycombinator.com/item?id=50060694>)

## Summary

Since version 0.157.0, opening an interactive Codex CLI session spawns a persistent background daemon that survives after every window closes, copies a 374 MB platform package into ~/.codex, and runs an hourly self-updater that can kill active turns. It also pins the proxy environment of whichever session started it. Users want daemon_auto_start to be opt-in, not the default.

## Key quote

> For a CLI, the least surprising default is that the backend lives and dies with the window, runs the binary I installed, and doesn't update itself in the background.

## HN discussion (292 comments)

### [whimblepop](<https://news.ycombinator.com/item?id=50061501>)

> There aren't any documented settings to disable this, but there is a feature flag it currently sits behind. You can flip it in your ~/.codex/config.toml[1]:
>
> [features]
>
> daemon_auto_start = false
>
> There are also some files that it writes to in ~/.codex at startup: pid files, lock files, things like that. You can delete them and replace them with symlinks to /dev/null, then mark those unwritable with `chattr +i` or similar. Presumably then the background daemon will crash on startup, if the feature flag ever goes away.
>
> \--
>
> 1: https://github.com/openai/codex/blob/0c329ad2c9d5a2592128a1d...

### [icantevenhold](<https://news.ycombinator.com/item?id=50060934>)

> It also fills up my HD with old versions.
>
> I investigated and it took up something like 12 gigabytes in total on my system; which seems insane to me, it’s just a harness?
>
> People moan about how badly made Claude code is but Codex seems much worse on every metric

### [dllu](<https://news.ycombinator.com/item?id=50061752>)

> The daemon has many bugs. For example, when auto-updating, it would randomly ruin the permissions and block the goal as .git became read-only. Generally, it is extremely annoying how many bugs Codex has. I basically can't trust it to execute on any goal since it would often get blocked every few hours due to random bugs.
>
> https://github.com/openai/codex/issues/52251#issuecomment-60...

### [reacharavindh](<https://news.ycombinator.com/item?id=50061270>)

> I’ve been using GPT models via hax[1], a bare bones harness with minimal tools on my system and have the models rely on bash for the most part the last few months. It’s been a breath of fresh air amidst all these overengineered harnesses.
>
> If I need special actions, I just make them CLI tools on my Mac and tell the AI model that such a tool exists(via a single line in its system prompt) and that’s it. It’s been very nice.
>
> [1] -  https://usehax.dev/
>
> No affiliation whatsoever. Just a happy user.

### [Sha1rholder](<https://news.ycombinator.com/item?id=50061606>)

> Off-topic: I think the front-end quality of ChatGPT/Codex Desktop and Android app is simply dreadful—hard to imagine how such a large number of frequent failures made it into production. Do they not use human testing at all?

### [timdorr](<https://news.ycombinator.com/item?id=50061258>)

> This is the same operational model as Claude Code.
>
> ls ~/.local/share/claude/versions/
>
> ps auxww | grep "claude bg"
>
> I see a few prior versions of the Claude Code binary and several running background tasks, without any copy of Claude Code in the foreground. I regularly get a "Update available" message in my Claude Code UI too.

### [silverbluep](<https://news.ycombinator.com/item?id=50062392>)

> Codex is very badly structured. I was an early user with codex. But it mixes state and configuration data; which is why I can't really declaratively manage it in my nix-darwin environment; so abandoned it a while ago. This issue being raised, and the way that the codex development responds back to it makes me not trust their harness ever again. I only use codex in opencode; which seems to be doing OK. At least openai doesn't gate their product to their harness like anthropic.
>
> Not trying to sing praises; i think opencode is doing a bunch of weird stuff too but it's not codex level.

### [piker](<https://news.ycombinator.com/item?id=50061646>)

> It's not necessarily hostility. We considered different updating approaches with our legal IDE where security, stability, etc. are paramount, and having a buggy application out in the wild is user-hostile. Sure, in a dream world we'd say "don't ship until it's perfect", but that's just not realistic.
>
> We considered the daemon thing, but ended up with a hard-update check on every boot. It's thus a user choice: if you don't like the automatic updating, you can just not run the application anymore.
>
> And even with all that, it's hard to stay on the right side of AV algorithms, etc.
>
> We wrote about it here: https://tritium.legal/blog/update

---

## Cite

- Page: https://zeli.app/story/50060694
- Date: 2026-10-12
- Source: github.com (https://github.com/openai/codex/issues/48195)
- Hacker News: https://news.ycombinator.com/item?id=50060694

## Other languages

- zh: https://zeli.app/zh/story/50060694 · markdown: https://zeli.app/zh/story/50060694.md
- ja: https://zeli.app/ja/story/50060694 · markdown: https://zeli.app/ja/story/50060694.md
- ko: https://zeli.app/ko/story/50060694 · markdown: https://zeli.app/ko/story/50060694.md
- de: https://zeli.app/de/story/50060694 · markdown: https://zeli.app/de/story/50060694.md
- es: https://zeli.app/es/story/50060694 · markdown: https://zeli.app/es/story/50060694.md
- ru: https://zeli.app/ru/story/50060694 · markdown: https://zeli.app/ru/story/50060694.md
