forked from 1rgs/claude-code-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.ps1
More file actions
31 lines (28 loc) · 1.41 KB
/
install.ps1
File metadata and controls
31 lines (28 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# anthropic-proxy Installation Script for Windows
$ErrorActionPreference = "Stop"
Write-Host "🔍 Checking for uv..." -ForegroundColor Cyan
if (-not (Get-Command uv -ErrorAction SilentlyContinue)) {
Write-Host "❌ uv not found. Installing uv..." -ForegroundColor Yellow
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
# Note: PATH might not be updated in the current session
Write-Host "⚠️ uv has been installed. You may need to restart your terminal." -ForegroundColor DarkYellow
} else {
Write-Host "✅ uv is already installed." -ForegroundColor Green
}
Write-Host "⚙️ Configuring environment..." -ForegroundColor Cyan
if (-not (Test-Path .env)) {
if (Test-Path .env.example) {
Copy-Item .env.example .env
Write-Host "✅ Created .env from .env.example" -ForegroundColor Green
Write-Host "⚠️ Please edit .env and add your API keys." -ForegroundColor Yellow
} else {
Write-Host "❌ .env.example not found. Please create .env manually." -ForegroundColor Red
}
} else {
Write-Host "ℹ️ .env already exists, skipping." -ForegroundColor Gray
}
Write-Host "🚀 Setup complete!" -ForegroundColor Green
Write-Host "--------------------------------------------------"
Write-Host "To start the server, run:" -ForegroundColor White
Write-Host " .\start.ps1" -ForegroundColor White
Write-Host "--------------------------------------------------"