安装 Codex CLI
完成 Node.js 环境准备后,就可以通过 npm 安装 Codex CLI。
正常安装
打开命令提示符或 PowerShell,输入:
npm install -g @openai/codex
网络慢或无法下载
如果无法下载,先关闭代理或魔法工具,再尝试使用 npm 镜像源:
npm install -g @openai/codex --registry https://registry.npmmirror.com
验证安装
输入:
codex --version
能返回版本号,就代表 Codex CLI 安装成功。
下一步
安装完成后,推荐使用 CC Switch 导入配置。
Comments
Join the conversation — sign in to leave a comment.
Login with GitHub