Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Codex Desktop App

Codex Desktop App

Currently, there are three mainstream ways to use Codex:

Method Suitable for Recommendation
Web version Light experience ⭐⭐
CLI command-line version Heavy developers ⭐⭐⭐⭐
Desktop application Most people ⭐⭐⭐⭐⭐

Codex App is the officially recommended desktop client, providing complete features and a smooth multi-project parallel experience.


Download and Installation

Codex App supports macOS (Apple Silicon) and Windows.

Download address:https://chatgpt.com/codex

Platform Download methods
macOS Download from the official website or Homebrew
Windows Download the installer from the official website


First-time use

After installation, follow these steps to begin:

1. Open Codex App

2. Log in with a ChatGPT account or OpenAI API Key

If you log in with an API Key, some cloud features may be unavailable.

3. After successful login, the interface is as follows:

When just starting out, we can focus on conversations and projects. Chatting works just like the regular ChatGPT web version.

Project ( Project ) can be understood as: a combination of ChatGPT's chat + the IDE's project directory + the AI Agent's long-term memory.

A Project ( Project ) binds to a folder on your computer, and Codex only works within this directory.

Here I select "Add new project" to add codex-runoob-test:

Once added, the project's name can be seen on both the left and right sides, and multiple projects can be selected from the list:

4. Send the first Prompt to start using


Interface structure

Codex App mainly contains the following areas:

Area Function
Project sidebar Manage multiple projects and switch quickly
Project list Display all conversations, with support for filtering and archiving
Review panel View file changes made by Codex
Terminal panel A separate built-in terminal for each project
Skill selector Browse and enable custom skills

Area Position Description

Navigation buttons

Back/forward arrows in the upper left corner

Used to switch between historical conversations or pages, similar to a browser's forward and back.
New chat Top of the left-side menu Quickly start a temporary AI conversation without entering a specific project context, suitable for lightweight tasks such as direct questions, code explanation, and command generation.
Search Left-side menu Search historical conversations, project content, files, or task records. Very important in large projects, equivalent to the global search entry of an AI IDE.
Plugin Left-side menu Manage and invoke plugin capabilities, such as GitHub, terminal, database, file system, browser tools, and other extensions.
Automation Left-side menu Create automated tasks, such as: scheduled daily report generation, periodic repository checks, automatic script execution, reminders, etc.
Projects Middle of the left side Project workspace management area. Each project is usually bound to a code repository, directory, or workspace.
New project Left-side project area Create a new project. After creation, it is usually associated with a local folder, Git repository, or remote code environment.
Chats Bottom of the left side Global chat history area, used to manage non-project conversations.
Filter button

Funnel icon on the right side of the chat bar

Filter chat records, for example by project, time, or type.
New chat button Edit icon on the right side of the chat bar Create a new independent chat project.
Main workspace Central black area Codex's core interaction area, including AI conversation, code generation, Agent execution, file modification result display, etc.
"What should we do?" Center of the main area Welcome screen prompt that guides the user to start a task.
Input Box Large input box at the bottom center Enter natural language instructions to Codex, such as: generate code, fix bugs, analyze a project, refactor architecture, etc.
@ plugin hint Input box placeholder text Supports through @ invoking plugins or tools, for example @terminal、@github、@browser , etc.
File mention feature Input box placeholder text You can directly drag files or reference project files so the AI analyzes specific code.
"+" button Lower left of the input box Add attachments, files, images, or additional context.
Default permissions Bottom left of the input box Control the execution permissions of the AI Agent, such as: read-only, allow file editing, allow command execution, etc.
Model selector (in 5.5) Lower right of the input box Area for switching the currently used model version. Usually you can switch between models of different capability levels.
Microphone button Lower right of the input box Voice input feature.
Send button Circular arrow at the far right of the input box Submit the current task to Codex.
"Enter project work" Below the input box Enter the real project Agent mode. The AI understands context based on the entire code repository, rather than ordinary chat.
Globe icon Top right Network or remote connection related features, possibly used for online mode, syncing, or remote environments.
Sidebar button in the upper right corner Rectangular icon in the upper right corner Control the display of the right-side additional panels, such as logs, terminal, file tree, Agent status, etc.

Three run modes

Each project can choose from three running modes:

Mode Description Applicable scenarios
Local Work in the local project directory Daily development, directly view results
Worktree Work in a separate Git worktree Isolate changes, parallel development
Cloud Run in an isolated cloud environment Remote delegation, parallel processing

Mode selection

When creating a new project, select the mode below the input box:

Worktree mode uses Git worktree technology, allowing work on different branches simultaneously.


Review mode

Review mode lets you view and approve the changes made by Codex.

Review panel features

Function Description
Diff viewing Display detailed comparisons of all file changes
Inline comments Add comments on specific lines of code
Chunk operations Choose to accept or reject by code block
Commit as a whole Create a Git commit or push changes

Switch review view

The review panel supports two views:

Review operations

Keyboard shortcut operations

Cmd + Option + B    

Toggle the review panel

Cmd + Shift + P    

Open the command menu

Review flow

1

. View file changes

2

. Click a code block to accept

/

rejected

3

. Add a comment

4

. Commit or push


Automations

Automations let you schedule Codex to run tasks periodically in the background.

Prerequisites

Create an automation

  1. Open the Automations panel in the sidebar
  2. Click "New Automation"
  3. Configure the trigger frequency and task description
  4. Set the sandbox mode

Automation examples

Task Description
Automatic skill creation Scan conversation files and update skills to make them more effective
Daily briefing Analyze recent commits and generate a change summary
Bug monitoring Check telemetry errors and attempt automatic fixes

Automation task results are added to the Triage inbox and archived automatically when there are no results.


Worktrees management

Codex App has built-in Git worktree support.

Worktree advantages

Handoff flow

Handoff allows switching between Local and Worktree:

  1. Complete the task in the Worktree
  2. Create a commit and PR
  3. Choose Handoff to Local to continue testing

A Worktree only inherits files in Git; files in .gitignore do not move with the project.


Local environment configuration

Use Local Environments to define setup scripts and common operations for worktrees.

Setup scripts

Scripts that run automatically when a new worktree is created:

Setup script example

.codex/setup.sh

npm

install

       

Install dependencies

npm run build      

Build the project

Actions

Define common tasks for quick access in the top action bar:

Action Description
Start the Dev Server Run npm run dev
Execute the Test Run the test suite
Code Formatting Run prettier

Keyboard shortcut

Keyboard shortcut Function
Cmd + Shift + P Command menu
Cmd + N Create a new project
Cmd + Shift + [ / ] Switch project
Cmd + Option + B Toggle the review panel
Cmd + J Switch terminal
Ctrl + M Voice input
Cmd + O Add project

Common questions

Q: How do the App and CLI/IDE stay in sync?

When using the App and the IDE extension in the same project, they automatically sync Auto Context and the active project.

Q: How do I find archived projects?

In Settings, view Archived Threads and select Unarchive to restore them.

Q: Does the worktree code differ from the local copy?

A worktree only inherits files from Git. You need to set up scripts to install dependencies and build.

Q: Do differing App and CLI versions cause feature differences?

Check the version: for the CLI, use codex --version, and for the App, use the About menu.