{"type":"doc","content":[{"type":"heading","attrs":{"id":"462a347b-92e4-4d1d-94fb-1444218624f5","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"背景"}]},{"type":"paragraph","attrs":{"id":"f3263779-5354-4fc9-9063-d9b0710da799","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"QClaw 默认使用云端模型,每次对话都会消耗积分。如果你本地已经有 Ollama 和开源大模型(如 Qwen2.5、Llama 等),可以把 QClaw 的模型切换为本地运行,这样既不用消耗积分,数据也不需要上传云端。"}]},{"type":"paragraph","attrs":{"id":"58a7b273-a27e-4bc8-a972-5706162cbaf3","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"本文记录用 WorkBuddy 协助完成这一配置的全过程,供有类似环境的用户参考。"}]},{"type":"horizontalRule","attrs":{"id":"13db8fb6-0425-4973-ae2b-482d2c030114","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"f7fcd9b5-e15b-42e7-bbeb-27ea895f3fdb","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"第一步:确认本地环境"}]},{"type":"paragraph","attrs":{"id":"157de9d4-0d43-47e0-a268-4ef1a0db991b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在让 WorkBuddy 帮忙之前,先确认以下几点:"}]},{"type":"orderedList","attrs":{"id":"f58ee750-73e6-4d65-9744-3fed3c59debf","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"204c3da3-e8dc-45b4-88d4-4456ab975986"},"content":[{"type":"paragraph","attrs":{"id":"b99be76b-0d03-4784-a48b-42167d3ffd2b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"已安装 Ollama(官网:ollama.com)"}]}]},{"type":"listItem","attrs":{"id":"d8ca1c48-fc4f-4a3f-a297-e7721d934c82"},"content":[{"type":"paragraph","attrs":{"id":"c6def613-5710-4735-82e6-2ad48f159632","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"已通过 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama pull"},{"type":"text","text":" 下载了至少一个模型,例如:"}]},{"type":"codeBlock","attrs":{"id":"25e93f69-0e38-4946-afdc-c297cf79b3aa","language":"javascript","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":""},"content":[{"type":"text","text":"ollama pull qwen2.5:14b\n"}]}]},{"type":"listItem","attrs":{"id":"0c9003f0-37ac-434e-bb08-708f3d3ce3ae"},"content":[{"type":"paragraph","attrs":{"id":"62c2b109-f601-499c-99ce-3868a1c7488f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Ollama 服务正在运行(任务栏出现章鱼图标,浏览器访问 "},{"type":"text","marks":[{"type":"link","attrs":{"href":"http://localhost:11434/","target":"_blank","rel":"noopener noreferrer","class":null}}],"text":"http://localhost:11434"},{"type":"text","text":" 有响应)"}]}]}]},{"type":"paragraph","attrs":{"id":"df4e8ae6-8000-4036-bdb6-9f1b2fc016a2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"我的环境:"}]},{"type":"bulletList","attrs":{"id":"be960ff6-8d95-4b64-a80a-9f3b47fb7e91","isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"660b9fc0-af6a-4532-b903-fb2e6430afca"},"content":[{"type":"paragraph","attrs":{"id":"7062d3d0-34ce-4436-9c5a-aa71faf1f588","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"显卡:NVIDIA RTX 5000 移动版,16GB 显存"}]}]},{"type":"listItem","attrs":{"id":"3dab5df8-d382-4559-9f2f-03060f06f675"},"content":[{"type":"paragraph","attrs":{"id":"6160853b-7a0a-477f-8345-830c5919acb0","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"已安装 Ollama,已下载 qwen2.5:14b 模型"}]}]},{"type":"listItem","attrs":{"id":"696aaa54-f1f0-4be2-befc-a05d6984b50f"},"content":[{"type":"paragraph","attrs":{"id":"820ba2f6-79a5-4c79-9c60-379e5740e77c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"显存足够运行 14B 参数的量化模型"}]}]}]},{"type":"horizontalRule","attrs":{"id":"5b0e3a6e-da73-41f2-a793-cc4e67068d6e","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"5f49302a-669f-404c-96a8-0f271f9eb35d","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"第二步:下载并安装 QClaw"}]},{"type":"paragraph","attrs":{"id":"ee4473f6-8c90-49b5-a1ae-09ee2b2f88e2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"访问 QClaw 官网(qclaw.qq.com)下载安装包,按提示完成安装。"}]},{"type":"paragraph","attrs":{"id":"f1486dc1-2b50-4c66-9313-d45c225bc876","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"安装完成后,QClaw 会在以下路径生成配置文件:"}]},{"type":"codeBlock","attrs":{"id":"27e8b1be-b8c7-4c19-b865-d82d829ce2c9","language":"javascript","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"","languageByAi":"javascript"},"content":[{"type":"text","text":"C:\\Users\\<你的用户名>\\.qclaw\\openclaw.json\n"}]},{"type":"paragraph","attrs":{"id":"ede03646-b75d-40e0-9b06-f66484681ac5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"后续所有本地模型的配置都在这个文件里完成。"}]},{"type":"horizontalRule","attrs":{"id":"3224564a-751f-4506-929b-d817dc08b8a8","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"5542f72b-4037-4513-82c6-e33d516c8776","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"第三步:修改 openclaw.json 接入本地 Ollama"}]},{"type":"heading","attrs":{"id":"1b6d8bc6-6175-4f5a-bbfd-ca0ebaf4c233","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.1 先完全退出 QClaw"}]},{"type":"paragraph","attrs":{"id":"b43676dc-0491-4bd5-acd3-2262768c1ca9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"修改配置前,必须彻底退出 QClaw,包括右下角系统托盘里的小图标,否则配置可能不会生效。"}]},{"type":"heading","attrs":{"id":"6817cf71-f546-4bf5-9523-485fc007a1e2","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.2 确认 Ollama 监听地址"}]},{"type":"paragraph","attrs":{"id":"99e177a1-065e-4823-a07e-f39fd5f266d7","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"Ollama 默认监听 "},{"type":"text","marks":[{"type":"code"}],"text":"http://localhost:11434"},{"type":"text","text":",但 QClaw 对 "},{"type":"text","marks":[{"type":"code"}],"text":"localhost"},{"type":"text","text":" 的兼容性不太好,建议使用本机局域网 IP(通过 "},{"type":"text","marks":[{"type":"code"}],"text":"ipconfig"},{"type":"text","text":" 查看,一般是 "},{"type":"text","marks":[{"type":"code"}],"text":"192.168.x.x"},{"type":"text","text":")。"}]},{"type":"heading","attrs":{"id":"9d7ba406-abda-44c3-8c38-35fbc555d9c8","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.3 编辑 openclaw.json"}]},{"type":"paragraph","attrs":{"id":"5e820cc7-d209-46df-981d-93fb636d8c86","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"用记事本或任何文本编辑器打开:"}]},{"type":"codeBlock","attrs":{"id":"7f1bf997-eb04-4054-81bf-f39979a5e4e7","language":"javascript","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"","languageByAi":"javascript"},"content":[{"type":"text","text":"C:\\Users\\<你的用户名>\\.qclaw\\openclaw.json\n"}]},{"type":"paragraph","attrs":{"id":"9279ed03-f02e-4237-a573-706b4a258da5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"在 "},{"type":"text","marks":[{"type":"code"}],"text":"models.providers"},{"type":"text","text":" 里新增一个 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama-local"},{"type":"text","text":" 提供商,完整配置示例:"}]},{"type":"paragraph","attrs":{"id":"08953bcb-f06a-4271-8212-f471645b0d3a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}},{"type":"bold"}],"text":"json"}]},{"type":"paragraph","attrs":{"id":"77835148-4466-4c2d-96a7-c7e26ecd3dc6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"复制"}]},{"type":"paragraph","attrs":{"id":"6b7d5aae-f222-45c4-bcda-3237841c94b0","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"注意把 "},{"type":"text","marks":[{"type":"code"}],"text":"192.168.1.100"},{"type":"text","text":" 替换成你自己的局域网 IP。"}]},{"type":"heading","attrs":{"id":"789a92f1-25b8-42c1-9e2a-98ab671fbc90","textAlign":"inherit","indent":0,"level":3,"isHoverDragHandle":false},"content":[{"type":"text","text":"3.4 配置关键注意点"}]},{"type":"table","attrs":{"id":"a83f5a19-25a4-4eca-96d9-d00b8ce73501","isHoverDragHandle":false},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"0b9d7007-0f80-469a-aa7c-2961f7568972","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置项"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"e22e5adc-9d3b-483f-a417-f9201d96282c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"说明"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"ba7de02e-babe-44ae-b6cf-39759e5bca91","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"baseUrl"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"67854c02-f566-4133-bea9-6b4b20a87ded","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"必须包含 "},{"type":"text","marks":[{"type":"code"}],"text":"/v1"},{"type":"text","text":" 后缀,完整路径是 "},{"type":"text","marks":[{"type":"code"}],"text":"http://IP:11434/v1"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"a1d6cdae-db86-4b4d-9ecd-3f74c90d0846","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"apiKey"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"afcdf601-0a79-40df-9929-1d0a3bfaf80f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"填 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama"},{"type":"text","text":" 或任意非空字符串即可"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"30bae087-1d2f-4626-90c1-7fbc7eb50d85","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"api"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"ce99b200-d4a5-4f0d-93c5-7edbc6ed6e9e","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"固定填 "},{"type":"text","marks":[{"type":"code"}],"text":"openai-completions"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"6af9d7b9-98a8-4034-8ae3-57555daf233b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"primary 格式"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"87371641-55b9-470f-a8e4-11f29b4fc00f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"code"}],"text":"提供商名/模型ID"},{"type":"text","text":",这里是 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama-local/qwen2.5:14b"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"66ab4eb0-5544-4750-b190-f846112cb5f7","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"alias"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"835e3a53-de92-4c40-a19c-bbff713aec06","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"不配的话模型不会出现在下拉框里"}]}]}]}]},{"type":"paragraph","attrs":{"id":"105f45b7-6643-4d1b-94eb-73adc5487fb2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置中保留了 "},{"type":"text","marks":[{"type":"code"}],"text":"qclaw"},{"type":"text","text":" 作为 fallback,当本地模型响应超时,会自动切换到云端模型,避免对话卡死。"}]},{"type":"horizontalRule","attrs":{"id":"2383847f-d8cc-4bbd-8f93-1f8876483da8","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"68909dbc-f0e8-4785-8e48-a360eb81b6c4","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"第四步:排查\"模型灰色不可选\"的问题"}]},{"type":"paragraph","attrs":{"id":"65c8729d-b836-4982-be91-1aa4a64eb6c9","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置完成后重启 QClaw,如果发现本地模型在下拉框里是灰色的,无法选择,按以下步骤排查:"}]},{"type":"orderedList","attrs":{"id":"e9551b7f-46eb-4fcb-9cf8-aeffff49930b","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"58262615-d1d0-4cff-a42f-e0bc3f149438"},"content":[{"type":"paragraph","attrs":{"id":"4ed14cbb-d0d9-4da0-b097-f1c9199a9d4f","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"确认 Ollama 服务正在运行"}]}]},{"type":"listItem","attrs":{"id":"e5cd6f03-d4b9-415e-9a58-ff863161304d"},"content":[{"type":"paragraph","attrs":{"id":"9edd978a-959d-4ec4-9a14-95387adc9ae2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"确认防火墙没有拦截 11434 端口"}]}]},{"type":"listItem","attrs":{"id":"63f6d3e8-683a-45f8-a929-1005e65c4152"},"content":[{"type":"paragraph","attrs":{"id":"19f2fd88-7d90-4cb1-bec5-fedf551fac7b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"确认 openclaw.json 的 JSON 格式正确(可以用 JSON 校验工具检查)"}]}]},{"type":"listItem","attrs":{"id":"ee816f34-8c24-4e6d-bc2f-74053c7284df"},"content":[{"type":"paragraph","attrs":{"id":"872b7dee-fe6b-4654-8b52-0ff6ff8411e2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}},{"type":"bold"}],"text":"最重要的是"},{"type":"text","text":":确认 "},{"type":"text","marks":[{"type":"code"}],"text":"id"},{"type":"text","text":" 字段的值和 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama list"},{"type":"text","text":" 命令输出的模型名称完全一致"}]}]}]},{"type":"paragraph","attrs":{"id":"65bad133-83e2-4b37-ac05-fbe659e60581","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}},{"type":"bold"}],"text":"bash"}]},{"type":"paragraph","attrs":{"id":"416dfc10-c44e-4677-a9e3-680e9b946589","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","marks":[{"type":"textStyle","attrs":{"color":"","background":""}}],"text":"复制"}]},{"type":"codeBlock","attrs":{"id":"4017ffe0-7237-4f0e-acd8-1e50e161ccf6","language":"javascript","theme":"atom-one-dark","runtimes":0,"isHoverDragHandle":false,"key":"","languageByAi":"javascript"},"content":[{"type":"text","text":"$ ollama list\nNAME ID SIZE MODIFIED\nqwen2.5:14b xxx 8.7 GB X days ago\n"}]},{"type":"paragraph","attrs":{"id":"d826e6f1-7a32-47ba-90dd-87c819c396d4","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"openclaw.json 里的 "},{"type":"text","marks":[{"type":"code"}],"text":"id"},{"type":"text","text":" 和 "},{"type":"text","marks":[{"type":"code"}],"text":"name"},{"type":"text","text":" 必须和这里显示的 "},{"type":"text","marks":[{"type":"code"}],"text":"NAME"},{"type":"text","text":" 完全一致,包括标签(如 "},{"type":"text","marks":[{"type":"code"}],"text":":14b"},{"type":"text","text":")不能省略。"}]},{"type":"horizontalRule","attrs":{"id":"fcacfa76-e858-4dda-a274-b16eb3cb722c","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"6d9df115-1849-4203-ba3a-9ccad6fbc31a","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"第五步:验证是否生效"}]},{"type":"paragraph","attrs":{"id":"13ba1490-eed4-4418-9024-6aa20734b897","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"重启 QClaw,打开对话界面,模型选择下拉框里应该能看到你配置的 alias(上例中是\"本地 Qwen14B\")。"}]},{"type":"paragraph","attrs":{"id":"4f650168-88af-4e4c-87a0-c7dc426870c1","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"选择它,发送一条测试消息,如果 Ollama 的终端里有推理日志输出,且 QClaw 能正常回复,说明配置成功。"}]},{"type":"horizontalRule","attrs":{"id":"fe6b872c-94c8-47e3-9716-ece19d9e56e0","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"565c49f5-4d89-4e4c-840f-8260361715e0","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"本地模型 vs 云端模型"}]},{"type":"table","attrs":{"id":"d0eb0d2f-f63f-4600-9072-9064a4b41e3b","isHoverDragHandle":false},"content":[{"type":"tableRow","content":[{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"74702a5c-4dee-44aa-86f7-9cdad57963df","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"维度"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"70da0cb7-6d4f-4b6f-8779-1eaa9e36509d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"本地模型(Ollama)"}]}]},{"type":"tableHeader","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"b5fe8865-dc2b-4eb1-9fbf-b07c3f0f5012","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"云端模型(QClaw 默认)"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"d0f7ad3d-d451-4d31-aa94-d82d1840f81b","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"积分消耗"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"f764039c-5c7a-4013-8985-8b70d551f28d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"不消耗积分"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"d6fcf952-0a0a-45fa-81b4-a6d9109a8d9a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"每次调用消耗积分"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"2c270356-fe8b-41d0-9803-e91c26d6cf77","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"数据隐私"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"83f82690-9e1b-459a-983c-a0af2c592113","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"数据不出本机"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"25089de6-4a95-4a9d-9703-1b0581066991","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"数据经腾讯云端处理"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"2c139820-f7eb-40f8-b141-15048d31209c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"响应速度"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"694a6883-07fa-41fa-bb1a-e6e0c994d584","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"取决于本地硬件"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"12355e60-5c08-4ba5-90d2-a82e692c8b59","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"取决于网络状况"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"e5fa6f66-286c-43a0-aa44-19a505f52db5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"离线使用"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"dac91392-231e-4eec-a43f-0f22f503bfcc","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"支持"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"9bead92c-fc03-4f52-ae30-4ecf415a625d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"不支持"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"b7cd1fe6-90c5-46d2-912c-740218e48a3c","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"模型能力"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"50f35e32-19b8-4f60-8dbc-4612a3ac6b82","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"取决于本地模型大小"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"6de239de-7f74-4b0f-a44e-31eea7df80e8","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"云端大模型能力更强"}]}]}]},{"type":"tableRow","content":[{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"9dc50556-87f1-45dc-a610-477b2357e243","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"硬件要求"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"60344923-627e-4725-a9de-3364e11ecee6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"需要独立显卡和足够显存"}]}]},{"type":"tableCell","attrs":{"colspan":1,"rowspan":1,"colwidth":null,"background":null,"color":null,"textAlign":null,"style":"padding: 4px; border-color: rgb(208, 215, 222); border-image: none 100% / 1 / 0 stretch;"},"content":[{"type":"paragraph","attrs":{"id":"86e6d189-a45c-4ca8-8dc1-dd10d2f366a2","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"无要求"}]}]}]}]},{"type":"horizontalRule","attrs":{"id":"952686fc-6546-4061-8d10-0c1351c50f0a","isHoverDragHandle":false}},{"type":"heading","attrs":{"id":"b1312238-bad5-4239-b8ca-3f897fac1bea","textAlign":"inherit","indent":0,"level":2,"isHoverDragHandle":false},"content":[{"type":"text","text":"总结"}]},{"type":"orderedList","attrs":{"id":"ce3f3c28-7b03-4101-ba8a-743b9c52655f","start":1,"isHoverDragHandle":false},"content":[{"type":"listItem","attrs":{"id":"b7fc86af-51ed-497d-ac5e-fcdf8dcc63cb"},"content":[{"type":"paragraph","attrs":{"id":"99c25273-7b6f-4a14-baf1-c4e88ff560c6","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"QClaw 可以通过修改 "},{"type":"text","marks":[{"type":"code"}],"text":"openclaw.json"},{"type":"text","text":" 接入本地 Ollama 模型,避免积分消耗"}]}]},{"type":"listItem","attrs":{"id":"8b143e40-4f17-4fdf-973b-8dce30f6b350"},"content":[{"type":"paragraph","attrs":{"id":"3164f624-c767-489c-8fee-dd8f491a956a","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置的核心是三个要素:IP 地址(建议用局域网 IP 而非 localhost)、端口(必须加 "},{"type":"text","marks":[{"type":"code"}],"text":"/v1"},{"type":"text","text":" 后缀)、模型 ID(必须与 "},{"type":"text","marks":[{"type":"code"}],"text":"ollama list"},{"type":"text","text":" 输出一致)"}]}]},{"type":"listItem","attrs":{"id":"0cf38b8c-38cd-40f4-b40e-883e2eb83afc"},"content":[{"type":"paragraph","attrs":{"id":"61fef8e0-e974-4237-a4bd-1eb2dccb217d","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"配置前务必完全退出 QClaw,否则配置可能不会生效"}]}]},{"type":"listItem","attrs":{"id":"4646866c-f1f7-45f5-a2e8-101726fd1180"},"content":[{"type":"paragraph","attrs":{"id":"f146c59a-2353-4221-a379-3044e1a20cc5","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"建议保留云端模型作为 fallback,避免本地模型异常时对话中断"}]}]}]},{"type":"paragraph","attrs":{"id":"88ae7d47-b233-42af-a450-2849e7ec0a39","textAlign":"inherit","indent":0,"color":null,"background":null,"isHoverDragHandle":false},"content":[{"type":"text","text":"如果你也在用 QClaw 并且有本地 Ollama 环境,可以按照本文的步骤尝试配置。如有问题,欢迎在评论区交流。"}]}]}