← Agent 目录

Codex(unixwin fork)

可用 原生 Niu 探测(unixwin fork) Windows 难度 零配置

unixwin 维护的 Codex fork 内置 ShellType::Niu——npm i -g @unixwin/codex(另有 wpm install codex)装好即被选中。

wpm · 安装 unixwin fork(内置 ShellType::Niu 原生探测;装后在 niu 里启动,优先级高于 System32)
wpm install codex

步骤

  1. 执行上面的 npm 安装命令装 fork 版(npm latest 0.1.1,2026-10-22 实测);wpm 索引亦有收录,wpm install codex 亦可用
  2. 装好 fork 与 niubash 即零配置:探测按序检查 C:\Program Files\Niubash\niu.exe、x86 路径、%LOCALAPPDATA%\Programs\Niubash\niu.exe 及 PATH 上的 niu
  3. exec 白名单已放行 niu.exe 的 -C / -c / -lc / --repl-command

验证

echo "SHELL=$SHELL"; uname -s ——期望 uname -s 以 MSYS_NT- 开头

回滚

卸载 fork、换回官方 Codex 即恢复默认 shell 表

注意事项

来源