Installing Codex CLI globally from npm
Open 💬 0 comments Opened Apr 18, 2026 by nicomignoni
Hi! Is it necessary to install the CLI tool as npm i -g @openai/codex?
I installed it as npm install @openai/codex and added export PATH="$PATH:$HOME/node_modules/.bin/" to .bashrc, it seems to work fine.