{
  "version": "1.0.0",
  "httpserver": {
    "port": 5520,
    "host": "127.0.0.1"
  },
  "virtualrouter": {
    "providers": {
      "iflow": {
        "id": "iflow",
        "enabled": true,
        "type": "openai",
        "providerType": "openai",
        "baseURL": "https://apis.iflow.cn/v1",
        "auth": {
          "type": "iflow-oauth",
          "tokenFile": "~/.routecodex/auth/iflow-oauth.json"
        },
        "models": {
          "tstars2.0": {},
          "qwen3-coder-plus": {
            "maxContext": 1000000
          },
          "qwen3-coder": {},
          "qwen3-coder-next": {
            "maxContext": 262144
          },
          "qwen3-max": {},
          "qwen3-max-2026-01-23": {
            "maxContext": 262144
          },
          "qwen3-vl-plus": {},
          "qwen3-max-preview": {},
          "kimi-k2-0905": {},
          "glm-4.6": {},
          "glm-4.7": {
            "maxContext": 202752
          },
          "glm-5": {
            "maxContext": 202752
          },
          "kimi-k2": {},
          "kimi-k2.5": {
            "maxContext": 262144
          },
          "deepseek-v3.2": {},
          "deepseek-v3.1": {},
          "deepseek-r1": {},
          "deepseek-v3": {},
          "qwen3-32b": {},
          "qwen3-235b-a22b-thinking-2507": {},
          "qwen3-235b-a22b-instruct": {},
          "qwen3-235b": {},
          "minimax-m2": {},
          "minimax-m2.1": {},
          "minimax-m2.5": {
            "maxContext": 204800
          }
        },
        "compatibilityProfile": "chat:iflow"
      }
    },
    "webSearch": {
      "engines": [
        {
          "id": "iflow:web_search",
          "providerKey": "iflow",
          "description": "iFlow native web search via /chat/retrieve",
          "default": true,
          "searchEngineList": ["GOOGLE"]
        }
      ]
    },
    "routing": {
      "default": [
        {
          "id": "default-primary",
          "mode": "priority",
          "targets": ["iflow.kimi-k2"]
        }
      ],
      "vision": [
        {
          "id": "vision-primary",
          "mode": "priority",
          "targets": ["iflow.qwen3-vl-plus"]
        }
      ],
      "search": [],
      "background": []
    }
  }
}
