Free

Chapter 3. Codex desktop app, CLI, IDE or cloud

Choose the Codex app, CLI or VS Code extension. Find installation steps, sign-in, a first file check and Local, Worktree and Cloud differences.

All chapters

Choose a Codex environment by where the task runs and how it accesses your project: the desktop app, CLI, editor extension or a cloud task. First locate the files and available connections.

Four ways to work

Option When Convenient What to check
Desktop application Projects, files, and result preview in one window Selected folder and execution location
CLI, terminal Commands, repeatable processes, and working alongside other programs Current folder, access and permissions
Code editor extension When you want to see code and changes alongside the chat Installed editor and support for specific function
Cloud Task When a separate remote environment is needed Available project, programs, and connections in the cloud

The desktop app supports file viewing and project work. Features and settings in the editor extension may differ. Don’t look for a plugins button just because it exists in another client. Application, IDE Extension.

How to install and start your chosen client

  1. Desktop app. Open the official ChatGPT download, choose your operating system and sign in with your account. Choose Codex, open a practice folder and start a new chat. Linux has a separate installation guide. Check that the chat uses the intended folder and can read its files.
  2. Codex CLI in your terminal. If Node.js and npm are already installed, run the command below. It installs the official @openai/codex package. If you do not have npm, use the installer for your operating system in the CLI instructions, which cover macOS, Linux and Windows. Choose one installation method.
npm install -g @openai/codex

After installation, open a terminal in your project directory and run codex. On first launch, choose Sign in with ChatGPT or another available sign-in method. Check that Codex opens in the correct project. If your terminal cannot find the command, open a new terminal window and check your chosen installation method. See the official authentication guide for sign-in and access options.

  1. Codex in VS Code. Install the official OpenAI extension. Open your project folder, select the Codex icon and sign in. If the icon is missing, open the Command Palette and run Codex: Open Codex Sidebar. Check that the Codex sidebar opens beside your project files. For Cursor and Windsurf, follow the matching option in the IDE instructions; Xcode and JetBrains have their own integrations.

For a first check, paste this into your chosen Codex client:

Read the files in the open project and briefly explain what is here. Name the folder you are working in and a few files your answer is based on. Do not change anything or run commands yet.

Compare the named files with your folder. Then move to your first small task. Installing the CLI does not install the IDE extension; choose the environment you need for your work.

Local, Worktree, and Cloud

Local means working in your folder. Worktree means a separate Git project working copy on the same computer. It helps separate tasks. Cloud means a separate cloud environment. It requires a prepared environment with project access.

A cloud task does not automatically get local files, programs, signed-in browser sessions, or VPN from your computer. Files and accesses must be prepared in the environment itself. Task locations.

If a cloud task cannot find a document, repeating the request will not give it access. Check where the file is and how it was transferred.

What to watch before starting

Check the project name, working folder, and source version. Then the model and available tools. Choose the model from your account list; names in old videos may no longer match.

The CLI documentation lists /status for state, /model for model selection, /permissions for permissions and /review for change verification. These commands apply to the terminal client; other Codex clients have their own controls. CLI.

Permissions determine what the agent can read, change, and run. Give the necessary access for the task. If a training folder suffices, full disk access does not help verify the example better.

Prepare a separate site project in Codex.

Files, GitHub and voice

Attach a file with an explanation of its purpose. For a layout, specify what to transfer. For a table, explain the meaning of columns. For an error, save the full text and the action after which it appeared.

Connecting GitHub requires the right account and permissions for the project. Reading the project, writing code, and merging changes are different actions. You can prepare edits locally and test them first.

Use voice where available in current version. After dictation, verify file names, numbers, and task limits in text. Spoken name may be recognized differently.

In This Article
Saved