You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I type codex and it will provide error.
file:///C:/Users/Thomas_Yiu/AppData/Roaming/npm/node_modules/@openai/codex/bin/codex.js:73
throw new Error(Unsupported platform: ${platform} (${arch}));
^
Error: Unsupported platform: win32 (x64)
at file:///C:/Users/Thomas_Yiu/AppData/Roaming/npm/node_modules/@openai/codex/bin/codex.js:73:11
at ModuleJob.run (node:internal/modules/esm/module_job:274:25)
at async onImport.tracePromise.proto (node:internal/modules/esm/loader:644:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
Reacted by FreedomLabsIO, Joachim Leonfellner, Абдулжан Сулайман, simasong, Curtis Genereux and karofsky
I encountered same error ,and I found that codex implementation of typescript doesn't completed support win platforms ( refered to source code). And you could try build from rust source code to use it .
It is interesting turn of events. I fixed it myself by going to powershell and run wsl. Refresh local list and than install npm and than npm i -g @openai/codex to install codex. and it works. It took a lot of steps to get it to work.
Activity
Archkon commentedon Jul 16, 2025
I encountered same error ,and I found that codex implementation of typescript doesn't completed support win platforms ( refered to source code). And you could try build from rust source code to use it .
tomtyiu commentedon Jul 16, 2025
thanks, is there a fix in the future to support the platforms?
tomtyiu commentedon Jul 16, 2025
It is interesting turn of events. I fixed it myself by going to powershell and run wsl. Refresh local list and than install npm and than npm i -g @openai/codex to install codex. and it works. It took a lot of steps to get it to work.
jjborie commentedon Jul 16, 2025
Use this version: v0.1.2504301751
This one works great with git bash.
Use scoop (package manager) to install the rg command as a codex like it a lot, and you will be good.
I don't know why they made this change to Rust and not to support any more Windows versions without WSL.
fix: update bin/codex.js so it listens for exit on the child process (#…
bolinfest commentedon Jul 19, 2025
The existing behavior where it falls back to the TypeScript CLI should be restored in https://github.com/openai/codex/releases/tag/rust-v0.8.0.
fix: update bin/codex.js so it listens for exit on the child process (o…
jjborie commentedon Aug 12, 2025
I just installed the old version on Windows 11 on macOS M3 with Parallels, and it worked too.
npm install -g @openai/[email protected]
fix: update bin/codex.js so it listens for exit on the child process (o…
fix: update bin/codex.js so it listens for exit on the child process (o…
fix: update bin/codex.js so it listens for exit on the child process …
fix: update bin/codex.js so it listens for exit on the child process (o…
fix: update bin/codex.js so it listens for exit on the child process (o…