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