在 Mac 或 Linux 系统上运行以下命令安装 Codex CLI:
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
独立安装程序CODEX_INSTALLER_USE_RELEASES_OPENAI_COM参数0)curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh
# Install using npmnpm install -g @openai/codex
codex
即可开始。
每个 GitHub Release 版本都包含许多可执行文件,但实际上,您可能只需要以下其中一个:
-
macOS
-
苹果芯片/arm64:
codex-x86_64-apple-darwin.tar.gz -
Linux
-
x86_64:
codex-aarch64-unknown-linux-musl.tar.gz
每个存档都包含一个条目,其中平台名称已嵌入其中(例如,codex提取后将其重命名为。
运行<code style=”box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, ” sf=”” mono”,=”” menlo,=”” consolas,=”” “liberation=”” monospace;=”” font-size:=”” 13.6px;=”” tab-size:=”” 4;=”” white-space:=”” break-spaces;=”” background-color:=”” rgba(129,=”” 139,=”” 152,=”” 0.12);=”” border-radius:=”” 6px;=”” margin:=”” 0px;=”” padding:=”” 0.2em=”” 0.4em;”=””>codex并选择“使用 ChatGPT 登录”。我们建议您登录 ChatGPT 帐户,以便使用 Plus、Pro、Business、Edu 或 Enterprise 套餐中的 Codex 功能。了解更多关于 ChatGPT 套餐包含的内容。
您也可以使用 API 密钥来使用 Codex,但这需要额外的设置。
Windows下载:








