OpenClaw部署配置windows

张开发
2026/4/8 12:49:10 15 分钟阅读

分享文章

OpenClaw部署配置windows
1安装Node.js下载地址https://nodejs.org/en/download2安装git3安装与配置 OpenClaw在管理员PowerShell中执行以下命令npminstall-gopenclawlatest4初始化配置 OpenClawopenclaw onboard4-1部署风险提示选择 YES。4-2配置模式选择 QuickStart并回车。4-3选择模型供应商例如选择 火山引擎回车确认。4-4后续配置对话工具 (skip for now) 和 Skills (no) 可暂时跳过5注意需要启动openclaw gateway命令网页控制台才能访问。所以打开PowerShell输入openclaw gateway命令5-1在主机上启动网关openclaw gateway run5-2获取带令牌的仪表盘 URL然后自动打开opencode的页面openclaw dashboard6在用户目录下配置模型信息openclaw.json{agents:{defaults:{model:{primary:qwen35122b/qwen3.5:122b },models:{ollama/qwen3-coder:30b:{}},workspace:C:\\Users\\dell\\.openclaw\\workspace}},gateway:{mode:local,auth:{mode:token,token:ddda7c106535bd009537b753b2507e9b2375b75619035846},port:18789,bind:loopback,tailscale:{mode:off,resetOnExit:false},controlUi:{allowInsecureAuth:true},nodes:{denyCommands:[camera.snap,camera.clip,screen.record,contacts.add,calendar.add,reminders.add,sms.send,sms.search]}},session:{dmScope:per-channel-peer},tools:{profile:coding},models:{mode:merge,providers:{gpt-oss120b:{api:openai-completions,apiKey:111,baseUrl:http://192.168.11.24:11434/v1,models:[{id:gpt-oss:120b,input:[text],name:gpt-oss:120b}]},qwen35122b:{api:openai-completions,apiKey:11,baseUrl:http://192.168.11.240:11434/v1,models:[{id:qwen3.5:122b,input:[text],name:qwen3.5:122b}]}}},auth:{profiles:{ollama:default:{provider:ollama,mode:api_key}}},hooks:{internal:{enabled:true,entries:{session-memory:{enabled:true}}}},wizard:{lastRunAt:2026-04-02T06:21:53.021Z,lastRunVersion:2026.4.1,lastRunCommand:onboard,lastRunMode:local},meta:{lastTouchedVersion:2026.4.1,lastTouchedAt:2026-04-02T06:21:53.033Z}}6-1使用cc-switch配置模型7更新openclaw第一步强制关闭所有占用文件的 Node 进程taskkill /f /im node.exe7-1第二步清理 npm 缓存防止报错npmcache clean--force7-2第三步重新安装更新npminstall-gopenclawlatest7-3第四步验证更新成功openclaw--version

更多文章