Windows
在 PowerShell 中粘贴并运行以下命令。
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://install.cziyo.club/codex.ps1 | iex"选择你的系统,复制一条命令运行。安装器会安装 Codex,并引导你以隐藏输入方式两次确认 API Key 后完成配置。
root 执行安装器。API Key 不会写入公开脚本。输入并确认 API Key 后,已有 Codex 配置会先备份再替换;登录失败会自动恢复旧配置。在 PowerShell 中粘贴并运行以下命令。
powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://install.cziyo.club/codex.ps1 | iex"在普通用户终端中粘贴并运行以下命令。
curl -fsSL https://install.cziyo.club/codex.sh | bashsudo 安装 npm 包。.codex/backups 后自动替换;API 登录失败会恢复旧配置。codex 开始使用。