Codex + DeepSeek 快速安装

适用于 Ubuntu 22.04、Ubuntu 24.04、CentOS 7、CentOS 8/Stream 8、CentOS Stream 9 和 Windows。

请先确认地址栏域名为 cli.yunguo.vip 且使用 HTTPS。API Key 会隐藏输入,不会出现在下面的命令中,但 DeepSeek 官方配置会将它保存到用户目录的 .codex/config.toml。

Linux 一键安装

自动识别受支持的发行版。建议先下载,再执行,不直接使用 curl | bash。

( f=$(mktemp) && curl --proto '=https' -fsSL https://cli.yunguo.vip/install.sh -o "$f" && bash "$f"; rc=$?; rm -f "$f"; exit $rc )

指定项目目录:

( f=$(mktemp) && curl --proto '=https' -fsSL https://cli.yunguo.vip/install.sh -o "$f" && bash "$f" --project /path/to/project; rc=$?; rm -f "$f"; exit $rc )

Windows PowerShell

$p = Join-Path $env:TEMP 'codex-deepseek-install.ps1'
Invoke-WebRequest 'https://cli.yunguo.vip/install.ps1' -OutFile $p
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $p
Remove-Item $p -Force -ErrorAction SilentlyContinue

安全说明

CentOS 6 不在正式安装范围。可先运行只读兼容性探针:

( f=$(mktemp) && curl --proto '=https' -fsSL https://cli.yunguo.vip/centos6-probe.sh -o "$f" && bash "$f"; rc=$?; rm -f "$f"; exit $rc )