ProxyCLI / config.yaml
PHhTTPS's picture
Fix Gemini routing, Claude aliases, and server stability (Multi-stage build)
b4d55d2
# CLIProxyAPI Plus - Ultimate Power Config
host: ""
port: 7860
# TLS settings (disabled for HF)
tls:
enable: false
# Management API settings (REMOTE ENABLED FOR HF)
remote-management:
allow-remote: true
secret-key: "$2a$10$Yt27TytUvABKw192YdTW2urLkQ5oQkHGuSz6PrzFFlsNJ5TE1EOFe"
disable-control-panel: false
panel-github-repository: "https://github.com/router-for-me/Cli-Proxy-API-Management-Center"
# Storage
auth-dir: "./auth"
# Client Keys for YOU to access the API
api-keys:
- "sk-admin-power-1"
- "sk-ant-proxy-key-1"
- "sk-client-key-custom"
# Performance & Logging
debug: false
commercial-mode: false
incognito-browser: true
logging-to-file: false
usage-statistics-enabled: true
# Network
proxy-url: ""
# Smart Routing & Retries
request-retry: 5
max-retry-interval: 15
routing:
strategy: "round-robin" # Rotates through your 16 keys!
quota-exceeded:
switch-project: true
switch-preview-model: true
# --- PROVIDER SECTIONS (FILL THESE IN THE ADMIN PANEL) ---
# 1. Gemini API Keys (Google AI Studio)
gemini-api-key:
- api-key: "DEIN_GEMINI_KEY_1"
- api-key: "DEIN_GEMINI_KEY_2"
# 2. Claude API Keys (Anthropic)
claude-api-key:
- api-key: "DEIN_CLAUDE_KEY_1"
# 3. OpenAI / Compatibility (OpenRouter, DeepSeek, Groq, etc.)
openai-compatibility:
- name: "openrouter"
base-url: "https://openrouter.ai/api/v1"
api-key-entries:
- api-key: "DEIN_OPENROUTER_KEY"
- name: "deepseek"
base-url: "https://api.deepseek.com/v1"
api-key-entries:
- api-key: "DEIN_DEEPSEEK_KEY"
# 4. Global Model Mappings (Rename models for easier use)
oauth-model-mappings:
gemini-cli:
- name: "gemini-2.5-pro"
alias: "g-pro"
- name: "gemini-2.5-flash"
alias: "g-flash"
- name: "gemini-2.5-pro"
alias: "gemini-1.5-pro"
- name: "gemini-2.5-flash"
alias: "gemini-1.5-flash"
claude:
- name: "claude-3-5-sonnet-20241022"
alias: "sonnet"
- name: "claude-3-5-sonnet-20241022"
alias: "claude-sonnet-4-5-20250929"
- name: "claude-3-5-sonnet-20241022"
alias: "claude-haiku-4-5-20251001"
- name: "claude-3-5-sonnet-20241022"
alias: "claude-3-5-sonnet-latest"
- name: "claude-3-5-sonnet-20241022"
alias: "claude-3-5-sonnet-20241022"
openrouter:
- name: "anthropic/claude-3-5-sonnet"
alias: "claude-3-5-sonnet-20241022"
- name: "anthropic/claude-3-5-sonnet"
alias: "claude-3-5-sonnet-latest"
- name: "anthropic/claude-3-5-haiku"
alias: "claude-3-5-haiku-20241022"
# 5. Amp Integration (Claude Code)
oauth-excluded-models:
# Removed kiro exclusion to enable Kiro models
claude: []
ampcode:
force-model-mappings: true
model-mappings:
- from: "gpt-4o"
to: "gemini-2.5-flash"
- from: "gpt-4o-mini"
to: "gemini-2.5-flash"
- from: "claude-sonnet-4-5-20250929"
to: "kiro-claude-sonnet-4-5"
- from: "claude-haiku-4-5-20251001"
to: "kiro-claude-sonnet-4-5"
ws-auth: false