OpenClaw 安装 / 部署流程汇总

<- Blog

Windows系统安装(Win11)

WSL 中的 Linux 环境安装

  1. 在 PowerShell 中输入下面的命令安装 WSL 环境,然后重启:
wsl --install
  1. 重启完成后安装 Ubuntu 24.04,装完设置用户名和密码:
wsl --install ubuntu 24.04

(等价写法:wsl --install -d Ubuntu-24.04)

  1. 用安装脚本安装 OpenClaw:
curl -fssL https://openclaw.ai/install.sh | bash
  1. 配置相关环境,重启即可。

Windows 原生安装

  1. 访问 Node.js 官网下载安装:https://nodejs.org/zh-tw
  2. 访问 Git 官网下载安装:https://git-scm.com/
  3. 在 openclaw.ai 复制 npm 安装命令,在 PowerShell 中运行。若失败,先在 cmd 中执行:
git config --global url."https://github.com/".insteadOf "ssh://git@github.com/"

若脚本仍无法执行,再执行:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
  1. 安装 uv:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  1. 安装完成后运行配置向导:
openclaw onboard

飞书机器人配置(推荐)

  1. 打开飞书开放平台注册登录:https://open.feishu.cn/
  2. 创建自建应用,添加机器人。
  3. 添加机器人权限:获取与上传图片或文件资源、获取用户基本信息、获取群组信息、获取与发送单聊/群组信息、接收群聊中 @机器人消息事件、获取群组中所有信息、读取用户发给机器人的单聊信息、查看消息表情回复、获取单聊群组信息、以应用身份发送信息、更新消息。
  4. 创建版本并发布。
  5. 在 PowerShell 中添加飞书渠道:
openclaw channels add
  1. 事件回调改为长连接,发布版本,重启 gateway:
openclaw gateway restart
  1. 在飞书给机器人发消息,完成绑定。
  2. 完成。

Telegram 机器人配置(需科学上网)

[ COMMENTS / 0 ]

[ empty ] no comments yet.