Add support for installation on OpenBSD
Resolved 💬 3 comments Opened Feb 20, 2026 by donpellegrino Closed May 10, 2026
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
When running codex as installed from npm the following error is reported:
file:///home/user/.npm-global/lib/node_modules/@openai/codex/bin/codex.js:70
throw new Error(`Unsupported platform: ${platform} (${arch})`);
^
Error: Unsupported platform: openbsd (x64)
at file:///home/user/.npm-global/lib/node_modules/@openai/codex/bin/codex.js:70:9
at ModuleJob.run (node:internal/modules/esm/module_job:343:25)
at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)
Node.js v22.22.0
With the minor work-around from https://github.com/openai/codex/issues/12337 or presumably just using Rust 1.91 on OpenBSD 7.8, the Codex CLI seems to build and work fine.
Ideally Codex would make its way into OpenBSD Ports one day, but it would be nice to be able to just install it with whatever installation processes is normal for Codex.
Additional information
To explore feasibility, I attempted to draft an OpenBSD Port for Codex: https://github.com/DeciSym/openbsd-port-codex
3 Comments
Also see the thread at: https://marc.info/?l=openbsd-ports&m=176853999431595&w=2
This feature request hasn't received enough upvotes, so I'm going to close it.
@etraut-openai - understood, thanks for considering. For future users, a fork at https://github.com/DeciSym/codex includes a sandbox for OpenBSD (https://github.com/DeciSym/codex/tree/openbsd-sandbox) and my intent is to ensure it builds on OpenBSD while tracking upstream as closely as possible.