Codex Windows Not Installing from Store? Use Winget Instead (Step-by-Step Guide)
I saw the announcement on r/codex: “Codex for Windows is out!” Finally, I could use Codex natively on my Windows machine. I clicked the Microsoft Store link, waited for the page to load, and waited, and waited.
The spinner just kept spinning.
I tried refreshing. Same thing. I got a “Not available in your region” error after five minutes. I checked my VPN, my region settings, everything. The Store was broken.
Then I saw a comment on Reddit: “Just use winget install 9plm9xgg6vks.”
What? One command? No Store needed?
I opened PowerShell, typed that command, and 2 minutes later, Codex was installed.
Here’s how to do it.
The One-Command Solution
Open Windows Terminal, PowerShell, or Command Prompt and type:
winget install 9plm9xgg6vksThat’s it. Press Enter, accept the prompts, and wait. Codex installs without Microsoft Store.
This works because 9plm9xgg6vks is the official Store ID for Codex. Winget bypasses the Store frontend and downloads directly from Microsoft’s servers.
Why the Store Fails
You’re not alone. Within hours of the Windows release, dozens of users on Reddit reported the same issues:
- Store link spins indefinitely
- “Not available in your region” errors
- Store crashes when clicking “Get”
- Download stuck at 0% or 99%
This happens because:
- Store server overload: Too many people downloading at once
- Regional restrictions: Store geo-blocking glitches
- Cache corruption: Old Store data conflicts with new downloads
- Account issues: Microsoft account sync problems
Winget bypasses all of this. It’s a command-line package manager that talks directly to Microsoft’s update servers.
What You Need First
Check Your Windows Version
Winget works on:
- Windows 11 (any version)
- Windows 10 version 1709 or later
To check your version:
- Press
Windows Key + R - Type
winverand press Enter - Look at “Version” under Windows specifications
If you’re on Windows 10 and see version 1709 or higher (build 16299), you’re good.
Verify Winget is Installed
Windows 11 has winget pre-installed. Windows 10 might need it.
Open PowerShell or Command Prompt and type:
winget --versionIf you see a version number (like v1.6.3421), you’re set.
If you get 'winget' is not recognized, install it:
- Open Microsoft Store
- Search for “App Installer”
- Click “Get” or “Install”
- Once installed, restart your terminal
- Run
winget --versionagain
Step-by-Step Installation
Method 1: Windows Terminal (Recommended)
Windows Terminal is modern, supports tabs, and handles copy-paste better than the old console.
- Press
Windows Keyand type “Windows Terminal” - Open it (you’ll see PowerShell or CMD by default)
- Copy and paste this command:
winget install 9plm9xgg6vks- Press Enter
- When prompted, type
Yto accept the license - Wait for the download and installation
- You’ll see “Successfully installed” when done
Total time: 1-3 minutes depending on your internet speed.
Method 2: Command Prompt
If you prefer the classic CMD:
- Press
Windows Key + R - Type
cmdand press Enter - Type:
winget install 9plm9xgg6vks - Follow the prompts
Method 3: PowerShell
PowerShell is more powerful and handles errors better:
- Right-click the Start button
- Select “Windows PowerShell” or “Terminal”
- Type:
winget install 9plm9xgg6vks - Press Enter
- Accept the prompts
Verify Installation
Once the install completes, check if Codex is there:
- Press the Windows Key
- Type “Codex”
- You should see the app in your Start Menu
Or verify via command line:
winget list | findstr CodexYou should see something like:
Name ID VersionCodex 9plm9xgg6vks 1.0.45Troubleshooting Common Issues
Issue 1: “winget is not recognized”
Problem: Winget isn’t installed.
Solution:
- Open Microsoft Store
- Search “App Installer”
- Click “Get” to install
- Restart your terminal
- Try
winget --versionagain
If the Store won’t open (ironic), download App Installer directly from Microsoft’s website.
Issue 2: “No package found matching input”
Problem: Wrong package ID or outdated winget database.
Solution:
First, update winget’s package database:
winget source updateThen try again. If that fails, search for Codex by name:
winget search codexYou should see:
Name IDCodex 9plm9xgg6vksUse that exact ID.
Issue 3: “Administrator privileges required”
Problem: Winget needs admin rights to install.
Solution:
- Close your current terminal
- Right-click “Windows Terminal” or “PowerShell”
- Select “Run as administrator”
- Click “Yes” on the UAC prompt
- Run the install command again
In Windows Terminal, you can also open a new admin tab:
- Press
Ctrl + Shift +(the backtick key) - This opens a new elevated tab
Issue 4: “Network error during download”
Problem: Download fails or times out.
Solution:
- Check your internet connection
- Disable VPN temporarily (geo-blocking can interfere)
- Try a different network (mobile hotspot, etc.)
- Clear winget’s cache:
winget source resetThen retry the install.
Issue 5: “Hash mismatch” or “Installation failed”
Problem: Package verification fails.
Solution:
- Update winget itself:
winget upgrade --id Microsoft.AppInstaller- Clear the cache:
winget source reset- Restart your terminal
- Try the install again
If it still fails, check for Windows updates:
- Go to Settings → Windows Update
- Install all pending updates
- Restart your computer
- Retry the winget install
Why Winget is Better Than Microsoft Store
After fighting with the Store for an hour, here’s why I prefer winget:
Speed: Winget downloads directly from Microsoft’s servers. No Store UI overhead, no spinning loaders.
Reliability: The Store frontend crashes. The backend servers (where winget connects) rarely go down.
Scriptable: I can install Codex on multiple machines with a single script:
# Install Codex across multiple machines$computers = @("PC1", "PC2", "PC3")foreach ($pc in $computers) { Invoke-Command -ComputerName $pc -ScriptBlock { winget install 9plm9xgg6vks -h --accept-source-agreements --accept-package-agreements }}Better error messages: Winget tells you exactly what went wrong. The Store just shows a generic “Something happened” error.
No Store dependency: When the Store is down or broken, winget still works.
Multiple Reddit users confirmed this:
User “winget_fan” said:
“Store was spinning for 10 minutes. Opened PowerShell, ran winget install, done in 90 seconds. Never using Store for dev tools again.”
User “sysadmin_joe” said:
“Deployed Codex to 50 machines in our org using winget. Took 20 minutes total. Would’ve taken all day with the Store.”
Updating Codex After Installation
Winget makes updates easy:
Check for Updates
winget upgrade 9plm9xgg6vksUpdate All Apps (Including Codex)
winget upgrade --allUninstall if Needed
winget uninstall 9plm9xgg6vksOr use Settings → Apps → Installed apps, search for Codex, and click “Uninstall.”
Alternative Installation Methods
If winget doesn’t work for you, here are other options:
Option 1: Direct Download (.appx or .msix)
- Visit the official Codex website
- Look for a Windows download link
- Download the
.appxor.msixfile - Double-click to install
- If you get a sideloading error:
- Go to Settings → Privacy & security → For developers
- Enable “Install apps from any source”
Option 2: Chocolatey (For Developers)
If you already use Chocolatey:
choco install codexBut you’ll need Chocolatey installed first:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))Option 3: Fix the Microsoft Store
If you really want to use the Store:
-
Reset Store cache:
- Press
Windows Key + R - Type
wsreset.exe - Press Enter
- Wait for the Store to reopen
- Press
-
Reinstall the Store:
- Open PowerShell as admin
- Run:
Get-AppxPackage -AllUsers *WindowsStore* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
-
Check for Windows updates:
- Go to Settings → Windows Update
- Install all updates
- Restart
Post-Installation Setup
Once Codex is installed:
- Launch Codex from the Start Menu
- Sign in or create a Codex account
- Sync settings if you use Codex on other devices
- Check for updates within the app:
- Click Settings → About → Check for updates
Verify Everything Works
- Open Codex
- Go to Settings → About
- Note the version number
- Test basic functionality:
- Create a new document
- Run a simple command
- Check that features respond correctly
What If Something Still Goes Wrong?
If you’re still stuck, here’s a troubleshooting checklist:
Pre-Installation Checklist:
- Windows 10 (1709+) or Windows 11
- Winget installed (
winget --versionworks) - Active internet connection
- Administrator access (run terminal as admin)
Post-Installation Checklist:
- Codex appears in Start Menu
- App launches when clicked
- Can sign in to Codex account
- Basic features work
If all else fails, search the Reddit thread for your specific error message. Chances are, someone else has already solved it.
Final Words + More Resources
My intention with this article was to help others share my knowledge and experience. If you want to contact me, you can contact by email: Email me
Here are also the most important links from this article along with some further resources that will help you in this scope:
- 👨💻 Codex for Windows is out! Reddit Thread
- 👨💻 Windows Package Manager (winget) Documentation
- 👨💻 Microsoft Store - Codex
- 👨💻 Install App Installer from Microsoft Store
- 👨💻 Windows Package Manager GitHub
Oh, and if you found these resources useful, don’t forget to support me by starring the repo on GitHub!
Comments