{
  "LOG": true,
  "LOG_LEVEL": "warn",
  "API_TIMEOUT_MS": 30000,
  "CUSTOM_ROUTER_PATH": "$HOME/.claude-code-router/smart-intent-router.js",

  "Providers": [
    {
      "name": "qwen",
      "api_base_url": "https://dashscope-intl.aliyuncs.com/compatible-mode/v1/chat/completions",
      "api_key": "$QWEN_API_KEY",
      "models": ["qwen-turbo", "qwen-plus"],
      "transformer": {
        "use": []
      },
      "priority": 1,
      "description": "Most cost-effective for general tasks",
      "estimatedCost": "$0.0003 per 1K tokens"
    },
    {
      "name": "gemini",
      "api_base_url": "https://generativelanguage.googleapis.com/v1beta/openai/chat/completions",
      "api_key": "$GEMINI_API_KEY",
      "models": ["gemini-2.5-flash"],
      "transformer": {
        "use": ["gemini"]
      },
      "priority": 2,
      "description": "Very affordable with good quality",
      "estimatedCost": "$0.000075 per 1K tokens"
    },
    {
      "name": "glm",
      "api_base_url": "https://api.z.ai/api/coding/paas/v4/chat/completions",
      "api_key": "$GLM_API_KEY",
      "models": ["glm-4.7", "glm-4.6", "glm-4.5"],
      "transformer": {
        "use": []
      },
      "priority": 3,
      "description": "Cost-effective for multilingual tasks",
      "estimatedCost": "$0.0005 per 1K tokens"
    },
    {
      "name": "openai",
      "api_base_url": "https://api.openai.com/v1/chat/completions",
      "api_key": "$OPENAI_API_KEY",
      "models": ["gpt-4o-mini"],
      "transformer": {
        "use": []
      },
      "priority": 4,
      "description": "Fallback for when quality is critical",
      "estimatedCost": "$0.00015 per 1K tokens"
    }
  ],

  "Router": {
    "default": "qwen,qwen-turbo",
    "background": "qwen,qwen-turbo",
    "think": "gemini,gemini-2.5-flash",
    "longContext": "gemini,gemini-2.5-flash",
    "longContextThreshold": 100000,
    "CostOptimization": {
      "enabled": true,
      "budgetAlerts": true,
      "dailyBudget": 10.0,
      "preferCheaper": true,
      "costTracking": true
    }
  },

  "BudgetManagement": {
    "dailyLimit": 10.0,
    "monthlyLimit": 100.0,
    "alertThreshold": 0.8,
    "trackByProvider": true,
    "cheapestFirstFallback": true
  },

  "CostTracking": {
    "enabled": true,
    "granularTracking": true,
    "reporting": "daily",
    "alerts": {
      "daily": true,
      "threshold": 5.0
    }
  },

  "description": "Cost-optimized configuration minimizing expenses while maintaining good quality",
  "useCase": "Best for budget-conscious users, bulk processing, and non-critical tasks",
  "expectedSavings": "70-90% compared to premium models",
  "costProfile": "Very Low",
  "qualityLevel": "Good for most tasks"
}
