<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: The Release Desk</title>
    <description>The latest articles on DEV Community by The Release Desk (@thereleasedesk).</description>
    <link>https://dev.to/thereleasedesk</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4181412%2F389c09a4-3009-4713-9809-7f39f93da818.png</url>
      <title>DEV Community: The Release Desk</title>
      <link>https://dev.to/thereleasedesk</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thereleasedesk"/>
    <language>en</language>
    <item>
      <title>Codex CLI now keeps running after you close it. Here's what that means and how to turn it off</title>
      <dc:creator>The Release Desk</dc:creator>
      <pubDate>Tue, 13 Oct 2026 07:43:42 +0000</pubDate>
      <link>https://dev.to/thereleasedesk/codex-cli-now-keeps-running-after-you-close-it-heres-what-that-means-and-how-to-turn-it-off-2lm7</link>
      <guid>https://dev.to/thereleasedesk/codex-cli-now-keeps-running-after-you-close-it-heres-what-that-means-and-how-to-turn-it-off-2lm7</guid>
      <description>&lt;p&gt;Since version 0.157.0, opening OpenAI's Codex CLI starts a shared background server that outlives your terminal and updates itself. It's on by default. Here's what it does and the one command to switch it off.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi70s0nvn104g884h48tz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fi70s0nvn104g884h48tz.png" alt="Diagram comparing Codex CLI defaults. Before 0.157.0, closing the terminal ended the Codex session. From 0.157.0, terminals connect to a shared background server that keeps running after every window closes, checks for updates hourly, and keeps the first terminal's environment variables." width="800" height="400"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you use OpenAI's Codex CLI, close every Codex window and check your running processes. There's a fair chance Codex is still there.&lt;/p&gt;

&lt;p&gt;Since &lt;strong&gt;version 0.157.0&lt;/strong&gt;, released on September 25, opening an interactive Codex session also starts a &lt;strong&gt;daemon&lt;/strong&gt;, a program that runs quietly in the background with no window of its own. It keeps running after your last terminal closes. On most setups, it also updates itself.&lt;/p&gt;

&lt;p&gt;OpenAI's &lt;a href="https://github.com/openai/codex/releases/tag/rust-v0.157.0" rel="noopener noreferrer"&gt;release notes&lt;/a&gt; gave this one line: &lt;em&gt;"Enabled automatic background-server startup for eligible interactive sessions."&lt;/em&gt; Developers noticed what that sentence left out, and a &lt;a href="https://github.com/openai/codex/issues/48195" rel="noopener noreferrer"&gt;GitHub issue&lt;/a&gt; asking for it to be opt-in reached the top of Hacker News on October 12.&lt;/p&gt;

&lt;p&gt;Here's what actually changed, why it bothers people, and how to switch it off if you want to.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the background server does
&lt;/h2&gt;

&lt;p&gt;This part comes from OpenAI's own code and docs, not just user reports.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;It's on by default.&lt;/strong&gt; In the Codex source code, the setting &lt;code&gt;daemon_auto_start&lt;/code&gt; is marked &lt;em&gt;stable&lt;/em&gt; and &lt;em&gt;enabled by default&lt;/em&gt; (&lt;a href="https://github.com/openai/codex/blob/main/codex-rs/features/src/lib.rs" rel="noopener noreferrer"&gt;source&lt;/a&gt;). The &lt;a href="https://github.com/openai/codex/pull/47179" rel="noopener noreferrer"&gt;pull request&lt;/a&gt; that made the switch, merged on September 22, is titled simply "Enable automatic daemon startup by default."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It updates itself.&lt;/strong&gt; According to the daemon's &lt;a href="https://github.com/openai/codex/blob/main/codex-rs/app-server-daemon/README.md" rel="noopener noreferrer"&gt;README&lt;/a&gt;, it checks for new releases five minutes after starting, then every hour. When it finds one, it restarts, and the README warns that "active or queued work may be interrupted."&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It runs its own copy of Codex.&lt;/strong&gt; The daemon runs from a separate package inside your &lt;code&gt;~/.codex&lt;/code&gt; folder, not necessarily the version you installed with npm or Homebrew. The person who opened the issue measured that copy at about &lt;strong&gt;374 MB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It remembers the first terminal's environment.&lt;/strong&gt; The README says it plainly: shared clients use the environment the daemon started with, and "per-client environment isolation is not provided." Start Codex in a project with one &lt;code&gt;GH_TOKEN&lt;/code&gt; or proxy setting, open another project later, and the daemon may still use the first one. Users in the issue thread report hitting exactly this.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why developers are annoyed
&lt;/h2&gt;

