CLI and VSCode extension not working due to Unsupported platform
What version of Codex is running?
0.27.0
Which model were you using?
N/A
What platform is your computer?
Microsoft Windows NT 10.0.26120.0 x64
What steps can reproduce the bug?
After performing npm i and executing via. codex command.
I get below error:file:///C:/Users/user/AppData/Roaming/fnm/node-versions/v22.18.0/installation/node_modules/@openai/codex/bin/codex.js:56Unsupported platform: ${platform} (${arch})`);
throw new Error(
^
Error: Unsupported platform: win32 (arm64)
at file:///C:/Users/gaura/AppData/Roaming/fnm/node-versions/v22.18.0/installation/node_modules/@openai/codex/bin/codex.js:56:9
at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:647:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.18.0
`
What is the expected behavior?
The codex cli must execute along with VSCode extension
What do you see instead?
The error in cli and in VSCode it is always trying to load with no output in the extension window
Additional information
Windows Arm64 machine using Snapdragon Elite X processor
8 Comments
@chorizoensnik92 Is this official build?
Hmm, https://github.com/actions/runner-images does not mention
windows-arm, though I guess these links claimwindows-11-armshould work:Apparently the build logic is there for
rgto support Windows ARM, but a new release has not been cut since that was merged: https://github.com/BurntSushi/ripgrep/pull/3038.That said, https://www.npmjs.com/package/@vscode/ripgrep appears to package it: https://github.com/microsoft/vscode-ripgrep/pull/63
OK, I believe that everything is in place such that the next CLI and VS Code releases should include support for Windows on arm64. Will close this issue once they are available.
I can confirm that this is now working for CLI but for VSCode the update is pending though the pre-release version is working.
The stable release of the extension is now out as
0.4.3and includes support for Windows ARM, so closing!@bolinfest It's working brilliantly on Windows ARM11 (on VMWare on Apple Mac Silicone M2 Pro). Super big thanks from me on this. Well done Codex team!