Skip to content

Error Unsupported devices : win32 (x64) #1573

Closed

Description

@tomtyiu

What version of Codex is running?

unable to output

Which model were you using?

unable to output

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

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

Activity

  1. added
    bug
    on Jul 15, 2025
  2. Archkon commented on Jul 16, 2025

    @Archkon

    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 .

  3. tomtyiu commented on Jul 16, 2025

    @tomtyiu
    Author

    thanks, is there a fix in the future to support the platforms?

  4. tomtyiu commented on Jul 16, 2025

    @tomtyiu
    Author

    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.

  5. jjborie commented on Jul 16, 2025

    @jjborie

    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.

  6. bolinfest commented on Jul 19, 2025

    @bolinfest
    Collaborator

    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.

  7. jjborie commented on Aug 12, 2025

    @jjborie

    I just installed the old version on Windows 11 on macOS M3 with Parallels, and it worked too.

    npm install -g @openai/[email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions