error: crypto not defined

Resolved 💬 1 comment Opened Apr 23, 2025 by fwood Closed Apr 24, 2025

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

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