Codex on Windows: the desktop app, the CLI, and WSL
Codex on Windows comes as the ChatGPT desktop app and a CLI, both native or in WSL2. Install commands, Windows 10 or 11, and the errors people hit.


The short answer
Yes, Codex runs on Windows. OpenAI's Codex app for Windows is the ChatGPT desktop app from the Microsoft Store: sign in and choose Codex. It runs natively in PowerShell with a Windows sandbox, or you can switch it to WSL2. The Codex CLI runs on Windows too. Windows 11 is recommended; an up-to-date Windows 10, version 1809 or later, works on a best-effort basis.
- The ChatGPT desktop app, then Codex
- You want windows, diffs and a review pane
- Codex CLI in PowerShell
- You prefer the terminal
- Codex in WSL2
- You need Linux tools, or your repositories live in WSL2
- Mirasim
- Codex next to Claude Code, or your sessions on your phone
Install the Codex desktop app on Windows
Download the ChatGPT desktop app from the Microsoft Store (the link is on OpenAI's page, learn.chatgpt.com/docs/windows/windows-app), or install it from PowerShell:
winget install --id 9PLM9XGG6VKS -s msstoreOpen ChatGPT, sign in with your ChatGPT account, and choose Codex when you send your first message. The Windows app has worktrees, scheduled tasks, Git, the built-in browser, file previews, plugins and skills.
| Windows version | OpenAI's support |
|---|---|
| Windows 11 | Recommended |
| Windows 10, fully updated | Best effort; needs version 1809 or later for its console support |
| Older Windows 10 builds | Not recommended |
OpenAI also expects winget to be available. If it's missing, update Windows or install the Windows Package Manager first.
Native Windows or WSL2
- By default the app's agent runs commands in PowerShell, inside the Windows sandbox. To apply the sandbox, select Ask for approval beneath the composer.
- To run the agent in WSL2 instead, open Settings, switch the agent from Windows native to WSL, and restart the app. The change only takes effect after the restart.
- To open a project that lives in WSL, choose Add new project or press Ctrl+O and type
\\wsl$\in the file picker. If you keep the Windows-native agent, OpenAI says projects on the Windows drive are more reliable. - The integrated terminal is set separately: PowerShell, Command Prompt, Git Bash or WSL.
- WSL1 isn't supported since Codex 0.115.
Install Codex CLI on Windows
In a new PowerShell window, run OpenAI's installer. The same command updates it later:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
# start in your project and sign in
codexnpm works as well: npm install -g @openai/codex. To use the CLI inside WSL2, run wsl --install from PowerShell as an administrator, open the WSL shell with wsl, and install with curl -fsSL https://chatgpt.com/codex/install.sh | sh.
Article · How to install and update Codex CLI on macOS, Windows and Linux → Every way to install and update Codex CLI.
Common problems on Windows
npm.ps1 cannot be loaded because running scripts is disabled on this system- PowerShell's execution policy is blocking scripts. OpenAI's common fix is
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned; read Microsoft's execution policy guide before you change it. - Git features are missing in the app
- Install Git natively on Windows with
winget install --id Git.Git. OpenAI also suggests Node.js, Python and GitHub CLI; rungh auth loginafterwards for the GitHub features. - A command needs administrator rights
- Start the ChatGPT app itself with Run as administrator from the Start menu. The Codex agent inherits that permission level.
- Sandbox setup fails, or error 1385, on a work laptop
- Company policy is blocking part of the sandbox setup, such as creating local users, firewall rules or logon rights. Ask your IT team; if policy allows, the weaker unelevated sandbox works in the meantime.
- The IDE extension is installed but doesn't respond
- Install Visual Studio Build Tools with the C++ workload (
winget install --id Microsoft.VisualStudio.2022.BuildTools -e) and the Visual C++ Redistributable, then fully restart VS Code.
Codex in Mirasim on Windows
- A Windows desktop app
- An installer for x64 and Arm64, Windows 10 1809 or later
- Codex CLI, as it is
- On your ChatGPT sign-in, an API key or Mirasim credit; install it from Agent Config if it isn't there yet
- Next to other agents
- Claude Code and other agents in panes beside Codex, and switch agents without losing the conversation
- From your phone
- Follow the same sessions from the Mirasim phone apps, or share them with teammates
Goal boards aren't available on Windows yet. Mirasim is not an OpenAI app.
Questions
- Is there an official Codex app for Windows?
- Yes. It's the ChatGPT desktop app for Windows, from the Microsoft Store; you choose Codex inside it.
- Does Codex work on Windows 10?
- A fully updated Windows 10, version 1809 or later, can work, but OpenAI calls it best effort and less reliable than Windows 11.
- Do I need WSL?
- No. The app and the CLI run natively with the Windows sandbox. OpenAI suggests WSL2 when you need Linux tools or your work already lives there.
- Does Codex on Windows need a paid plan?
- Nothing differs from other systems: sign in with a ChatGPT account that includes Codex, or use an API key.
Article · The Codex app: where to get it now, and running Codex next to other agents → The Codex app on macOS, Windows and phones.
Article · Codex on Linux: the desktop app, the CLI, and servers without a screen → Codex on Linux: the desktop app, the CLI and servers.
Sources
Checked on November 24, 2026 against OpenAI's documentation (learn.chatgpt.com/docs: windows/windows-app, windows/windows-sandbox, windows/wsl, the Codex CLI page and the desktop app page). Check those pages for the latest.
Keep reading

Code review with Claude Code and Codex: /review, GitHub reviews and a second opinion
Code review with Claude Code and Codex: /review for local changes, automatic GitHub PR reviews, where review rules go, and a second opinion from the other agent.

Hooks in Claude Code and Codex: run your own commands when the agent acts
What hooks are in Claude Code and Codex, where they go, when they fire, and examples: a notification, formatting after edits, blocking edits to protected files.

Claude Code and Codex permission modes: auto, plan, --dangerously-skip-permissions and --yolo
What each Claude Code and Codex permission mode allows without asking, what --dangerously-skip-permissions and --yolo turn off, and safer ways to get fewer prompts.