Local environment check reports codex is not installed - cc-switch
Quick fix
Run codex --version first. If the terminal works but cc-switch cannot detect it, the install path is outside its probe range — upgrade to v3.16.4+.
Symptom
Section titled “Symptom”本地环境检查 提示codex未安装Local environment check reports codex is not installed
The cc-switch local environment check mostly probes common install paths and PATH to find Claude Code/Codex, so a CLI installed via the Microsoft Store, a miniconda/base environment, npm global, or with several entry points may fall outside its range — hence "local environment check reports codex is not installed". A maintainer reply in #3547 indicates later versions reworked tool version probing and the about panel, including Windows probe fixes. In #3434 users also hit variants where the version number was detected as the system version, or came back garbled. #4034/#4303 reflect npm installs producing several entry points — codex, codex.cmd, codex.ps1 — which are easily misread as conflicting duplicate installs. #4345 and #4758 are duplicate reports of the same Microsoft Store path problem, and #2737 is a miniconda base environment not being loaded so Codex is not found.
Run `codex --version` (or `claude --version`) in a terminal to confirm the command exists and runs.
If the terminal works but cc-switch still says not installed, upgrade to v3.16.4 or newer first — a maintainer said in #3547 that later versions improved tool version probing.
If an npm-installed Codex is diagnosed as several installs, check whether `codex`, `codex.cmd`, and `codex.ps1` all point at the same npm install. If they do, leave it and wait for the fix.
If it is still not recognised, record your install method (Microsoft Store / npm / conda / Homebrew) and the actual path, and report it on #4758 or a new issue.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 8 real issues
- #2737cc-switch无法识别miniconda base环境中安装的codex
- #3434无法正确检测Claude code codex版本状态
- #3547本地环境检查无法检测已安装的环境
- #4034Multiple installations were incorrectly detected, resulting in a conflict report
- #4040找不到CODEX
- #4303Codex 在 Windows 下会显示多个 codex/codex.cmd/codex.ps1 入口,容易被误判为重复安装,但实际它们都指向同一套 npm 安装。
- #4345About menu, codex is installed through the Microsoft Store, but CC Switch did not detect the local installation information
- #4758本地环境检查时无法正确的识别到 Codex
- Why is the current version detected as the system version on mac?
- That was reported in #3434 and comes from a misjudgement in the version probing logic. Later versions reworked tool version probing and the about panel — upgrade and retry.
- I installed Codex from the Microsoft Store — why does cc-switch say codex is not installed?
- The Microsoft Store install path differs from Homebrew/npm, and older versions may not cover it. This is tracked in #4758, with #4345 as a duplicate report.
- Why does the diagnosis report several installs or a conflict for an npm-installed Codex?
- npm creates codex, codex.cmd, and codex.ps1 entry points on PATH, which older cc-switch mistook for several installs. Tracked in #4303/#4034.
- Codex installed in a conda base environment is not detected. What now?
- #2737 reports this may relate to cc-switch not loading the miniconda base environment. For now, confirm `codex --version` runs directly in a terminal and report back on the issue.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.