# CLIProxyAPI config generated by CCS v19
# Supports: gemini, codex, agy, qwen, iflow (concurrent usage)
# Generated: 2026-05-14T08:18:04.226Z
#
# This config is auto-managed by CCS. Manual edits may be overwritten.
# Use 'ccs doctor' to regenerate with latest settings.

# =============================================================================
# Server Settings
# =============================================================================

port: 8317
debug: false
# =============================================================================
# Logging
# =============================================================================
# WARNING: Logs can grow to several GB if enabled!
# To enable logging, edit ~/.ccs/config.yaml:
#   cliproxy:
#     logging:
#       enabled: true
#       request_log: true
# Then run 'ccs doctor --fix' to regenerate this config.
# Use 'ccs cleanup' to remove old logs.

# Write logs to file (stored in ~/.ccs/cliproxy/logs/)
logging-to-file: false
# Log individual API requests for debugging/analytics
request-log: false
# =============================================================================
# Dashboard & Management
# =============================================================================

# Enable usage statistics for CCS dashboard analytics
usage-statistics-enabled: true
# Remote management API for CCS dashboard integration
remote-management:
  allow-remote: true
  secret-key: "$2a$10$dDdLFeDIxYNueo0a5Ek1UeFZZuXu1Lf2HJh7x4qqY2crembewCjQO"
  disable-control-panel: false
  panel-github-repository: "https://github.com/kaitranntt/Cli-Proxy-API-Management-Center"
# =============================================================================
# Reliability & Quota Management
# =============================================================================

# Disable quota cooldown scheduling for stability
disable-cooling: true
# Auto-retry on transient errors (403, 408, 500, 502, 503, 504)
request-retry: 0
max-retry-interval: 0
# Auto-switch accounts on quota exceeded (429)
# This enables seamless multi-account rotation when rate limited
quota-exceeded:
  switch-project: true
  switch-preview-model: true
# Credential selection strategy when multiple matching accounts are available
routing:
  strategy: round-robin
  session-affinity: false
  session-affinity-ttl: "1h"
# =============================================================================
# Authentication
# =============================================================================

# API keys for CCS and user-added external requests
# NOTE: User-added keys are preserved across CCS updates (fix for issue #200)
api-keys:
  - "ccs-internal-managed"
# OAuth tokens directory (auto-discovered by CLIProxyAPI)
auth-dir: "C:/Users/decid/.ccs/cliproxy/auth"
oauth-model-alias:
  antigravity:
    - name: rev19-uic3-1p
      alias: gemini-2.5-computer-use-preview-10-2025
    - name: gemini-3-pro-image
      alias: gemini-3-pro-image-preview
    - name: gemini-3-pro-high
      alias: gemini-3-pro-preview
    - name: gemini-3-pro-high
      alias: gemini-3.1-pro-preview
    - name: gemini-3-pro-high
      alias: gemini-3.1-pro-preview-customtools
    - name: gemini-3-flash
      alias: gemini-3-flash-preview
    - name: gemini-3-flash
      alias: gemini-3.1-flash-preview
    - name: claude-sonnet-4-6
      alias: claude-sonnet-4-6
      fork: true
    - name: claude-sonnet-4-6-thinking
      alias: claude-sonnet-4-6
      fork: true
    - name: claude-opus-4-6-thinking
      alias: claude-opus-4-6-thinking
      fork: true
    - name: rev19-uic3-1p
      alias: gemini-2.5-computer-use-preview-10-2025-customtools
    - name: rev19-uic3-1p
      alias: gemini-2-5-computer-use-preview-10-2025
    - name: rev19-uic3-1p
      alias: gemini-2-5-computer-use-preview-10-2025-customtools
    - name: gemini-3-pro-image
      alias: gemini-3-pro-image-preview-customtools
    - name: gemini-3-pro-high
      alias: gemini-3-pro-preview-customtools
    - name: gemini-3-pro-high
      alias: gemini-3-1-pro-preview
    - name: gemini-3-pro-high
      alias: gemini-3-1-pro-preview-customtools
    - name: gemini-3-flash
      alias: gemini-3-flash-preview-customtools
    - name: gemini-3-flash
      alias: gemini-3.1-flash-preview-customtools
    - name: gemini-3-flash
      alias: gemini-3-1-flash-preview
    - name: gemini-3-flash
      alias: gemini-3-1-flash-preview-customtools
