OpenClaw快速添加并使用息壤模型(1) 本章节说明如何在OpenClaw中快速添加并使用模型推理服务所提供的模型。 一:从天翼云模型推理服务获取模型调用AppKey等信息 1. 访问模型推理服务地址: “All Settings” > “RAW”。 3. 复制以下内容到Raw JSONS输入框,替换已有内容,并将YOURAPIKEY替换为在服务接入页面所获取到的App Key。 plaintext { "models": { "mode": "merge", "providers": { "xirang": { "baseUrl": " "apiKey": "YOURAPIKEY", "api": "openaicompletions", "models": [ { "id": "GLM5", "name": "GLM5", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 204800, "maxTokens": 131072 }, { "id": "Qwen3.5397BA17B", "name": "Qwen3.5397BA17B", "reasoning": true, "input": [ "text","image" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 65536, "maxTokens": 16384 }, { "id": "Qwen3Max", "name": "Qwen3Max", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 258048, "maxTokens": 65536 }, { "id": "DoubaoSeed2.0pro", "name": "DoubaoSeed2.0pro", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 65536 }, { "id": "DeepSeekV3.2Standard", "name": "DeepSeekV3.2Standard", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 16384 }, { "id": "DeepSeekV30324", "name": "DeepSeekV30324", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 131072, "maxTokens": 16384 }, { "id": "KimiK2Thinking", "name": "KimiK2Thinking", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 32768, "maxTokens": 16384 }, { "id": "DeepSeekR10528", "name": "DeepSeekR10528", "reasoning": true, "input": [ "text" ], "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }, "contextWindow": 98304, "maxTokens": 16384 } ] } } }, "agents": { "defaults": { "model": { "primary": "xirang/GLM5" }, "models": { "xirang/GLM5": {}, "xirang/Qwen3.5397BA17B": {}, "xirang/Qwen3Max": {}, "xirang/DoubaoSeed2.0pro": {}, "xirang/DeepSeekV3.2Standard": {}, "xirang/DeepSeekV30324": {}, "xirang/KimiK2Thinking": {}, "xirang/DeepSeekR10528": {} } } }, "gateway": { "mode": "local" } } 4. 点击右上角 Save 保存,再点击 Update 使配置生效,保存成功后,apiKey将显示为“OPENCLAWREDACTED”。由于脱敏保护,仅在前端界面隐藏,不影响实际调用。
来自: