Learning resourcesReviewed · OpenAI

Codex environments

Codex environments is a guide for developers choosing where Codex runs, with the catch that cloud tasks do not automatically inherit their computer's files or access. It explains Local, Worktree and Cloud modes, including how reusable cloud environments differ from individual tasks.

Researched 25 Nov 2026

In short.

Codex environments is a guide for developers choosing local or cloud coding work, with the catch that cloud tasks do not automatically inherit local files, sign-ins or VPN access. It distinguishes working in the current project directory, isolating changes in a Git worktree and running remote tasks. Its most useful details concern separate task files, reusable environment setup and the distinction between permission to use an environment and permission to edit it. Detailed configuration and pricing are not established by this page.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the complete page at [https://learn.chatgpt.com/docs/environments/modes.md], including its documentation-index notice, Markdown-access note and illustration caption. The linked index, Git worktrees, Cloud environments and Codex concepts pages are excluded. Runtime behavior, successful setup, performance, account eligibility and costs were not independently verified.

The overview

Identity

Codex environments is a documentation page about choosing and managing where Codex tasks run. The source is [https://learn.chatgpt.com/docs/environments/modes.md]. It is a guide to a feature, rather than downloadable software or an assistant instruction package.

Assessment

The page is useful for deciding where a task should run and understanding which changes carry across tasks. It provides concrete interface steps and explains several consequential boundaries: both Local and Worktree run on the user's computer, cloud tasks have separate working files, and changing task files does not update a published environment.

It provides orientation rather than a complete cloud configuration reference. Successful setup, task reliability and performance are not demonstrated by the available evidence.

Users

The guide serves developers working in an existing project, developers who want to isolate Git changes, and people starting or continuing cloud tasks across desktop, web and mobile. Enterprise users also get guidance on choosing published environments and requesting access to shared ones.

Capabilities

The guide explains how to choose an execution location, select an available environment, create a cloud environment and reuse setup across tasks. It also distinguishes automatic project repository setup from adding a repository to an already running task.

It explains that changing a published environment's starting point requires updating and republishing its setup with appropriate edit permission.

Using it

Requirements

The desktop instructions begin in the ChatGPT app by selecting Codex. The Worktree control applies to local Git projects. Automatic use of project repositories in the desktop default environment requires repositories hosted on GitHub.com and a connected GitHub account.

Enterprise users are directed to published environments or an administrator for shared access. Supported operating systems, subscription eligibility and detailed repository permissions are not specified.

Mechanism

Local works directly in the current project directory. Worktree isolates changes in a Git worktree while still running on the user's computer. Cloud runs a remote task with its own workspace and working files.

A repository added to a desktop task in the default environment affects that task. A reusable environment supplies setup across tasks, but task file changes do not alter its published starting point. Cloud tasks use the files and services available in their cloud environment.

Setup

In the desktop app, open the ChatGPT dropdown, select Codex and use Work in to choose This computer or Cloud. For a local Git project, the separate Worktree control isolates changes from the current checkout.

To create a cloud environment, start a new task on the web or desktop, choose Work in, then Cloud, open Select environment and choose Create environment. The page says Codex inspects selected repositories and helps prepare and test their setup before publication; this behavior was not independently assessed.

Example

For a developer who wants to make changes separately from their current Git checkout, the documented path is to start a desktop Codex chat, choose This computer and use the Worktree control. The work remains on that computer while changes are isolated in a Git worktree.

This is an illustrative application of the documented steps. No task was executed.

Assessment & evidence

Limitations

Local files, running processes, browser sign-ins and VPN access do not automatically transfer into a cloud task. A task that depends on them needs the corresponding files or services available in its cloud environment.

Automatic desktop project setup excludes GitLab repositories. This does not establish whether other ways of using GitLab are supported. Detailed cloud configuration, environment limits and service authentication are not explained on this page.

Reasoning

A practical inference from the documented boundaries is to choose Local for direct work in the current directory, Worktree when changes need separation from the current checkout, and Cloud when a remote workspace suits the task. Cloud suitability depends on whether its environment contains the required files and services.

The source does not support a claim that any mode produces better code, runs faster or costs less.

Alternatives

The alternatives described are execution choices within Codex: Local, Worktree and Cloud. The page links to Git worktrees and Cloud environments documentation for further detail, but those pages are not assessed here. Competing assistants and alternative tutorials are not compared.

Evidence

The evidence is the complete documentation text at [https://learn.chatgpt.com/docs/environments/modes.md], captured as selected-page.txt, with a recorded size of 2,956 bytes and SHA-256 4f02c4faa929d55d26121296742a203a18e764c7c51814350d65fc70dc192f1f.

The source supplies feature descriptions and interface instructions. It contains no execution logs, benchmarks or independent results. No software, commands or setup steps were run for this report.

Access & freshness

Costs

The page provides no prices, usage allowances, billing rules or subscription requirements. The cost of using these modes, including any difference between local and cloud work, is unknown from this evidence.

Rights

Shared environment access permits use without granting permission to edit the environment. Updating and republishing setup requires edit permission.

The page does not state a documentation redistribution licence or establish rights for project files or generated code. Those rights are unknown from this source.

Freshness

The source was captured on 25 November 2026 at 10:10:57.579 UTC. The page states no publication date, last-updated date or product version. Its capture time does not establish when the instructions were last revised or whether the live interface still matches them.

Actions

Use the guide to choose the execution location, then follow its linked documentation for detailed worktree or cloud setup. Before relying on a cloud task, confirm that its environment has the files and services the task needs.

For setup that must carry across tasks, create a reusable environment. Confirm edit permission before updating and republishing a shared environment's starting configuration.

Evidence for this report

selected-page.txtselected · checked 2026-11-25