复制脚本
powershell -NoProfile -ExecutionPolicy Bypass -Command "npm install -g opencode-ai"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$env:JIMUXYZ_CODEX_KEY='你的Codex_API_KEY'; $env:JIMUXYZ_CLAUDE_KEY='你的Claude_API_KEY'; $env:JIMUXYZ_GEMINI_KEY='你的Gemini_API_KEY'; iwr -useb https://code.jimuxyz.com/env_deploy/opencode-deploy.ps1 | iex"
执行完成后重新打开终端,再运行 opencode。