CODEX DESKTOP
用 Codex 安装
复制这段话,回到 Codex 粘贴并发送。
查看安装指令与来源
Cloudflare CDN · 1a559b86
SHA-256 · bcca52f6e5c15ab2118d55c9b0a9a43bc20b3a93d5cf96c7643e1fb9a2d6bac7复制这段话,回到 Codex 粘贴并发送。
SHA-256 · bcca52f6e5c15ab2118d55c9b0a9a43bc20b3a93d5cf96c7643e1fb9a2d6bac7命令会在目标目录已存在时停止,不会静默覆盖。运行前确认 ZIP 在 Downloads 文件夹。
$petId = "cat-persian-xuegao"
$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。