app/windows.md +182 −35
11# Codex app# Windows
2 2
33The Codex app is a focused desktop experience for working on Codex threads in parallel, with built-in worktree support, automations, and Git functionality.The [Codex app for Windows](https://apps.microsoft.com/detail/9plm9xgg6vks?hl=en-US&gl=US) gives you one interface for
4working across projects, running parallel agent threads, and reviewing results.
5It runs natively on Windows using PowerShell and the
6[Windows sandbox](https://developers.openai.com/codex/windows#windows-sandbox), or you can configure it to
7run in [Windows Subsystem for Linux (WSL)](#windows-subsystem-for-linux-wsl).
4 8
59ChatGPT Plus, Pro, Business, Edu, and Enterprise plans include Codex. Learn more about [what’s included](https://developers.openai.com/codex/pricing).
6 10
711## Download and update the Codex app
8 12
913## Getting startedDownload the Codex app from the
14[Microsoft Store](https://apps.microsoft.com/detail/9plm9xgg6vks?hl=en-US&gl=US).
10 15
1116The Codex app is available on macOS (Apple Silicon).Then follow the [quickstart](https://developers.openai.com/codex/quickstart?setup=app) to get started.
12 17
13181. Download and install the Codex appTo update the app, open the Microsoft Store, go to **Downloads**, and click
19**Check for updates**. The Store installs the latest version afterward.
14 20
1521 The Codex app is currently only available for macOS.For enterprises, administrators can deploy the app with Microsoft Store app
22distribution through enterprise management tools.
16 23
1724 [Download for macOS](https://persistent.oaistatic.com/codex-app-prod/Codex.dmg)If you prefer a command-line install path, or need an alternative to opening
25the Microsoft Store UI, run:
18 26
1927 [Get notified for Windows and Linux](https://openai.com/form/codex-app/)```powershell
20282. Open Codex and sign inwinget install Codex -s msstore
29```
21 30
2231 Once you downloaded and installed the Codex app, open it and sign in with your ChatGPT account or an OpenAI API key.## Native sandbox
23 32
2433 If you sign in with an OpenAI API key, some functionality such as [cloud threads](https://developers.openai.com/codex/prompting#threads) might not be available.The Codex app on Windows supports a native [Windows sandbox](https://developers.openai.com/codex/windows#windows-sandbox) when the agent runs in PowerShell, and uses Linux sandboxing when you run the agent in [Windows Subsystem for Linux (WSL)](#windows-subsystem-for-linux-wsl). To apply sandbox protections in either mode, set sandbox permissions to **Default permissions** in the Composer before sending messages to Codex.
253. Select a project
26 34
2735 Choose a project folder that you want Codex to work in.Running Codex in full access mode means Codex is not limited to your project
36 directory and might perform unintentional destructive actions that can lead to
37 data loss. Keep sandbox boundaries in place and use [rules](https://developers.openai.com/codex/rules) for
38 targeted exceptions, or set your [approval policy to
39 never](https://developers.openai.com/codex/agent-approvals-security#run-without-approval-prompts) to have
40 Codex attempt to solve problems without asking for escalated permissions,
41 based on your [approval and security setup](https://developers.openai.com/codex/agent-approvals-security).
28 42
2943If you used the Codex app, CLI, or IDE Extension before you’ll see past projects that you worked on.## Customize for your dev setup
30 44
31454. Send your first message### Preferred editor
32 46
3347 After choosing the project, make sure **Local** is selected to have Codex work on your machine and send your first message to Codex.Choose a default app for **Open**, such as Visual Studio, VS Code, or another
48editor. You can override that choice per project. If you already picked a
49different app from the **Open** menu for a project, that project-specific
50choice takes precedence.
34 51
3552 You can ask Codex anything about the project or your computer in general. Here are some examples:
36 53
3754- Tell me about this project### Integrated terminal
38- Build a classic Snake game in this repo.
39- Find and fix bugs in my codebase with minimal, high-confidence changes.
40 55
4156 If you need more inspiration, check out the [explore section](https://developers.openai.com/codex/explore).You can also choose the default integrated terminal. Depending on what you have
57installed, options include:
42 58
59- PowerShell
60- Command Prompt
61- Git Bash
62- WSL
43 63
4464## Work with the Codex appThis change applies only to new terminal sessions. If you already have an
65integrated terminal open, restart the app or start a new thread before
66expecting the new default terminal to appear.
45 67
4668[### Multitask across projects
47 69
4870Run multiple tasks in parallel and switch quickly between them.](https://developers.openai.com/codex/app/features#multitask-across-projects)[### Built-in Git tools## Windows Subsystem for Linux (WSL)
49 71
5072Review diffs, comment inline, stage or revert chunks, and commit without leaving the app.](https://developers.openai.com/codex/app/features#built-in-git-tools)[### Worktrees for parallel tasksBy default, the Codex app uses the Windows-native agent. That means the agent
73runs commands in PowerShell. The app can still work with projects that live in
74Windows Subsystem for Linux (WSL) by using the `wsl` CLI when needed.
51 75
5276Isolate changes of multiple Codex threads using built-in Git worktree support.](https://developers.openai.com/codex/app/worktrees)[### Skills supportIf you want to add a project from the WSL filesystem, click **Add new project**
77or press <kbd>Ctrl</kbd>+<kbd>O</kbd>, then type `\\wsl$\` into the File
78Explorer window. From there, choose your Linux distribution and the folder you
79want to open.
53 80
5481Give your Codex agent additional capabilities and reuse skills across App, CLI, and IDE Extension.](https://developers.openai.com/codex/app/features#skills-support)[### AutomationsIf you plan to keep using the Windows-native agent, prefer storing projects on
82your Windows filesystem and accessing them from WSL through
83`/mnt/<drive>/...`. This setup is more reliable than opening projects
84directly from the WSL filesystem.
55 85
5686Pair skills with automations to automate recurring tasks in the background. Codex adds findings to the inbox, or automatically archives runs if there’s nothing to report.](https://developers.openai.com/codex/app/automations)[### Built-in terminalIf you want the agent itself to run in WSL, open **[Settings](codex://settings)**,
87switch the agent from Windows native to WSL, and **restart the app**. The
88change doesn't take effect until you restart. Your projects should remain in
89place after restart.
57 90
5891Open a terminal per thread to test your changes, run dev servers, scripts, and custom commands.](https://developers.openai.com/codex/app/features#integrated-terminal)[### Local environments
59 92
6093Define worktree setup scripts and common project actions for easy access.](https://developers.openai.com/codex/app/local-environments)[### Sync with the IDE extensionYou configure the integrated terminal independently from the agent. See
94[Customize for your dev setup](#customize-for-your-dev-setup) for the
95terminal options. You can keep the agent in WSL and still use PowerShell in the
96terminal, or use WSL for both, depending on your workflow.
61 97
6298Share Auto Context and active threads across app and IDE sessions.](https://developers.openai.com/codex/app/features#sync-with-the-ide-extension)[### MCP support## Useful developer tools
63 99
64100Connect your Codex agent to additional services using MCP.](https://developers.openai.com/codex/app/features#mcp-support)Codex works best when a few common developer tools are already installed:
65 101
102- **Git**: Powers the review panel in the Codex app and lets you inspect or
103 revert changes.
104- **Node.js**: A common tool that the agent uses to perform tasks more
105 efficiently.
106- **Python**: A common tool that the agent uses to perform tasks more
107 efficiently.
108- **.NET SDK**: Useful when you want to build native Windows apps.
109- **GitHub CLI**: Powers GitHub-specific functionality in the Codex app.
66 110
67111Need help? Visit the [troubleshooting guide](https://developers.openai.com/codex/app/troubleshooting).Install them with the default Windows package manager `winget` by pasting this
112into the [integrated terminal](https://developers.openai.com/codex/app/features#integrated-terminal) or
113asking Codex to install them:
114
115```powershell
116winget install --id Git.Git
117winget install --id OpenJS.NodeJS.LTS
118winget install --id Python.Python.3.14
119winget install --id Microsoft.DotNet.SDK.10
120winget install --id GitHub.cli
121```
122
123After installing GitHub CLI, run `gh auth login` to enable GitHub features in
124the app.
125
126If you need a different Python or .NET version, change the package IDs to the
127version you want.
128
129## Troubleshooting and FAQ
130
131### Run commands with elevated permissions
132
133If you need Codex to run commands with elevated permissions, start the Codex app
134itself as an administrator. After installation, open the Start menu, find
135Codex, and choose Run as administrator. The Codex agent inherits that
136permission level.
137
138### PowerShell execution policy blocks commands
139
140If you have never used tools such as Node.js or `npm` in PowerShell before, the
141Codex agent or integrated terminal may hit execution policy errors.
142
143This can also happen if Codex creates PowerShell scripts for you. In that case,
144you may need a less restrictive execution policy before PowerShell will run
145them.
146
147An error may look something like this:
148
149```text
150npm.ps1 cannot be loaded because running scripts is disabled on this system.
151```
152
153A common fix is to set the execution policy to `RemoteSigned`:
154
155```powershell
156Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
157```
158
159For details and other options, check Microsoft's
160[execution policy guide](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_execution_policies)
161before changing the policy.
162
163### Local environment scripts on Windows
164
165If your [local environment](https://developers.openai.com/codex/app/local-environments) uses cross-platform
166commands such as `npm` scripts, you can keep one shared setup script or
167set of actions for every platform.
168
169If you need Windows-specific behavior, create Windows-specific setup scripts or
170Windows-specific actions.
171
172Actions run in the environment used by your integrated terminal. See
173[Customize for your dev setup](#customize-for-your-dev-setup).
174
175Local setup scripts run in the agent environment: WSL if the agent uses WSL,
176and PowerShell otherwise.
177
178### Share config, auth, and sessions with WSL
179
180The Windows app uses the same Codex home directory as native Codex on Windows:
181`%USERPROFILE%\.codex`.
182
183If you also run the Codex CLI inside WSL, the CLI uses the Linux home
184directory by default, so it does not automatically share configuration, cached
185auth, or session history with the Windows app.
186
187To share them, use one of these approaches:
188
189- Sync WSL `~/.codex` with `%USERPROFILE%\.codex` on your file system.
190- Point WSL at the Windows Codex home directory by setting `CODEX_HOME`:
191
192```bash
193export CODEX_HOME=/mnt/c/Users/<windows-user>/.codex
194```
195
196If you want that setting in every shell, add it to your WSL shell profile, such
197as `~/.bashrc` or `~/.zshrc`.
198
199### Git features are unavailable
200
201If you don't have Git installed natively on Windows, the app can't use some
202features. Install it with `winget install Git.Git` from PowerShell or `cmd.exe`.
203
204### Git isn't detected for projects opened from `\\wsl$`
205
206For now, if you want to use the Windows-native agent with a project that is
207also accessible from WSL, the most reliable workaround is to store the project
208on the native Windows drive and access it in WSL through `/mnt/<drive>/...`.
209
210### Cmder is not listed in the open dialog
211
212If Cmder is installed but doesn’t show in Codex’s open dialog, add it to the
213Windows Start Menu: right-click Cmder and choose **Add to Start**, then restart
214Codex or reboot.