How to enable Codex remote control with only the Codex CLI and no ChatGPT app

Codex remote control lets you send instructions from your phone to Codex running on your home PC while you're away. To use remote control, you usually need to keep the ChatGPT app running on your PC.
The ChatGPT app has excellent overall quality, but I ran into an issue where my entire PC became much less responsive after I opened the app or launched a project. I ended up uninstalling the ChatGPT app.
You can use a hidden flag to start remote control with the Codex CLI alone, without installing the ChatGPT app.
Command to start remote control from the Codex CLI
Run the following command to start remote control from the Codex CLI.
codex app-server --remote-control --listen offThis command keeps running, so leave the terminal where you started it open for as long as you want to use remote control. You can then control Codex from the ChatGPT mobile app without installing the ChatGPT app on your PC.
Some articles say you can start remote control with codex remote-control, but this command produced an error on Windows.
$ codex remote-controlStarting app-server daemon with remote control enabled...Error: codex app-server daemon lifecycle is only supported on Unix platformsPairing with only the Codex CLI
Before you can use the remote control command above, you need to pair remote control with the ChatGPT app.
You can pair from the CLI with codex remote-control pair, but this command also fails on Windows with the error Error: codex app-server daemon lifecycle is only supported on Unix platforms.
On Windows, run the following command in PowerShell to generate a pairing code. On the pairing screen in the ChatGPT mobile app, select "Pair manually" and enter the pairing code.
$psi = [Diagnostics.ProcessStartInfo]::new( "cmd.exe", '/d /s /c "codex app-server --remote-control"')$psi.UseShellExecute = $false$psi.RedirectStandardInput = $true$psi.RedirectStandardOutput = $true$p = [Diagnostics.Process]::Start($psi)
$p.StandardInput.WriteLine('{"id":1,"method":"initialize","params":{"clientInfo":{"name":"codex_remote_pair","title":"Codex Remote Pair","version":"1.0"},"capabilities":{"experimentalApi":true}}}')do { $r = $p.StandardOutput.ReadLine() | ConvertFrom-Json } until ($r.id -eq 1)
$p.StandardInput.WriteLine('{"method":"initialized"}')$p.StandardInput.WriteLine('{"id":2,"method":"remoteControl/pairing/start","params":{"manualCode":true}}')$p.StandardInput.Flush()
do { $r = $p.StandardOutput.ReadLine() | ConvertFrom-Json } until ($r.id -eq 2)$r.result.manualPairingCodeVerification details and sources
Verification environment
- OS: Windows 11
- Codex CLI version 0.147.0
Verification details
On Windows, I confirmed that codex remote-control returns an error, while codex app-server --remote-control --listen off starts remote control without issues.
Last verification date
Share this article
Follow us for updates
Adding us to your preferred sources on Google makes it easier to find our articles on Google. Also, be sure to follow us on X and our RSS feed.
Related articles
- ChatGPT Windows app bug leaves chats blank and blocks login
- Claude subscriptions can no longer be used with third-party tools such as OpenClaw; extra usage bundles or an API key are required
- GitHub Copilot student discount no longer allows selecting GPT-5.4 or Claude, with some models limited to Auto mode only amid plan reorganization
- How to remove Chrome’s [Ask Gemini] button: steps to hide the distracting button
- GitHub to use Copilot data for AI training from April 24; how to opt out?
-1.png&w=1080&q=75)
I've been using JavaScript more than my native language since birth. I am nowhere and everywhere on the internet.
I build web apps and browser extensions in TypeScript as a web frontend programmer. I released Shadowban Scanner, a tool that detects shadowbans on X, and Restore Link Card, a tool that brings back link cards. Media outlets in Japan and abroad covered both tools. For iGEM 2023, I built the Wiki for Team Japan-United and helped the team win the Grand Prize. On my blog, I cover news about X and social media, test and troubleshoot bugs, and share frontend development insights.





![Screenshot of a Chrome window with an [Ask Gemini] button and a context menu below it showing an [Unpin] option](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fchrome-gemini-unpin-english.png&w=1080&q=75)
![A screenshot of X's post, showing a [Relevant] dropdown menu and a [View activity] button below the reply, repost, and other buttons.](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fx-web-view-activity-button-english.png&w=1920&q=75)
![G HUBのウィンドウの中央に「G」ロゴが表示されており、その下にはプログレスバーと[ローカライゼーションを読み込み中]というテキストが表示されている](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fg-hub-loading-localizations-screen.png&w=3840&q=75)
![[新しいXチャットへようこそ]というテキストが画面に大きく表示されており、その下には次の3つの説明が表示されている。[エンドツーエンドの暗号化:メッセージは、端末にかかわらずエンドツーエンドで暗号化されています。][最先端のプライバシー:Xを含め、他の人がメッセージを読むことはできません。][パスコードを設定:メッセージを保護するため、4桁のパスコードを設定してください。]これらの説明の下には、[パスコードを作成]という大きなボタンが配置されている](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fwelcome-to-new-chat.png&w=1920&q=75)


![Screenshot of the VS Code settings screen with [Workbench > Experimental: Modern UI] highlighted by a red border](/_next/image/?url=%2Fapi%2Fmedia%2Ffile%2Fvs-code-experimental-modern-ui-setting.png&w=3840&q=75)
