Files
aiqs/start_claude.ps1
2025-11-28 15:06:54 +08:00

24 lines
987 B
PowerShell
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
$env:ANTHROPIC_BASE_URL = "https://api.moonshot.cn/anthropic"
$env:MOONSHOT_API_KEY = "sk-joeLiNi2DzTWHr06tdFOdx3A8eKg98eowwShkTlusowyP4vS"
$env:ANTHROPIC_AUTH_TOKEN = $env:MOONSHOT_API_KEY
$env:ANTHROPIC_MODEL = "kimi-k2-thinking-turbo"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL = "kimi-k2-thinking-turbo"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL = "kimi-k2-thinking-turbo"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL = "kimi-k2-thinking-turbo"
$env:CLAUDE_CODE_SUBAGENT_MODEL = "kimi-k2-thinking-turbo"
Write-Host " 环境变量已设置" -ForegroundColor Green
Write-Host " Base URL: $env:ANTHROPIC_BASE_URL" -ForegroundColor Cyan
Write-Host " Model: $env:ANTHROPIC_MODEL" -ForegroundColor Cyan
$claudePath = "C:\Users\ADMIN\AppData\Local\AnthropicClaude\claude.exe"
if (Test-Path $claudePath) {
Write-Host " 正在启动 Claude Desktop..." -ForegroundColor Yellow
Start-Process $claudePath
} else {
Write-Host " 找不到 Claude.exe请检查安装路径" -ForegroundColor Red
}