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"
}
}