Codex CLI installs a persistent, self-updating background daemon by default
Recorded: Oct. 12, 2026, 7 p.m.
| Original | Summarized |
CLI: make `daemon_auto_start` opt-in — a persistent, self-updating background daemon shouldn't be the default · Issue #48195 · openai/codex · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert openaicodexRepository navigationCodeIssues5k+ (5k+)Pull requests165 (165)Only collaborators can create PRsDiscussionsActionsSecurity and quality1 (1)InsightsMore items CLI: make daemon_auto_start opt-in — a persistent, self-updating background daemon shouldn't be the default #48195New issueCopy linkNew issueCopy linkOpenOpenCLI: make daemon_auto_start opt-in — a persistent, self-updating background daemon shouldn't be the default#48195Copy linkLabelsCLIIssues related to the Codex CLIIssues related to the Codex CLIapp-serverIssues involving app server protocol or interfacesIssues involving app server protocol or interfacesenhancementNew feature or requestNew feature or requestDescriptionYihua-Liu-1997opened on Sep 25, 2026Issue body actionsWhat variant of Codex are you using? Starts a persistent background daemon (codex app-server --managed-daemon). It runs in its own session with no TTY and keeps running after every Codex window is closed (reparented to PID 1) until codex app-server daemon stop or a reboot. 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. A shared, self-updating daemon makes sense for Remote Control / the desktop app, so it would be fine to enable it there, or when the user explicitly runs codex app-server daemon start / bootstrap. exit an auto-started daemon when its last client disconnects; Additional information Automatically fall back to local mode when daemon startup is blocked by elevation, instead of requiring --no-daemon. This would preserve the security restrictions without disrupting the normal CLI workflow.👍React with 👍1Reacted by BigBoyDevBoxYihua-Liu-1997 commented on Sep 26, 2026 Yihua-Liu-1997on Sep 26, 2026AuthorMore actions@tagorr Indeed — both 1 and 2 would work~❤️React with ❤️1Reacted by tagorbreakdsadded a commit that references this issue on Sep 28, 2026codex: disable daemon auto-start by default...b51c036felipeelopes commented on Sep 29, 2026 felipeelopeson Sep 29, 2026More actionsThe Codex CLI is unusable due to this bug on Windows.zdd commented on Sep 30, 2026 zddon Sep 30, 2026More actionsThis is terrible. I can't input anything on the CLI at all. You should fix this problem as soon as possible and give us 100 banked reset!aetherxeg-source commented on Oct 3, 2026 aetherxeg-sourceon Oct 3, 2026 – with ChatGPT Codex ConnectorMore actionsThere is a useful provenance boundary behind this request: same installed artifact, same daemon generation; A strong regression would start the daemon under environment A, attach from environment B, update the installed CLI, and verify that the client can see exactly which daemon generation/binary/environment is authoritative for the turn rather than inferring it from the foreground CLI version. Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
The issue raised concerns the default behavior of the Codex Command Line Interface (CLI) regarding the automatic startup of a persistent, self-updating background daemon. The core argument is that for a persistent, self-updating background daemon, starting it automatically by default is undesirable, as it creates unpredictability and conflict with the way users manage their command-line tools installed via package managers. When the Codex CLI starts an interactive session, it initiates a persistent background daemon, which copies the entire platform package into a managed release directory and attempts to self-update. This creates a situation where the backend version is decoupled from the specific CLI version installed by the user. This decoupling causes significant problems, particularly if the user updates the CLI using package managers like npm or brew, as the daemon's update and restart processes fail to properly recover, rendering the CLI unusable. The concern is that the CLI identity and the daemon execution identity are not properly delineated, leading to uncertainty about which version of the daemon or environment is authoritative for any given operation. The proposed resolution centers on making the daemon startup an explicit, opt-in choice, setting the default value to false. This change would align the daemon's operation with the expectations for a standard CLI workflow, which assumes the backend lives and dies with the foreground session unless explicitly managed. Additional recommendations included ensuring the daemon stops when the last client disconnects and preventing the daemon from performing self-updates when the CLI was installed externally. Furthermore, the discussion suggested that the daemon should expose provenance information for client attachments, including the client CLI version, daemon binary digest, daemon generation, updater state, and inherited environment generation, to allow clients to clearly distinguish between different states and artifacts. The author noted that this distinction is necessary to prevent regressions where updates to the installed CLI cause unexpected changes to the running daemon context. |