&lt;p&gt;None of this is hidden in a malicious way. The code is open source and the behaviour is written down in the repo. The problem is &lt;strong&gt;where&lt;/strong&gt; it's written down.&lt;/p&gt;

&lt;p&gt;A CLI installed through a package manager usually follows a simple deal: it runs when you run it, stops when you close it, and stays on the version you installed. Codex quietly changed all three, behind one release-note sentence. As of today, the opt-out setting doesn't appear in Codex's official CLI docs; users found it in the source and the issue threads. The daemon's own README even still opens with "&lt;code&gt;codex-app-server-daemon&lt;/code&gt; is experimental," while the flag that turns it on is marked stable.&lt;/p&gt;

&lt;p&gt;There's also the practical side. Windows and WSL users in the thread reported the CLI failing to start at all after the update. Later releases (0.158 through 0.162.1) include a run of fixes for exactly those cases.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case for it
&lt;/h2&gt;

&lt;p&gt;The daemon has a real job. The README says it backs remote clients "such as the desktop and mobile apps," so one shared backend can serve your terminal, the Codex desktop app and remote sessions at once. If you use those, a long-running shared server makes sense.&lt;/p&gt;

&lt;p&gt;The complaint isn't that the feature exists. It's that it's &lt;strong&gt;on by default for a terminal tool&lt;/strong&gt;, without asking once. As of October 13, the issue is still open with no reply from OpenAI in the thread.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to check, and how to turn it off
&lt;/h2&gt;

&lt;blockquote&gt;
&lt;p&gt;We haven't installed Codex for this article. The commands below come from Codex's source code and README; the process check is a standard system command. Run them at your own judgement.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;1. Check whether it's running&lt;/strong&gt; (macOS / Linux):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ps aux | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-i&lt;/span&gt; &lt;span class="s2"&gt;"codex app-server"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;2. Stop it from starting automatically.&lt;/strong&gt; This writes the setting into your Codex &lt;code&gt;config.toml&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex features disable daemon_auto_start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Prefer to keep it but skip it for one session? Use &lt;code&gt;codex --no-daemon&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Stop the one that's already running:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;codex app-server daemon stop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The issue's author reports that this left the hourly updater process running in their case, so run the step 1 check again afterwards.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Want the daemon, but no surprise updates?&lt;/strong&gt; The README documents an &lt;code&gt;"autoUpdateEnabled": false&lt;/code&gt; option inside the daemon's settings file (&lt;code&gt;~/.codex/app-server-daemon/settings.json&lt;/code&gt;).&lt;/p&gt;

&lt;p&gt;One more detail from the changelog: daemon-launched servers turn analytics on by default, matching OpenAI's other apps. The &lt;a href="https://github.com/openai/codex/pull/49426" rel="noopener noreferrer"&gt;pull request&lt;/a&gt; notes you can still opt out with &lt;code&gt;analytics.enabled = false&lt;/code&gt; in &lt;code&gt;config.toml&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Desk verdict:&lt;/strong&gt; If you use Codex only in the terminal, run &lt;code&gt;codex features disable daemon_auto_start&lt;/code&gt; and move on. If you use the desktop or mobile app with it, leave it on, but check &lt;code&gt;settings.json&lt;/code&gt; so you know when it updates.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Sources:&lt;/strong&gt; &lt;a href="https://github.com/openai/codex/releases/tag/rust-v0.157.0" rel="noopener noreferrer"&gt;Codex 0.157.0 release notes&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/issues/48195" rel="noopener noreferrer"&gt;Issue #48195&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/pull/47179" rel="noopener noreferrer"&gt;PR #47179&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/blob/main/codex-rs/app-server-daemon/README.md" rel="noopener noreferrer"&gt;Daemon README&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/blob/main/codex-rs/features/src/lib.rs" rel="noopener noreferrer"&gt;Feature flag source&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/pull/49426" rel="noopener noreferrer"&gt;PR #49426 (analytics)&lt;/a&gt; · &lt;a href="https://github.com/openai/codex/pull/50555" rel="noopener noreferrer"&gt;PR #50555 (WSL fix)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;The Release Desk · by Shabbir Saifee. &lt;br&gt;
Facts checked against the primary sources linked above on October 13, 2026.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>openai</category>
      <category>codex</category>
      <category>cli</category>
      <category>security</category>
    </item>
  </channel>
</rss>
