各位大佬,我是刚入坑的萌新。刚用自己的电脑部署了一套本地模型,但一直报错。请各位大佬指点指点: CPU: I7 9700F GPU: RTX2060 内存:24G 硬盘 256G SSD openclaw(0.2.0)+ ollama(0.19.0) +qwen2.5:7b + windows10 专业版
问题日志:
OpenClaw-CN 0.2.0 (1b9f164) — 我精通bash、温和的讽刺和激进的制表符补全能量。
12:42:44 [canvas] host mounted at http://127.0.0.1:18789/__clawdbot__/canvas/ (root C:\Users\Administrator\clawd\canvas) 12:42:44 [hooks] ensure skills watcher is running for all agent workspaces 12:42:44 [heartbeat] started 12:42:44 [gateway] agent model: ollama/qwen2.5:7b 12:42:44 [gateway] listening on ws://127.0.0.1:18789 (PID 4932) 12:42:44 [gateway] listening on ws://[::1]:18789 12:42:44 [gateway] log file: \tmp\clawdbot\clawdbot-2026-04-06.log 12:42:44 [browser/server] Browser control listening on http://127.0.0.1:18791/ (auth=token) 12:42:46 [bonjour] gateway name conflict resolved; newName="MS-ISSLTJXCEMAS (Clawdbot) (2)" 12:42:46 [bonjour] gateway hostname conflict resolved; newHostname="MS-ISSLTJXCEMAS-(2)" 12:43:45 Embedded agent failed before reply: No API key found for provider "ollama". Auth store: 12:43:41 12:43:41 [ws] webchat connected conn=0df1deda-967b-41b8-8810-fe103fc16b87 remote=127.0.0.1 client=clawdbot-control-ui webchat vdev 12:43:45 Embedded agent failed before reply: No API key found for provider "ollama". Auth store: C:\Users\Administrator.openclaw\agents\main\agent\auth-profiles.json (agentDir: C:\Users\Administrator.openclaw\agents\main\agent). Configure auth for this agent (openclaw-cn agents add <id>) or copy auth-profiles.json from the main agentDir.
| o 检测到现有配置 -------------------+ | workspace: .openclaw\workspace | | model: ollama/qwen2.5:7b | | gateway.mode: local | | gateway.port: 18789 | | gateway.bind: loopback | | skills.nodeManager: pnpm | +------------------------------------+
openclaw.json:
{
"meta": {
"lastTouchedVersion": "0.2.0",
"lastTouchedAt": "2026-04-06T10:55:28.782Z"
},
"wizard": {
"lastRunAt": "2026-04-06T10:55:28.756Z",
"lastRunVersion": "0.2.0",
"lastRunCommand": "configure",
"lastRunMode": "local"
},
"models": {
"mode": "merge",
"providers": {
"ollama": {
"baseUrl": "http://127.0.0.1:11434",
"api": "ollama",
"models": [
{
"id": "qwen2.5:7b",
"name": "qwen2.5:7b",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 4096
},
{
"id": "qwen3.5:7b",
"name": "qwen3.5:7b",
"reasoning": false,
"input": [
"text"
],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 128000,
"maxTokens": 4096
}
]
}
}
},
"agents": {
"defaults": {
"model": {
"primary": "ollama/qwen2.5:7b"
},
"models": {
"ollama/qwen2.5:7b": {
"alias": "qwen2.5:7b"
},
"ollama/qwen3.5:7b": {
"alias": "qwen3.5:7b"
}
},
"workspace": "C:\Users\Administrator\.openclaw\workspace",
"compaction": {
"mode": "safeguard"
},
"maxConcurrent": 4,
"subagents": {
"maxConcurrent": 8
}
},
"list": [
{
"id": "main"
},
{
"id": "ollama",
"name": "ollama",
"workspace": "C:\Users\Administrator\.openclaw\workspace-ollama",
"agentDir": "C:\Users\Administrator\.openclaw\agents\ollama\agent"
}
]
},
"tools": {
"web": {
"search": {
"enabled": false
},
"fetch": {
"enabled": true
}
}
},
"messages": {
"ackReactionScope": "group-mentions"
},
"commands": {
"native": "auto",
"nativeSkills": "auto"
},
"gateway": {
"port": 18789,
"mode": "local",
"bind": "loopback",
"auth": {
"mode": "token",
"token": "781892d7016a0fcc2a9760890931034404940ed6da7635c6"
},
"tailscale": {
"mode": "off",
"resetOnExit": false
}
},
"skills": {
"install": {
"nodeManager": "pnpm"
}
}
}
已执行操作:
在C:\Users\Administrator.openclaw\agents\main下新增auth-profiles.json:
{
"ollama": {
"apiKey": "ollama",
"baseUrl": "http://127.0.0.1:11434"
}
}
相似问题