# OpenClaw 本地模型集成配置
# 将此配置添加到 ~/.openclaw/openclaw.json 的 models.providers 部分

{
  "local": {
    "baseUrl": "http://127.0.0.1:8080/v1",
    "apiKey": "local-llm-key",
    "api": "openai-completions",
    "models": [
      {
        "id": "qwen3-1.8b",
        "name": "Qwen3-1.8B (Local)",
        "reasoning": false,
        "input": ["text"],
        "cost": {
          "input": 0,
          "output": 0,
          "cacheRead": 0,
          "cacheWrite": 0
        },
        "contextWindow": 4096,
        "maxTokens": 2048
      }
    ]
  }
}

# 然后修改 agents.defaults.model.fallbacks 将本地模型加入列表
# "fallbacks": [
#   "lkeap/kimi-k2.5",
#   "local/qwen3-1.8b",    <-- 添加这行
#   ...
# ]
