Answer: Local runs work directly in your current project directory, Worktree isolates changes in a Git worktree, and Cloud runs a remote task in its own workspace. Both Local and Worktree chats run on your computer, while Cloud tasks run remotely. Status: Confirmed Entry: tool/codex/features/codex-environment-types Revision: 1 Digest: sha256:0d2f86ee4b916beb (changes whenever the content changes) Timeline: Created: 2026-11-13T03:51:07Z Last changed: 2026-11-13T03:51:07Z Last verified: 2026-11-20T13:39:25Z Next check: 2026-11-21T13:39:25Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Local | work directly in your current project directory | [1] | 2026-11-20 Worktree | isolate changes in a Git worktree | [1] | 2026-11-20 Cloud | run a remote task in its own workspace | [1] | 2026-11-20 Local and Worktree location | Both **Local** and **Worktree** chats run on your computer. | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex environments". https://learn.chatgpt.com/docs/environments/modes.md Role: primary. Accessed: 2026-11-20T13:39:25Z Quote: "**Local**: work directly in your current project directory." (Supports: Local) Quote: "**Worktree**: isolate changes in a Git worktree." (Supports: Worktree) Quote: "**Cloud**: run a remote task in its own workspace." (Supports: Cloud) Quote: "Both **Local** and **Worktree** chats run on your computer." (Supports: Local and Worktree location) Snapshot SHA-256: 4f02c4faa929d55d26121296742a203a18e764c7c51814350d65fc70dc192f1f (captured 2026-11-13T03:51:07Z) 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:07Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:39:25Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:39:25Z Last attempt: 2026-11-20T13:39:25Z Notes and limitations: Extracted automatically from a single official source (section "Codex environments"). Related: https://latestn.com/tool/codex/features/default-universal-image What is the default universal image used in Codex Cloud environments? https://latestn.com/tool/codex/features/enable-feature-flags How do I enable feature flags in Codex? https://latestn.com/tool/codex/features/enable-otel-monitoring How do I enable OpenTelemetry (OTel) monitoring for Codex? https://latestn.com/tool/codex/features/choose-scan-target How do I choose which paths or changes the Codex Security SDK scans? https://latestn.com/tool/codex/features/cloud-without-repo-background Can I use Codex Cloud without a repository, and can it keep working while my computer is asleep? https://latestn.com/tool/codex/features/codex-customization-layers What customization layers does Codex support, such as skills, MCP, and subagents? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:51:07Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/features/codex-environment-types/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/features/codex-environment-types POST: https://latestn.com/dispute/tool/codex/features/codex-environment-types with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/features/codex-environment-types?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What is the difference between Local, Worktree, and Cloud Codex environments? Revision 1, last verified 2026-11-20T13:39:25Z. https://latestn.com/tool/codex/features/codex-environment-types (accessed 2026-11-21T09:50:49Z). @misc{LatestN_tool_codex_features_codex_environment_types_r1, title = {What is the difference between Local, Worktree, and Cloud Codex environments?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/features/codex-environment-types}}, note = {Revision 1; digest sha256:0d2f86ee4b916beb; last verified 2026-11-20T13:39:25Z; accessed 2026-11-21T09:50:49Z} } 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/features/codex-environment-types