chore: replace API key ClauderAPI → ClauderAPI2

Updated in all config files, installer/updater scripts across
claude/gemini/codex/qwen.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
delta-cloud-208e
2026-03-25 06:52:31 +00:00
parent 784f8415c4
commit 65c2671f9d
19 changed files with 37 additions and 37 deletions

View File

@@ -125,7 +125,7 @@ npm install -g @google/gemini-cli
Then configure (Linux / macOS): Then configure (Linux / macOS):
```bash ```bash
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
mkdir -p ~/.gemini mkdir -p ~/.gemini
@@ -143,9 +143,9 @@ EOF
Then configure (Windows — run in **PowerShell**, not CMD): Then configure (Windows — run in **PowerShell**, not CMD):
```powershell ```powershell
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
$env:GEMINI_API_KEY = "ClauderAPI" $env:GEMINI_API_KEY = "ClauderAPI2"
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io" $env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
$d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d | Out-Null $d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d | Out-Null
[System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}}') [System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}}')
@@ -153,7 +153,7 @@ $d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d |
Or use CMD: Or use CMD:
```cmd ```cmd
setx GEMINI_API_KEY "ClauderAPI" setx GEMINI_API_KEY "ClauderAPI2"
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io" setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
mkdir "%USERPROFILE%\.gemini" 2>nul mkdir "%USERPROFILE%\.gemini" 2>nul
echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}} > "%USERPROFILE%\.gemini\settings.json" echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}} > "%USERPROFILE%\.gemini\settings.json"

View File

