Answer: Run `codex exec` with a Codex home on the worker's local disk, and if session files must stay on NFS, set `CODEX_SQLITE_HOME` to a private local directory for each job so workers don't contend for the same database. Status: Confirmed Entry: tool/codex/agents-and-automation/independent-batch-jobs-nfs Revision: 1 Digest: sha256:b6301d667f79737d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:51:12Z Last changed: 2026-11-13T03:51:12Z Last verified: 2026-11-20T13:39:30Z Next check: 2026-11-21T13:39:30Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | codex exec | [1] | 2026-11-20 SQLite home variable | CODEX_SQLITE_HOME | [1] | 2026-11-20 example CODEX_HOME path | /mnt/nfs/codex/jobs/job-1234 | [1] | 2026-11-20 example CODEX_SQLITE_HOME path | /var/local/codex/jobs/job-1234 | [1] | 2026-11-20 ephemeral flag | codex exec --ephemeral | [1] | 2026-11-20 Sources: [1] OpenAI. "Run Codex with an NFS home directory". https://learn.chatgpt.com/docs/environments/network-file-systems.md Role: primary. Accessed: 2026-11-20T13:39:30Z Quote: "run [`codex exec`](https://learn.chatgpt.com/docs/non-interactive-mode) with a Codex home on the worker’s local disk" (Supports: command) Quote: "set `CODEX_SQLITE_HOME` to a private local directory for each job so workers don’t contend for the same database" (Supports: SQLite home variable) Quote: "CODEX_HOME="/mnt/nfs/codex/jobs/job-1234" \" (Supports: example CODEX_HOME path) Quote: "CODEX_SQLITE_HOME="/var/local/codex/jobs/job-1234" \" (Supports: example CODEX_SQLITE_HOME path) Quote: "run [`codex exec --ephemeral`](https://learn.chatgpt.com/docs/non-interactive-mode)" (Supports: ephemeral flag) Snapshot SHA-256: 976da29ea746c0cb9a551fae9766821606bc219ad63314345782e50a7e6d0764 (captured 2026-11-13T03:51:09Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:51:12Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:39:30Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:39:30Z Last attempt: 2026-11-20T13:39:30Z Notes and limitations: Extracted automatically from a single official source (section "Run independent batch jobs"). Related: https://latestn.com/tool/codex/agents-and-automation/interrupt-active-turn How do I interrupt an active turn in Codex app-server? https://latestn.com/tool/codex/agents-and-automation/machine-readable-output How do I make Codex exec output machine-readable or structured with a schema? https://latestn.com/tool/codex/agents-and-automation/products-with-agentic-capabilities Which OpenAI products have agentic capabilities, like Codex and ChatGPT? https://latestn.com/tool/codex/agents-and-automation/create-publish-environment How do I create and publish a reusable environment in Codex Cloud? https://latestn.com/tool/codex/agents-and-automation/delegate-repo-work-codex-cloud-slack How do I delegate repository work to Codex Cloud from Slack? https://latestn.com/tool/codex/agents-and-automation/dot-codex-tasks How can my dot start Codex tasks and follow up on existing Codex threads? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:51:12Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/agents-and-automation/independent-batch-jobs-nfs/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/agents-and-automation/independent-batch-jobs-nfs POST: https://latestn.com/dispute/tool/codex/agents-and-automation/independent-batch-jobs-nfs with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/agents-and-automation/independent-batch-jobs-nfs?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How should I run independent Codex batch jobs when hosts share an NFS home? Revision 1, last verified 2026-11-20T13:39:30Z. https://latestn.com/tool/codex/agents-and-automation/independent-batch-jobs-nfs (accessed 2026-11-21T10:05:40Z). @misc{LatestN_tool_codex_agents_and_automation_independent_batch_jobs_nfs_r1, title = {How should I run independent Codex batch jobs when hosts share an NFS home?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/agents-and-automation/independent-batch-jobs-nfs}}, note = {Revision 1; digest sha256:b6301d667f79737d; last verified 2026-11-20T13:39:30Z; accessed 2026-11-21T10:05:40Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/agents-and-automation/independent-batch-jobs-nfs