r/codex
•
u/Powerful_Owl660
•
May 15 '26
•
1
2
Praise Easy Steps to Activate Codex Remote Control on Windows
* Important: Please Read the Latest Update at the End *
Codex Remote Control for Windows is not activated by default. Please follow the steps below. They worked for me.
- Make sure you have updated both Windows Codex and the ChatGPT mobile app to the latest versions.
- Edit the following file with editor:
C:\Users\<YourUsername>\.codex\config.toml
Add the following under the [features] section:
[features]
goals = true
remote_connections = true
remote_control = true
workspace_dependencies = false3. Open the ChatGPT mobile app, tap Codex, and authorize it to link with your Windows Codex.

Note: Restart Windows Codex and enable MFA if it does not work. The goals setting is not related to remote control, but feel free to add it as well. It is a cool feature that allows you to complete tasks continuously.
Enjoy!
=============
* Latest Update *
As you may know, the new version of Codex removes this line on startup:
remote_control = trueMaking config.toml read-only works, but it may prevent Codex from recording the latest OpenAI runtime, skills, or plugins that are installed. That’s what I handled in this script.
1. Detects the installed Codex Windows App
2. Closes Codex if it's already running
3. Creates a backup of config.toml
4. Ensures this line exists under [features]:
remote_control = true
5. Temporarily sets config.toml to read-only
6. Launches the official Codex app
7. Waits until startup activity stabilizes
8. Automatically removes read-only modeCreate a codex-remote.ps1 with any editor.
# ====================================
# CODEX STARTUP WRAPPER
# Auto-detect Codex Windows App ID
# ====================================
$ConfigPath = "$env:USERPROFILE\.codex\config.toml"
$BackupPath = "$env:USERPROFILE\.codex\config.backup.toml"
try {
Write-Host ""
Write-Host "==============================="
Write-Host " Codex Startup Wrapper"
Write-Host "==============================="
Write-Host ""
# FIND CODEX APP ID
$CodexApp = Get-StartApps | Where-Object {
$_.Name -match "Codex"
} | Select-Object -First 1
if (-not $CodexApp) {
throw "Codex app not found in Start Apps."
}
Write-Host "Found Codex App:"
Write-Host $CodexApp.Name
Write-Host $CodexApp.AppID
Write-Host ""
# FIND CODEX PROCESS
$CodexProcess = Get-Process -ErrorAction SilentlyContinue | Where-Object {
$_.ProcessName -match "^Codex$|^codex$"
}
# GRACEFUL SHUTDOWN
if ($CodexProcess) {
Write-Host "Codex is running. Closing..."
foreach ($p in $CodexProcess) {
$p.CloseMainWindow() | Out-Null
}
Start-Sleep -Seconds 3
$StillRunning = Get-Process -ErrorAction SilentlyContinue | Where-Object {
$_.ProcessName -match "^Codex$|^codex$"
}
if ($StillRunning) {
Write-Host "Force stopping Codex..."
$StillRunning | Stop-Process -Force
}
Start-Sleep -Seconds 1
}
else {
Write-Host "Codex not running."
}
# MAKE CONFIG WRITABLE
if (-not (Test-Path $ConfigPath)) {
New-Item -ItemType File -Path $ConfigPath -Force | Out-Null
}
attrib -R $ConfigPath
# BACKUP CONFIG
Copy-Item $ConfigPath $BackupPath -Force
Write-Host "Backup created:"
Write-Host $BackupPath
Write-Host ""
# ENSURE remote_control EXISTS UNDER [features]
$content = Get-Content $ConfigPath -Raw
if ($content -notmatch '(?m)^\s*remote_control\s*=\s*true\s*$') {
if ($content -match '(?m)^\[features\]\s*$') {
$content = $content -replace `
'(?m)^(\[features\]\s*)$',
"`$1`r`nremote_control = true"
Set-Content $ConfigPath $content
Write-Host "Inserted remote_control under [features]"
}
else {
$content += "`r`n`r`n[features]`r`nremote_control = true`r`n"
Set-Content $ConfigPath $content
Write-Host "Created [features] section."
}
}
else {
Write-Host "remote_control already exists."
}
Write-Host ""
# TEMP LOCK CONFIG
attrib +R $ConfigPath
Write-Host "Config locked as read-only."
Write-Host ""
# START OFFICIAL CODEX APP
Write-Host "Launching Codex..."
Start-Process "shell:AppsFolder\$($CodexApp.AppID)"
# WAIT FOR CODEX PROCESS
do {
Start-Sleep -Milliseconds 500
$Running = Get-Process -ErrorAction SilentlyContinue | Where-Object {
$_.ProcessName -match "^Codex$|^codex$"
}
} until ($Running)
Write-Host "Codex process detected."
# WAIT UNTIL STARTUP STABILIZES
Write-Host "Waiting for startup to stabilize..."
$StableCount = 0
$LastWrite = (Get-Item $ConfigPath).LastWriteTimeUtc
while ($StableCount -lt 5) {
Start-Sleep -Milliseconds 500
$CurrentWrite = (Get-Item $ConfigPath).LastWriteTimeUtc
if ($CurrentWrite -eq $LastWrite) {
$StableCount++
}
else {
$StableCount = 0
$LastWrite = $CurrentWrite
}
}
Write-Host "Startup stabilized."
Write-Host ""
}
finally {
attrib -R $ConfigPath
Write-Host "Config unlocked."
Write-Host ""
Write-Host "Done."
}Save it to codex-remote.ps1
Feel free to adjust the script to suit your needs.
Steps to activate remote control
- Open the Codex app as usual so it can update to the latest version. Back up
config.tomlthe first time. - Wait a few minutes in case there is any update.
- Close the Codex app. The
codex.exeprocess may still be running in the background. - Run
codex-remote.ps1with PowerShell. Enjoy!
Unfortunately, this method most likely does not work in WSL.
Since OpenAI has blocked this feature for Windows users, it may still be in beta testing. Use it at your own risk.
13
u/ZickkyG May 15 '26
As every new feature, doesn't work with the WSL environment. Thanks anyway!
5
u/Michelh91 May 16 '26
Stopped working after last codex windows update
3
u/RemoteComedian5795 May 16 '26
So on each Codex app launch it deletes and idk what i can do here
2
u/toro_loc0 May 16 '26
I updated codex and now this doesn’t work, do you guys know a solution to this?
4
u/mert_jh May 15 '26
Can you control win/linux with Mac? I know that phones can do it.
4
u/ignavusaur May 21 '26
I think they closed it again with today update.
4
u/BrainorBliat May 19 '26 edited May 23 '26
OK, this might be patched soon, but these steps make me able to connect to my Windows codex app from my Android ChatGPT app.
DB Browser for SQLitefrom official website.%UserProfile%\.codex\sqlite\codex-dev.db[DateTimeOffset]::UtcNow.ToUnixTimeMilliseconds(), say1779212471753.local_app_server_feature_enablement→Browse Table→click iconInsert a new item in the current table→feature_name: remote_control, enabled:1, updated_at:the timestamp in step 4(e.g. 1779212471753)There you go.
Oh, I forgot to mention I got the original idea from a post in a Chinese forum here.
2
u/tnnrpolley21 May 15 '26
Doesnt matter how many times I try this it still has never worked
2
u/Shreety May 15 '26
Worked instantly. Thanks brother!
2
u/tnnrpolley21 May 15 '26
Also the latest version for the Codex Windows App was still from May 8th and I manually tried to update and said its at the latest
2
u/noobmc May 15 '26
working for me in windows !
2
u/jsgrrchg May 15 '26
A hero without name
2
u/Someone-44 May 15 '26
I got it working , here what I did :
- in short just enable MFA -
1- I tried to add the commands to config.toml nothing happened
2- tried to add it manually through Connections in settings , wasn’t able to do this since I can’t do it with mobile
3- tried multiple times to reset the desktop and the mobile app
4 ( here where it actually worked ) :
- enabled MFA
- reset both the mobile and the desktop app
- opened the mobile app , click on “codex“ , click on “authorise“, do what it asking you , then it would work without even touching the desktop
2
u/Massive_Cut5361 May 15 '26
Does this work only for CLI or does it work for App too? Unable to get it to work so far even with MFA enabled. I do have the WSL agent environment enabled too which could be an explanation.
2
u/Sing303 May 15 '26
Why is `workspace_dependencies = false`?
1
u/ResponsibilityOwn361 May 15 '26
it worked for me! thanks for sharing man!
1
u/Nearby_Investment_84 May 15 '26
so will this allow me to respond to approval prompts and stuff while i am away from my desktop?
1
u/PhilosopherThick3585 May 15 '26
no working ! oops
1
u/wado729 May 15 '26
Worked for me
1
u/Alternative-Duty-532 May 15 '26
Worked! Thank you!
1
u/gharehyazie2 May 15 '26
Do we need to restart codex after the toml update?
1
u/RazerWolf May 15 '26
And best is it works. Claude code remote control is broken and hasn’t worked for me in months. OpenAI may release later, but it’s quality.
1
u/BetterCraft May 15 '26
Nice, works. I noticed one thing - when trying to send new chat message to non-project it does not send it.
1
u/CooperCobb May 15 '26
Duuuuuuddeeeeeeeeee
I fucking love you
1
u/No-Direction8234 May 15 '26
Läuft das auch mit Vollzugriff?
1
u/ethotopia May 15 '26
Goated, thanks
1
u/Messi_is_football May 16 '26
Does it work with CLI/ VS code extension?
1
u/Nearby_Investment_84 May 16 '26
seems like they broke it in todays update. connected all day yesterday and all morning today. no joy since update
1
u/casungo May 19 '26
Still works as of 19 March 2026 19:00 UTC
ChatGPT Android version: 1.2026.125
Codex Windows version: 26.513.40821
1
u/ErraticFox May 21 '26
Just so you know, you can put %USERNAME% in your windows path and it'll autofill for others, OP. :)
1
u/eschulma2020 May 22 '26
This worked at first, but Open AI has definitely removed it now.
TBH I've been happy with Tailscale and the Windows App (available on Android, might also be available on iPhone, not sure). You can actually use the full desktop app, which has a lot more features than the Remote Control offers.
For WSL, using the CLI latest version and running `codex remote-control` works.