Skip to content
← All news
3 min read

Codex CLI now leaves a self-updating daemon running after the terminal closes

Since 0.157.0, an interactive Codex session starts a background app server that survives exit, plus an updater that checks hourly. The flag that turns it off is missing from the config reference.

One user measured a 374 MB copy in ~/.codex/packages and an updater that checks for releases every hour.

On September 25, 2026, OpenAI released Codex CLI 0.157.0 with a one-line note: "Enabled automatic background-server startup for eligible interactive sessions." The change comes from PR #47179, merged September 22, which promotes the daemon_auto_start feature flag to stable and turns it on by default.

Issue #48195, opened September 25 by Yihua-Liu-1997 on Codex 0.157.0 under WSL2, describes the result. An interactive session starts codex app-server --managed-daemon with no terminal, and when the Codex windows close, the process is re-parented to PID 1 and keeps running. The CLI also copies about 374 MB of binaries into ~/.codex/packages/app-server-daemon/.

A second detached process, codex app-server daemon pid-update-loop, checks for a new release 5 minutes after start and then every hour. When it finds one, it restarts the backend, which the issue says can end turns in progress. The daemon also keeps the starting session's environment, proxies included. A commenter confirms the behavior on Windows 10, and Dr. Web says developers had reported it on macOS by October 13.

Turning it off takes a flag, a stop, and a manual kill

The issue lists the sequence: disable the flag, stop the daemon, then kill the updater by hand. The author reports that stop leaves pid-update-loop alive; it was still running 70 seconds later. A Windows commenter sets daemon_auto_start = false in config.toml instead, though another notes that the official config reference has no entry for that flag.

ps aux | grep -i codex
du -sh ~/.codex/packages
codex features disable daemon_auto_start
codex app-server daemon stop
pkill -f 'app-server daemon pid-update-loop'

Two releases since, and the default is still on

The 0.161.0 changelog of October 7 includes "Enable analytics by default for daemon-launched app servers" (#49426). Dr. Web reports that analytics.enabled = false turns this off. Release 0.162.0 on October 8 added "Skip daemon auto-start for Windows-mounted WSL homes" (#50555). Everywhere else, auto-start stays on by default.

As of October 15, 2026, the issue is open and no reply carries an OpenAI member or collaborator badge. Dr. Web ties the story to the EU Cyber Resilience Act, which it says permits automatic security updates by default but requires a clear, user-friendly opt-out from December 11, 2027. The evidence has limits. The 374 MB figure and the update schedule come from one user's machine, and one commenter on 0.160.0 reports that no daemons were running.

Why a build studio cares

We run Claude Code and other coding agents on developer machines every day, so what a tool leaves running after exit is a live question for us. The detail here that worries us most is the environment pinning. On any machine where sessions move between client projects, a daemon holding the first session's environment and proxies can carry one project's settings into the next, then get restarted mid-turn by an hourly updater. A process list taken after closing the terminal now belongs next to the permission review for any agent tool, and it is the access question the governance pass in a Full Audit is built to ask.

Next step: on any machine that has opened an interactive Codex session since September 25, run the first two commands above, then read issue #48195 for the full sequence before you disable anything. If you want a second look at what your agent tools leave behind, write to us at hello@gattyworks.com.

AI agentsDeveloper toolsSecurityOpenAICodexCLICyberResilienceActWSLLinuxAICodingAgentsDeveloperToolsDevSecOpsSoftwareSupplyChainOpenSource

Ready to know?

Send what you want checked or built. Fixed scope, price, and date in writing inside 24 hours, or the website or audit fee on your first project is refunded in full.

24 clock hours. Weekends included.
Book a call