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

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

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

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.

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.
  1. whimblepop

    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...

  2. icantevenhold

    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

  3. dllu

    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...

  4. reacharavindh

    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.

  5. Sha1rholder

    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?

  6. timdorr

    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.

  7. silverbluep

    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.

  8. piker

    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

More from this day

2026-10-12