# Server port port: 8317 # Management API settings remote-management: # Whether to allow remote (non-localhost) management access. # When false, only localhost can access management endpoints (a key is still required). allow-remote: true # Management key. If a plaintext value is provided here, it will be hashed on startup. # All management requests (even from localhost) require this key. # Leave empty to disable the Management API entirely (404 for all /v0/management routes). secret-key: "$2a$10$bySJShk7ToI54X/8jPTn6uoY58n1qwGud9pyMh1qQTJe7naK21RsC" # Disable the bundled management control panel asset download and HTTP route when true. disable-control-panel: false # Authentication directory (supports ~ for home directory) auth-dir: "/CLIProxyAPI/auths" # API keys for authentication api-keys: [] # Enable debug logging debug: true # When true, write application logs to rotating files instead of stdout logging-to-file: false # When false, disable in-memory usage statistics aggregation usage-statistics-enabled: true # Proxy URL. Supports socks5/http/https protocols. Example: socks5://user:pass@192.168.1.1:1080/ proxy-url: "" # Number of times to retry a request. Retries will occur if the HTTP response code is 403, 408, 500, 502, 503, or 504. request-retry: 3 # Quota exceeded behavior quota-exceeded: switch-project: true # Whether to automatically switch to another project when a quota is exceeded switch-preview-model: true # Whether to automatically switch to a preview model when a quota is exceeded # API keys for official Generative Language API # Gemini CLI 镜像节点配置 gemini-cli: # Code Assist API 端点(必配) code-assist-endpoint: "" # OAuth2 认证端点(必配) oauth-endpoint: "" # Google APIs 基础端点(必配) google-apis-endpoint: "" # Resource Manager API 端点(可选) resource-manager-endpoint: "" # Service Usage API 端点(可选) service-usage-endpoint: "" request-log: true generative-language-api-key: [] claude-api-key: [] codex-api-key: [] openai-compatibility: [] gemini-web: context: true code-mode: false max-chars-per-request: 0 # Gemini CLI 专用代理(可选,覆盖全局设置) # proxy-url: "socks5://127.0.0.1:10808"