CODEX DESKTOP
用 Codex 安装
复制这段话,回到 Codex 粘贴并发送。
查看安装指令与来源
Cloudflare CDN · 1a559b86
SHA-256 · 31a2b1a4d6e624888228c9f88837539b0b362a9d0b262ef4d4149ebaed311456复制这段话,回到 Codex 粘贴并发送。
SHA-256 · 31a2b1a4d6e624888228c9f88837539b0b362a9d0b262ef4d4149ebaed311456命令会在目标目录已存在时停止,不会静默覆盖。运行前确认 ZIP 在 Downloads 文件夹。
$petId = "cat-siamese-haiyan"
$codexRoot = if ($env:CODEX_HOME) { $env:CODEX_HOME } else { Join-Path $env:USERPROFILE ".codex" }
$petsRoot = Join-Path $codexRoot "pets"
$target = Join-Path $petsRoot $petId
$archive = Join-Path $env:USERPROFILE "Downloads\$petId.zip"
if (Test-Path -LiteralPath $target) { throw "$petId already exists. Stop and review it before replacing anything." }
New-Item -ItemType Directory -Force -Path $petsRoot | Out-Null
Expand-Archive -LiteralPath $archive -DestinationPath $petsRoot执行前先确认 ZIP 已下载到系统的 Downloads 文件夹。安装后完整退出并重新打开 Codex Desktop。