@echo off
title Claude Code + DeepSeek Installer
:: ---- self-elevate to Administrator ----
net session >nul 2>&1
if %errorlevel% neq 0 (
  echo Requesting administrator rights...
  powershell -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
echo ============================================
echo   Claude Code + DeepSeek  one-click setup
echo ============================================
echo.
set /p DSKEY=Paste your DeepSeek API Key and press Enter:
echo.
echo Downloading installer...
curl.exe -fsSL https://product-images-1257295864.cos.ap-guangzhou.myqcloud.com/cc/cc.ps1 -o "%TEMP%\cc.ps1"
if not exist "%TEMP%\cc.ps1" (
  echo [ERROR] download failed. Check network.
  pause & exit /b 1
)
set "DEEPSEEK_KEY_INPUT=%DSKEY%"
powershell -NoProfile -ExecutionPolicy Bypass -File "%TEMP%\cc.ps1"
echo.
echo Done. Press any key to close...
pause >nul
