codex - 💡(How to fix) Fix Codex CLI version bug [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#19110Fetched 2026-04-24 06:00:45
View on GitHub
Comments
2
Participants
3
Timeline
5
Reactions
0
Author
Timeline (top)
commented ×2labeled ×2closed ×1
RAW_BUFFERClick to expand / collapse

What issue are you seeing?

After installing the latest Codex CLI from npm, the installed package version is 0.123.0, but codex --version reports codex-cli 0.114.0.

What variant of Codex are you using?

Codex CLI

What operating system are you using?

Ubuntu/Linux

Steps to reproduce

  1. Install or upgrade Codex CLI: npm i -g @openai/codex@latest

  2. Check installed package version: npm ls -g @openai/codex --depth=0

  3. Check package.json version: node -p "require('/home/litao/.nvm/versions/node/v20.20.0/lib/node_modules/@openai/codex/package.json').version"

  4. Check CLI version output: codex --version

Expected behavior

codex --version should report 0.123.0.

Actual behavior

codex --version reports: codex-cli 0.114.0

Additional information

Output:

$ npm ls -g @openai/codex --depth=0
/home/litao/.nvm/versions/node/v20.20.0/lib
└── @openai/[email protected]

$ node -p "require('/home/litao/.nvm/versions/node/v20.20.0/lib/node_modules/@openai/codex/package.json').version"
0.123.0

$ codex --version
codex-cli 0.114.0

extent analysis

TL;DR

The discrepancy between the installed package version and the version reported by codex --version suggests a potential issue with the package installation or the CLI executable.

Guidance

  • Verify that the codex executable is correctly linked to the newly installed package version by checking the executable's path: which codex
  • Check for any existing versions of codex that might be interfering with the newly installed version
  • Try uninstalling and reinstalling the @openai/codex package to ensure a clean installation
  • If using a version manager like nvm, ensure that the correct Node.js version is being used

Example

No code snippet is provided as it's not directly applicable to this issue.

Notes

The issue might be related to the package installation process or the system's configuration. Further investigation into the system's environment and package management is necessary to determine the root cause.

Recommendation

Apply workaround: Try uninstalling and reinstalling the @openai/codex package to ensure a clean installation, as this might resolve any potential issues with the package installation or the CLI executable.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

codex --version should report 0.123.0.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix Codex CLI version bug [2 comments, 3 participants]