openclaw2026.2.1安装

文章安装的是 openclaw2026.2.1 版本。

openclaw2026.3 及以上有安全限制,要求必须通过 HTTPS 或本地安全上下文(如 localhost)访问。这是为了防止未加密的连接被中间人攻击或滥用,可以用nginx做代理。

后面可能会添加关联到企业微信

一、服务器准备

一台至少4G内存的服务器

二、openclaw安装

  1. 环境准备

    复制代码
    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
  2. 开始安装

    复制代码
    # 执行全局安装;
    npm install -g openclaw@2026.2.1 --verbose --force
    # 如果安装失败可以使用   npm uninstall -g openclaw   卸载
  3. 配置文件,使用七牛云的千问大模型

    1.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

注意修改 apiKey,还有 models里面的baseUrl、id,name自定义

以及修改

由于是采用七牛云厂商上的,所以登录七牛云查看,找到信息填入上方

  1. 启动

    复制代码
    openclaw gateway
相关推荐
程序员柒叔1 天前
Hermes Agent 一周动态-2026-W24
人工智能·github·agent·openclaw·hermes
放下华子我只抽RuiKe51 天前
FastAPI 全栈后端(六):中间件与依赖注入
ai·中间件·fastapi·ai编程·qwen·ai大模型·openclaw
AC赳赳老秦1 天前
OpenClaw + 阿里云 OSS 自动化:批量上传下载文件、自动备份本地数据到云端
运维·数据库·阿里云·自动化·云计算·deepseek·openclaw
大数据AI人工智能培训专家培训讲师叶梓1 天前
人工智能培训讲师叶梓OpenClaw 智能体技术与科研自动化实战培训提纲
人工智能·自动化·智能体·人工智能讲师·大模型讲师·openclaw·龙虾
AC赳赳老秦1 天前
OpenClaw+AWS 深度应用:自动生成 CloudFormation 模板、批量管理 S3 存储桶
java·python·面试·职场和发展·php·deepseek·openclaw
虾壳云官方1 天前
【一步到位】OpenClaw 2.7.9 Windows 部署 + 激活 + 使用 (含安装包)
人工智能·windows·自动化·openclaw·小龙虾·openclaw安装·openclaw一键安装
七夜zippoe1 天前
OpenClaw 节点屏幕共享:远程显示与控制实战
节点·控制·屏幕·openclaw·远程显示
是发财不是旺财2 天前
Hermes 网关四层权限控制方案:让 AI Agent 安全地查数据库
数据库·安全·agent·openclaw·hermes
毕竟是shy哥2 天前
Claude Code 接入 DeepSeek 保姆级教程,WSL/Linux 通用
linux·安装教程·codex·deepseek·claude code·openclaw
无心水2 天前
【Hermes:团队、企业、生态与边界】47、Hermes 在 CI/CD 中的完整 DevOps 流水线:从 PR 审查到自动部署,让 Agent 接管你的发布流程
运维·人工智能·devops·openclaw·养龙虾·hermes·honcho