CLIProxyAPI / config.yaml
superxu520's picture
Create config.yaml
93e28f4 verified
host: "0.0.0.0"
port: 7860 # 关键修改:必须是 7860
remote-management:
allow-remote: true
secret-key: "583079759"
disable-control-panel: false
panel-github-repository: "https://github.com/router-for-me/Cli-Proxy-API-Management-Center"
# 关键修改:将授权文件目录指向应用目录,方便被 GitStore 捕获
auth-dir: "./cli-proxy-auth"
# 关键修改:开启 GitHub 自动同步功能(配合你设置的 Secret 变量)
git-store:
enable: true
api-keys:
- "sk-miaolegewang"
# 你之前的模型映射和 Gemini Key 保持不变
oauth-model-alias:
codex:
- name: "gpt-5"
alias: "gpt-4o-v5"
- name: "gpt-5-codex"
alias: "gpt-4o-v5-codex"
- name: "gpt-5-codex-mini"
alias: "gpt-4o-v5-codex-mini"
- name: "gpt-5.1"
alias: "gpt-4o-v5.1"
- name: "gpt-5.1-codex"
alias: "gpt-4o-v5.1-codex"
- name: "gpt-5.1-codex-mini"
alias: "gpt-4o-v5.1-codex-mini"
- name: "gpt-5.1-codex-max"
alias: "gpt-4o-v5.1-codex-max"
- name: "gpt-5.2"
alias: "gpt-4o-v5.2"
- name: "gpt-5.2-codex"
alias: "gpt-4o-v5.2-codex"
- name: "gpt-5.3-codex"
alias: "gpt-4o-v5.3-codex"
gemini-api-key:
- api-key: "AIzaSyA-kFoMqRvYbFGHjBFQpoMS_kB6bCWQEAQ"
- api-key: "AIzaSyAPysGFlb-oTfrD3LkNiWIOzalOw6TNVOU"
- api-key: "AIzaSyBSEyd1546IBB_FoblN8A7_o278EayUxzI"
- api-key: "AIzaSyAjqHjhHy_t760y1MDiL2r64DkugiEdqjo"
- api-key: "AIzaSyC8J86tD6e-rjuqzJ69ZmpyCcd71dKJ7BA"
- api-key: "AIzaSyAfROjvxJvTOfTxeieDrtRuqyt-lARXOR0"
- api-key: "AIzaSyD7EJ5z8yQbX4AK20ni1ckDy2lPlROXm4k"
- api-key: "AIzaSyC3xbtuoqjabOFbd7jmcJvNtxtFvk1rIRY"
- api-key: "AIzaSyCIuti_ZTKQKokDuZgF1NCpbsHDv0pRZkg"
- api-key: "AIzaSyDoCbJWKYfWD4o6G394eyqBVF78kKEElYU"
- api-key: "AIzaSyBfZVFy1yv1G3eh1WAjcv1Zp8zHQiAMSRE"
- api-key: "AIzaSyCzniiWixQj5E3yq8vil9xHe3F-tr1qZWI"
- api-key: "AIzaSyBvD2rThLCWEYDqFJz0PQk4ubrE-4w1RYA"
- api-key: "AIzaSyCfbdL12MRy8fRGzK9v-ZzbFJCFMMKBws0"
- api-key: "AIzaSyAb51h5Ry4wc41WM4z-oVRruyCxCQl-968"
- api-key: "AIzaSyB0vLhtEI1BPsBzFM3bDQD1Ca3A31FnDeU"
- api-key: "AIzaSyAa7C4ZSST5ZVjan3LoGR77Ht9Q4WyEqGg"
- api-key: "AIzaSyDYvnS1gDE8DNixVByiqCPwxgnec0vXuz0"
- api-key: "AIzaSyABY-7zK7HTX8L4bxEHHShdWu47v4ezdok"
- api-key: "AIzaSyBkPx-BmSKtPn3zdi64LPdKhKi4PKmPCfc"
prefix: "x"
base-url: "https://generativelanguage.googleapis.com"
models:
- name: "gemini-2.5-flash"
- name: "gemini-3-flash-preview"
- name: "gemini-3-pro-preview"
- name: "gemini-2.5-flash-lite"
- name: "gemini-2.5-pro"
- name: "gemini-2.5-flash-preview-09-2025"
- name: "gemini-embedding-001"
- name: "gemma-3-27b-it"
routing:
strategy: "round-robin"
codex-instructions-enabled: false
debug: false
commercial-mode: true
request-retry: 3
streaming:
keepalive-seconds: 15
bootstrap-retries: 1