openclaw

使用容器部署openclaw服务,体验一把!

  1. docker容器环境安装
    ``
    // 拉取ubuntu22.04
    docker pull ubuntu:22.04

// 运行容器
docker run -itd –name=openclaw –network host ubuntu:22.04 /bin/bash

// 进入容器内部
docker exec -it openclaw bash
``

  1. 安装openclaw
    ``

    安装 Node.js 22.x 版本

    curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
    sudo apt-get install -y nodejs

curl -fsSL https://openclaw.ai/install.sh | bash
``

遇到问题:
配置QQ bot;

  • 需要到QQ开放中心 申请openclaw bot 获得key和secret

模型选择

  • 选择Z-AI 智普GLM 需要到智普 注册申请API key

有了以上内容 便可以配置QQ bot 接入openclaw服务;

``
容器内 需要直接启动服务

openclaw gateway

nohup openclaw gateway > /root/openclaw.log 2>&1 &
``

``

openclaw tui

openclaw dashboard

openclaw channels add –channel qqbot –token “1903978674:secret”
``