How to Install Codex Dream Skin on Windows (Fix Common Errors)
Overview
Codex Dream Skin applies a reversible renderer skin through Chromium DevTools Protocol while launching the official Store-installed Codex executable. It never replaces or takes ownership of files under WindowsApps, keeping your installation safe and preserving the official package signature.
All native functionality remains intact: sidebar, suggestion cards, project picker, composer, and menus stay fully interactive. Only the decorative banner and background layers are customized.
Prerequisites
- Windows 10/11
- Official Codex Desktop app installed from Microsoft Store and launched at least once
- Node.js 22 or newer (download here)
- Git installed (to clone the repository)
- PowerShell (built-in; PowerShell 7+ recommended for better error handling)
Step-by-Step Installation
1. Download the Dream Skin repository
Open PowerShell or Command Prompt and clone the repository:
git clone https://github.com/Fei-Away/Codex-Dream-Skin.git
cd Codex-Dream-Skin\windows
2. Close Codex if it's running
Make sure Codex is completely closed before proceeding. Check Task Manager to confirm no Codex processes are running.
3. Run the install script
Open PowerShell in the windows directory and run:
.\scripts\install-dream-skin.ps1
This script will:
- Set the matching official base colors in your Codex config
- Create launch and restore shortcuts on your Desktop
- Set up state storage in
%LOCALAPPDATA%\CodexDreamSkin
4. Start the skin
Double-click Start Codex Dream Skin.lnk on your Desktop, or run:
.\scripts\start-dream-skin.ps1
The script will:
- Discover the current Codex Store package dynamically
- Find a free CDP port (default 9335, auto-adjusts if occupied)
- Launch Codex with CDP bound to
127.0.0.1only - Inject the custom Dream/Fiona-style pink-purple theme
Note: If Codex is already running, the shortcut will ask before restarting. CLI users must add -RestartExisting flag explicitly.
How to Verify It's Working
After launching, check for these signs:
- Custom banner: The Dream-style pink-purple banner appears at the top
- Themed background: The task view shows the Dream skin background
- Native controls preserved: Sidebar, project picker, and composer buttons work normally
- Injection marker: Check the window title or developer tools for the skin marker
You can also use the verification script:
.\scripts\verify-dream-skin.ps1 -ScreenshotPath "C:\path\to\screenshot.png"
The script will check for the hero banner, native composer, sidebar skin, and injection marker.
How to Restore the Official Appearance
Double-click Restore Codex Official Theme.lnk on your Desktop, or run:
.\scripts\restore-dream-skin.ps1
This will:
- Remove the live skin
- Close the saved CDP session
- Reopen Codex normally without the skin
To also restore the original appearance settings from backup:
.\scripts\restore-dream-skin.ps1 -RestoreBaseTheme
Your configuration, chat history, and authentication state remain untouched.
Troubleshooting
Microsoft Store version shows "Access Denied" error
Symptom: When starting the skin, you see an "Access Denied" or "拒绝访问" error.
Cause: The Store-installed Codex executable has restricted launch permissions that standard paths can't bypass.
Solution: The latest version of the Dream Skin repository includes a fix that uses the shell:AppsFolder method to launch Store apps correctly. To apply the fix:
- Pull the latest repository changes:
cd Codex-Dream-Skin git pull - Re-run the install script:
cd windows .\scripts\install-dream-skin.ps1 - Start the skin again
If you're already on the latest version and still see this error, check the repository issues for updates.
Windows SmartScreen blocks the script
Symptom: When running the PowerShell scripts, SmartScreen shows a warning like "Windows protected your PC" or "Microsoft Defender SmartScreen prevented an unrecognized app from starting."
Why this happens: The scripts are not digitally signed, so SmartScreen flags them as potentially unsafe.
Solution:
- Verify the source first: Make sure you cloned from the official repository (
https://github.com/Fei-Away/Codex-Dream-Skin) - Click "More info" in the SmartScreen dialog
- Click "Run anyway"
Important: Do NOT disable SmartScreen globally. It's a useful security feature. Only bypass it for scripts you trust from verified sources.
PowerShell shows NativeCommandError or red text
Symptom: When running the scripts in PowerShell 5.1, you see red error text mentioning NativeCommandError or stderr redirection issues, even though the script appears to work.
Cause: PowerShell 5.1 wraps native executable stderr output (like from Node.js) into ErrorRecord objects, causing cosmetic errors that don't reflect actual failures.
Solutions:
-
Option 1 (recommended): Install PowerShell 7+
- Download from https://github.com/PowerShell/PowerShell/releases
- Run scripts in PowerShell 7 instead of Windows PowerShell 5.1
-
Option 2: Use the latest scripts from the repository, which include workarounds for PowerShell 5.1 stderr handling
-
Option 3: Ignore the red text if the script completes successfully and the skin appears. Check the actual exit code with
$LASTEXITCODEafter running.
After a Codex update, the skin stops working
This is expected. Codex updates may change internal renderer targets or package paths. To fix:
- Pull the latest version of the Dream Skin repository:
cd Codex-Dream-Skin git pull - Re-run the install script:
cd windows .\scripts\install-dream-skin.ps1 - Start the skin again
If it still doesn't work, check this gallery for compatibility status updates or wait for upstream adaptation.
Node.js not found
Symptom: The script reports that Node.js is not installed or not found.
Solution: Install Node.js 22 or newer from nodejs.org. After installation, close and reopen PowerShell to refresh the PATH, then try again.
The skin appears but some elements look wrong
Check the reference QA inventory in references/qa-inventory.md in the repository to understand expected vs. unexpected rendering. Report unexpected behavior in the repository issues.
Resources:
- Official Dream Skin Repository
- Back to Gallery
- Need help? Check the repository issues or open a new one.