@@ -128,7 +128,7 @@ npm install -g @google/gemini-cli
```bash ```bash
# Переменные окружения # Переменные окружения
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"model": "claude-opus-4-6", "model": "claude-opus-4-6",
"models": [ "models": [
"claude-opus-4-6", "claude-opus-4-6",

View File

@@ -139,8 +139,8 @@ if (-not (Test-Command "claude")) {
Write-Host " Setting environment variables..." -ForegroundColor Cyan Write-Host " Setting environment variables..." -ForegroundColor Cyan
$envVars = @{ $envVars = @{
"ANTHROPIC_API_KEY" = "ClauderAPI" "ANTHROPIC_API_KEY" = "ClauderAPI2"
"ANTHROPIC_AUTH_TOKEN" = "ClauderAPI" "ANTHROPIC_AUTH_TOKEN" = "ClauderAPI2"
"ANTHROPIC_BASE_URL" = "https://ai.37-187-136-86.sslip.io" "ANTHROPIC_BASE_URL" = "https://ai.37-187-136-86.sslip.io"
"ANTHROPIC_DEFAULT_OPUS_MODEL" = "claude-opus-4-6" "ANTHROPIC_DEFAULT_OPUS_MODEL" = "claude-opus-4-6"
"ANTHROPIC_DEFAULT_SONNET_MODEL" = "claude-sonnet-4-6" "ANTHROPIC_DEFAULT_SONNET_MODEL" = "claude-sonnet-4-6"

View File

@@ -61,8 +61,8 @@ Write-Host " Updated: $oldVer -> $newVer" -ForegroundColor Green
Write-Host " Setting environment variables..." -ForegroundColor Cyan Write-Host " Setting environment variables..." -ForegroundColor Cyan
$envVars = @{ $envVars = @{
"ANTHROPIC_API_KEY" = "ClauderAPI" "ANTHROPIC_API_KEY" = "ClauderAPI2"
"ANTHROPIC_AUTH_TOKEN" = "ClauderAPI" "ANTHROPIC_AUTH_TOKEN" = "ClauderAPI2"
"ANTHROPIC_BASE_URL" = "https://ai.37-187-136-86.sslip.io" "ANTHROPIC_BASE_URL" = "https://ai.37-187-136-86.sslip.io"
"ANTHROPIC_DEFAULT_OPUS_MODEL" = "claude-opus-4-6" "ANTHROPIC_DEFAULT_OPUS_MODEL" = "claude-opus-4-6"
"ANTHROPIC_DEFAULT_SONNET_MODEL" = "claude-sonnet-4-6" "ANTHROPIC_DEFAULT_SONNET_MODEL" = "claude-sonnet-4-6"

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"model": "gpt-5.4", "model": "gpt-5.4",
"models": [ "models": [
"gpt-5.4", "gpt-5.4",

View File

@@ -316,7 +316,7 @@ wire_api = "responses"
Write-Host " config.toml created: $configToml" -ForegroundColor Green Write-Host " config.toml created: $configToml" -ForegroundColor Green
# Set env vars via setx # Set env vars via setx
& setx OPENAI_API_KEY "ClauderAPI" 2>$null | Out-Null & setx OPENAI_API_KEY "ClauderAPI2" 2>$null | Out-Null
& setx OPENAI_BASE_URL "https://ai.37-187-136-86.sslip.io/v1" 2>$null | Out-Null & setx OPENAI_BASE_URL "https://ai.37-187-136-86.sslip.io/v1" 2>$null | Out-Null
Write-Host " Env vars set via setx" -ForegroundColor Green Write-Host " Env vars set via setx" -ForegroundColor Green
} }
@@ -324,9 +324,9 @@ wire_api = "responses"
# ---- Configure environment variables ---- # ---- Configure environment variables ----
Write-Host " Setting environment variables..." -ForegroundColor Cyan Write-Host " Setting environment variables..." -ForegroundColor Cyan
[System.Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("OPENAI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("OPENAI_BASE_URL", "https://ai.37-187-136-86.sslip.io/v1", "User") [System.Environment]::SetEnvironmentVariable("OPENAI_BASE_URL", "https://ai.37-187-136-86.sslip.io/v1", "User")
$env:OPENAI_API_KEY = "ClauderAPI" $env:OPENAI_API_KEY = "ClauderAPI2"
$env:OPENAI_BASE_URL = "https://ai.37-187-136-86.sslip.io/v1" $env:OPENAI_BASE_URL = "https://ai.37-187-136-86.sslip.io/v1"
Write-Host " Env vars set (OPENAI_API_KEY, OPENAI_BASE_URL)" -ForegroundColor Green Write-Host " Env vars set (OPENAI_API_KEY, OPENAI_BASE_URL)" -ForegroundColor Green

View File

@@ -249,9 +249,9 @@ wire_api = "responses"
"@ "@
[System.IO.File]::WriteAllText($configToml, $tomlContent) [System.IO.File]::WriteAllText($configToml, $tomlContent)
& setx OPENAI_API_KEY "ClauderAPI" 2>$null | Out-Null & setx OPENAI_API_KEY "ClauderAPI2" 2>$null | Out-Null
& setx OPENAI_BASE_URL "https://ai.37-187-136-86.sslip.io/v1" 2>$null | Out-Null & setx OPENAI_BASE_URL "https://ai.37-187-136-86.sslip.io/v1" 2>$null | Out-Null
$env:OPENAI_API_KEY = "ClauderAPI" $env:OPENAI_API_KEY = "ClauderAPI2"
$env:OPENAI_BASE_URL = "https://ai.37-187-136-86.sslip.io/v1" $env:OPENAI_BASE_URL = "https://ai.37-187-136-86.sslip.io/v1"
Write-Host " Patches applied (PowerShell fallback)" -ForegroundColor Green Write-Host " Patches applied (PowerShell fallback)" -ForegroundColor Green
} }

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"model": "gpt-5.2-codex", "model": "gpt-5.2-codex",
"models": [ "models": [
"gpt-5.3-codex", "gpt-5.3-codex",

View File

@@ -31,7 +31,7 @@ You still need to configure auth and env vars:
**Linux / macOS:** **Linux / macOS:**
```bash ```bash
# Set environment variables # Set environment variables
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
@@ -55,7 +55,7 @@ EOF
**Windows (PowerShell):** **Windows (PowerShell):**
```powershell ```powershell
# Set environment variables # Set environment variables
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
# Configure auth # Configure auth
@@ -160,7 +160,7 @@ gemini -p "Hello"
**"GEMINI_API_KEY not set"** **"GEMINI_API_KEY not set"**
```bash ```bash
export GEMINI_API_KEY="ClauderAPI" export GEMINI_API_KEY="ClauderAPI2"
export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io" export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"
``` ```

View File

@@ -31,7 +31,7 @@ npm-пакет содержит патченные URL прокси и фикс
**Linux / macOS:** **Linux / macOS:**
```bash ```bash
# Переменные окружения # Переменные окружения
echo 'export GEMINI_API_KEY="ClauderAPI"' >> ~/.bashrc echo 'export GEMINI_API_KEY="ClauderAPI2"' >> ~/.bashrc
echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc echo 'export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"' >> ~/.bashrc
source ~/.bashrc source ~/.bashrc
@@ -55,7 +55,7 @@ EOF
**Windows (PowerShell):** **Windows (PowerShell):**
```powershell ```powershell
# Переменные окружения # Переменные окружения
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
# Настройка авторизации # Настройка авторизации
@@ -148,7 +148,7 @@ gemini -p "Привет"
**"GEMINI_API_KEY not set"** **"GEMINI_API_KEY not set"**
```bash ```bash
export GEMINI_API_KEY="ClauderAPI" export GEMINI_API_KEY="ClauderAPI2"
export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io" export GOOGLE_GEMINI_BASE_URL="https://ai.37-187-136-86.sslip.io"
``` ```

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"default_model": "gemini-3.1-pro-preview", "default_model": "gemini-3.1-pro-preview",
"internal_flash_model": "gemini-3-flash-preview", "internal_flash_model": "gemini-3-flash-preview",
"models": [ "models": [

View File

@@ -132,9 +132,9 @@ if (-not (Test-Command "gemini")) {
# ---- Configure environment variables ---- # ---- Configure environment variables ----
Write-Host " Setting environment variables..." -ForegroundColor Cyan Write-Host " Setting environment variables..." -ForegroundColor Cyan
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
$env:GEMINI_API_KEY = "ClauderAPI" $env:GEMINI_API_KEY = "ClauderAPI2"
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io" $env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
Write-Host " Env vars set (GEMINI_API_KEY, GOOGLE_GEMINI_BASE_URL)" -ForegroundColor Green Write-Host " Env vars set (GEMINI_API_KEY, GOOGLE_GEMINI_BASE_URL)" -ForegroundColor Green

View File

@@ -104,9 +104,9 @@ if (-not $pyCmd) {
Write-Host " Applying patches (PowerShell)..." -ForegroundColor Cyan Write-Host " Applying patches (PowerShell)..." -ForegroundColor Cyan
# Environment variables # Environment variables
[System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("GEMINI_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("GOOGLE_GEMINI_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
$env:GEMINI_API_KEY = "ClauderAPI" $env:GEMINI_API_KEY = "ClauderAPI2"
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io" $env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
# Settings # Settings

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"default_model": "qwen3.5-plus", "default_model": "qwen3.5-plus",
"models": [ "models": [
"qwen3.5-plus", "qwen3.5-plus",

View File

@@ -235,9 +235,9 @@ if (-not $pyCmd) {
# ---- Configure environment variables ---- # ---- Configure environment variables ----
Write-Host " Setting environment variables..." -ForegroundColor Cyan Write-Host " Setting environment variables..." -ForegroundColor Cyan
[System.Environment]::SetEnvironmentVariable("QWEN_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("QWEN_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("QWEN_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("QWEN_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
$env:QWEN_API_KEY = "ClauderAPI" $env:QWEN_API_KEY = "ClauderAPI2"
$env:QWEN_BASE_URL = "https://ai.37-187-136-86.sslip.io" $env:QWEN_BASE_URL = "https://ai.37-187-136-86.sslip.io"
Write-Host " Env vars set (QWEN_API_KEY, QWEN_BASE_URL)" -ForegroundColor Green Write-Host " Env vars set (QWEN_API_KEY, QWEN_BASE_URL)" -ForegroundColor Green

View File

@@ -108,9 +108,9 @@ if (-not $pyCmd) {
Write-Host " Applying patches (PowerShell)..." -ForegroundColor Cyan Write-Host " Applying patches (PowerShell)..." -ForegroundColor Cyan
# Environment variables # Environment variables
[System.Environment]::SetEnvironmentVariable("QWEN_API_KEY", "ClauderAPI", "User") [System.Environment]::SetEnvironmentVariable("QWEN_API_KEY", "ClauderAPI2", "User")
[System.Environment]::SetEnvironmentVariable("QWEN_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User") [System.Environment]::SetEnvironmentVariable("QWEN_BASE_URL", "https://ai.37-187-136-86.sslip.io", "User")
$env:QWEN_API_KEY = "ClauderAPI" $env:QWEN_API_KEY = "ClauderAPI2"
$env:QWEN_BASE_URL = "https://ai.37-187-136-86.sslip.io" $env:QWEN_BASE_URL = "https://ai.37-187-136-86.sslip.io"
# Settings # Settings

View File

@@ -1,6 +1,6 @@
{ {
"base_url": "https://ai.37-187-136-86.sslip.io", "base_url": "https://ai.37-187-136-86.sslip.io",
"api_key": "ClauderAPI", "api_key": "ClauderAPI2",
"default_model": "qwen3.5-plus", "default_model": "qwen3.5-plus",
"models": [ "models": [
"qwen3.5-plus", "qwen3.5-plus",

View File

@@ -169,7 +169,7 @@ log "Patches applied"
# ---- Set environment variables ---- # ---- Set environment variables ----
info "Setting environment variables..." info "Setting environment variables..."
ENV_VARS='export QWEN_API_KEY="ClauderAPI" ENV_VARS='export QWEN_API_KEY="ClauderAPI2"
export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io"' export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io"'
for rc_file in "$HOME/.bashrc" "$HOME/.zshrc"; do for rc_file in "$HOME/.bashrc" "$HOME/.zshrc"; do
@@ -183,7 +183,7 @@ for rc_file in "$HOME/.bashrc" "$HOME/.zshrc"; do
fi fi
done done
export QWEN_API_KEY="ClauderAPI" export QWEN_API_KEY="ClauderAPI2"
export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io" export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io"
# Also for all users if root # Also for all users if root
@@ -191,7 +191,7 @@ if [ "$(id -u)" -eq 0 ]; then
PROFILE_D="/etc/profile.d/qwen-code.sh" PROFILE_D="/etc/profile.d/qwen-code.sh"
cat > "$PROFILE_D" << 'PROF_EOF' cat > "$PROFILE_D" << 'PROF_EOF'
# Qwen Code (UnlimitedCoding) # Qwen Code (UnlimitedCoding)
export QWEN_API_KEY="ClauderAPI" export QWEN_API_KEY="ClauderAPI2"
export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io" export QWEN_BASE_URL="https://ai.37-187-136-86.sslip.io"
PROF_EOF PROF_EOF
chmod 644 "$PROFILE_D" chmod 644 "$PROFILE_D"