openclaw2026.2.1安装

张开发
2026/4/12 4:59:50 15 分钟阅读

分享文章

openclaw2026.2.1安装
文章安装的是 openclaw2026.2.1 版本。openclaw2026.3 及以上有安全限制要求必须通过 HTTPS 或本地安全上下文如 localhost访问。这是为了防止未加密的连接被中间人攻击或滥用可以用nginx做代理。后面可能会添加关联到企业微信一、服务器准备一台至少4G内存的服务器二、openclaw安装环境准备yum install -y git wget gcc-c make cmake yum install -y wget tar xz xz-devel cd /usr/local/src wget -c https://nodejs.org/dist/v24.12.0/node-v24.12.0-linux-x64.tar.xz tar xf node-v24.12.0-linux-x64.tar.xz mv node-v24.12.0-linux-x64 /usr/local/node echo export PATH/usr/local/node/bin:$PATH /etc/profile source /etc/profile node -v npm -v #设置国内镜像源 npm config set registry https://registry.npmmirror.com npm config set git $(which git) 运行setup命令指定本地模式适配在线部署场景 openclaw setup开始安装# 执行全局安装 npm install -g openclaw2026.2.1 --verbose --force # 如果安装失败可以使用 npm uninstall -g openclaw 卸载配置文件使用七牛云大模型注意修改 apiKey1.vim ~/.openclaw/openclaw.json { meta: { lastTouchedVersion: 2026.2.1, lastTouchedAt: 2026-04-03T08:38:22.202Z }, wizard: { lastRunAt: 2026-04-03T08:38:22.191Z, lastRunVersion: 2026.2.1, lastRunCommand: doctor, lastRunMode: local }, models: { mode: merge, providers: { qiniu: { baseUrl: https://api.qnaigc.com/v1, apiKey: xxxxxxxxxxxxxxxxxxx, api: openai-completions, models: [ { id: qwen-turbo, name: Qiniu Qwen Turbo, reasoning: false, input: [ text ], cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 }, contextWindow: 200000, maxTokens: 8192 } ] } } }, agents: { defaults: { models: { qiniu/qwen-turbo: { alias: qiniu } }, maxConcurrent: 4, subagents: { maxConcurrent: 8 } }, list: [ { id: main, name: main, workspace: /root/.openclaw/workspace, agentDir: /root/.openclaw/agents/main/agent, model: qiniu/qwen-turbo } ] }, messages: { ackReactionScope: group-mentions }, commands: { native: auto, nativeSkills: auto, restart: true }, gateway: { port: 18789, mode: local, bind: lan, controlUi: { allowInsecureAuth: true }, auth: { mode: token, token: 3f650da1b6ccce9297efeb1990d5a2520bb5951723b87016 } }, plugins: { entries: {} } } 2.~/.openclaw/agents/main/agent/auth-profiles.json { qiniu:default: { provider: qiniu, mode: api-key } } 3.# 修复配置文件 openclaw doctor --fix启动openclaw gateway

更多文章