Error: Unsupported platform: linux (riscv64) when connecting OpenAI API Key with OpenClaw (RISC-V)

Open 💬 0 comments Opened Jun 23, 2026 by SaitejaB31

Hello All,

I am trying to run OpenClaw on a riscv64 architecture machine running Linux. When attempting to connect my OpenAI API key, the Codex application server crashes because the @openai/codex binary explicitly checks and throws an error for unsupported architectures, specifically failing on linux (riscv64).

-> Environment:-
OS: Linux
Architecture: riscv64
Application: OpenClaw
Node.js Version: 22.22.0

-> Steps to Reproduce

  1. Install OpenClaw on a riscv64 Linux machine.
  2. Attempt to configure and connect the OpenAI API key.
  3. Observe the application server crash.

-> Expected Behavior
The Codex module should either compile from source, use a fallback javascript-only implementation, or provide a compatible binary for the riscv64 platform.

-> Actual Behavior / Logs
The openclaw-codex app-server exits with code 1 and outputs the following stack trace:

file:///home/user/.openclaw/npm/projects/openclaw-codex-8902d781d4/node_modules/@openclaw/codex/node_modules/@openai/codex/bin/codex.js:70
      throw new Error(`Unsupported platform: ${platform} (${arch})`);
            ^

Error: Unsupported platform: linux (riscv64)
    at file:///home/user/.openclaw/npm/projects/openclaw-codex-8902d781d4/node_modules/@openclaw/codex/node_modules/@openai/codex/bin/codex.js:70:9
    at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
    at async onImport.tracePromise.__pr...

can you please let me know what could be the issue, also it'll be highly appreciated if anyone can suggest a fix fot this.

Regards,
SaiTeja.

View original on GitHub ↗