codex
codex copied to clipboard
error: crypto not defined
What version of Codex is running?
can't execute this command
Which model were you using?
N/A
What platform is your computer?
Docker on Linux
What steps can reproduce the bug?
codex Initializing agent…
ERROR crypto is not defined
file:///usr/lib/node_modules/@openai/codex/dist/cli.js:559:1997
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
I did not encounter this problem yesterday. I rebuilt by docker to respond to an update request from codex (I am using codex inside a docker) and upon rebuild this error happens. Note codex worked fine before the latest request to upgrade and no other changes were made to the docker and
node -e "console.log(typeof crypto);" object
returns thusly
What version of node are you running? It requires v22