手机安装 openclaw

1 . 安装termux,termux是一个适用于 Android 的终端模拟器,其环境类似于 Linux 环境。 无需Root或设置即可使用。
下载地址:https://gitee.com/OpenclawCN/termux-app/
termux-appv0.118.3+github-debug universal.apk  可以下载最大的

2.更新系统并安装核心组件
#更新所有软件包

pkg  update -y  &&  pkg  upgrade  -y

 

3.#安装Ubuntu 管理器、API、桥接工具和常用工具(就是套壳也可以不安装)

pkg  install  proot-distro termux-api openssh* -y

Proot-distro :是虚拟目录
Termux-api 是命令行的接口

 

4. 安装ubuntu

进入termux, 输入命令安装Ubuntu 
 proot-distro install ubuntu

 

5. 进入ubuntu

proot-distro login ubuntu

为了登录ubuntu不用每次执行命令,把命令添加到环境变量中
echo "alias u='proot-distro login ubuntu'" >> ~/.bashrc

 

 

 

6. ubuntu 中安装 nodejs

现在需要更新Ubuntu的软件依赖库
apt update && apt upgrade -y
接下来安装 node.js npm git apt install curl git build
-essential python3 -y
在Ubuntu里安装node22.4或者24.
04 curl -fsSL https://deb.nodesource.com/setup_24.x |bash - apt install nodejs -y

 npm config set registry http://registry.npmjs.om
检查是否安装成功 Node
-v  npm -v 出现版本号 说明安装成功

 

 

 

7. 安装 openclaw

npm install -g openclaw@latest

 


8 openclaw配置

  🦞 OpenClaw Installer
  Siri's competent cousin.

✓ Detected: linux
✓ Node.js v22.22.0 found
✓ Git already installed
→ Installing OpenClaw 2026.2.6-3...
✓ OpenClaw installed

🦞 OpenClaw installed successfully (2026.2.6-3)!
Home sweet home. Don't worry, I won't rearrange the furniture.

Starting setup...


🦞 OpenClaw 2026.2.6-3 (85ed6c7) — curl for conversations.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
                  🦞 OPENCLAW 🦞                    

┌  OpenClaw onboard

 






image

 

image

 

image

 

image

 

浏览器打开 https://chat.qwen.ai/authorize?user_code=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx, 访问后可以使用。

 

image

选择默认模型 Keep current (qwen-portal/coder-model) 即可。接下来会提示选择 channel,这里先跳过,后续再添加。之前飞书都没有内置的,现在新版本飞书已经内置了 

 

image

 

image

 

image

 

image

 

◇  Configure DM access policies now? (default: pairing) #
│  Yes
│
◇  Feishu DM access ─────────────────────────────────────────────────────────────────────────╮
│                                                                                            │
│  Default: pairing (unknown DMs get a pairing code).                                        │
│  Approve: openclaw pairing approve feishu <code>                                           │
│  Allowlist DMs: channels.feishu.dmPolicy="allowlist" + channels.feishu.allowFrom entries.  │
│  Public DMs: channels.feishu.dmPolicy="open" + channels.feishu.allowFrom includes "*".     │
│  Multi-user DMs: set session.dmScope="per-channel-peer" (or "per-account-channel-peer"     │
│  for multi-account channels) to isolate sessions.                                          │
│  Docs: start/pairing                     │
│                                                                                            │
├────────────────────────────────────────────────────────────────────────────────────────────╯
│
◇  Feishu DM policy
│  Open (public inbound DMs) # 公开
│
◇  Add display names for these accounts? (optional)
│  No # 不需要
│
└  Channels updated.

 

 

 

image

 

image

 

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

 

 

 

 

 

开通获取阿里云百炼 API Key

OpenClaw 支持使用 models.providers(或 models.json)来添加自定义模型提供商或与 OpenAI/Anthropic 兼容的代理服务。

阿里云百炼的模型 API 调用支持 OpenAI-compatible 接口,你只需要登录 阿里云百炼大模型服务平台 准备好:

如何获取 API key?

登录 阿里云百炼大模型服务平台,点击密钥管理(北京或新加坡)页面,单击创建 API-KEY,复制即可通过API KEY调用大模型。

如果你使用的是百炼 Coding Plan,记得替换 API key 和模型调用地址:

image

 

 

 OpenClaw 模型引用是 provider/model 的格式,我们需要按照 Moltbot 可解析的方式把模型信息放到配置里。你可以选择 Web UI 方式,或手动编辑配置文件,进行配置。

openclaw dashboard

 

image

 

 

手动编辑

或者手动编辑配置信息到~/.openclaw/openclaw.json 里。这里以阿里云百炼于 2026.01.26 刚发布的 qwen3-max-2026-01-23 模型举例,你可以直接复制粘贴这段配置说明

 

{
  agents: {
    defaults: {
      model: { primary: "bailian/qwen3-max-2026-01-23" },
      models: {
        "bailian/qwen3-max-2026-01-23": { alias: "通义千问 Max Thinking 版" }
      }
    }
  },
  models: {
    mode: "merge",
    providers: {
      bailian: {
        baseUrl: "https://dashscope.aliyuncs.com/compatible-mode/v1",
        apiKey: "${DASHSCOPE_API_KEY}",
        api: "openai-completions",
        models: [
          {
            id: "qwen3-max-2026-01-23",
            name: "通义千问 Max Thinking 版",
            reasoning: false,
            input: ["text"],
            cost: { input: 0.0025, output: 0.01, cacheRead: 0, cacheWrite: 0 },
            contextWindow: 262144,
            maxTokens: 32768
          }
        ]
      }
    }
  }
}

 

  安装skill方法, 但是安装基本上限制

root@localhost:~/.openclaw/skills# npx clawhub@latest install remind-me

 

通过飞书机器人,直接让安装skills 比较方便

1.  kubernetes
2. ansible
3. remind-me
4. find-skills
5. ai-news-digest
6. imap-smtp-email

 

1. kuberetens   问:在看看k8s 节点状态是否正常

image


 问:用ssh 远程登录查看 10.189.98.11,查看磁盘空间,公钥私有已经打通,执行返回

image

 

 问:打开手机 闪光灯,openclaw就部署在 手机中,可以直接通过 termux-api 进行调用

image

 

 问:15:30 提醒我喝水

image

 

5. ai-news-digest  问:自动生成 一份AI 行业早报

image

 

 

使用邮件管理技能 (imap-smtp-email)

image

 

 

问: 帮创建.env 配置文件

image

 

 

image

 

 

通过页面 添加models

image

 

 

image

 

 

redhat系列linux安装nodejs

 curl -fsSL https://rpm.nodesource.com/setup_22.x | bash -

dnf install nsolid    git  -y

npm config set registry https://registry.npmmirror.com

 

 

 

创建钉钉应用

钉钉开发者后台:https://open-dev.dingtalk.com/
  1. 访问 钉钉开发者后台
  2. 创建企业内部应用

 

image

 

 

 

  1. 添加「机器人」能力

image

 

 

  1. 进行机器人配置,重点:配置消息接收模式为 Stream 模式

image

 

 

 

image

 

  1. 配置权限管理
      在应用的权限管理页面,需要开启以下权限:
      1. ✅ Card.Instance.Write — 创建和投放卡片实例
      2. ✅ Card.Streaming.Write — 对卡片进行流式更新
      步骤:
    1. 进入应用 → 权限管理
    2. 搜索「Card」相关权限
    3. 勾选上述两个权限

保存权限配置

image

 

  1. 发布应用

image

 

安装钉钉插件

钉钉插件下载:https://github.com/soimy/openclaw-channel-dingtalk
直接运行 openclaw 插件安装命令,openclaw 会自动处理下载、安装依赖和注册:
 
openclaw plugins install https://github.com/soimy/clawdbot-channel-dingtalk.git

如果失败

git clone https://github.com/soimy/clawdbot-channel-dingtalk.git

mv clawdbot-channel-dingtalk .openclaw/extensions/
cd .openclaw/extensions/clawdbot-channel-dingtalk
npm install

 

 

重启网关:
# 当运行中,进行重启
openclaw gateway --verbose

 

配置 OpenClaw

从开发者后台应用中获取:
  • Agent ID (应用 ID)
  • Client ID (AppKey)
  • Client Secret (AppSecret)
  • Robot Code (与 Client ID 相同)
如图:

image

 

 
访问http://127.0.0.1:18789/channels ,找到DingTalk设置卡片进行配置:

image

 

 
重启 Gateway
 
重启网关:
# 当运行中,进行重启
openclaw gateway --verbose

 

 

image

 

image

 

在一个上gateway,创建多个agent,分别为 main, 云运维团队,云工具团队,云运营团队,每个团队都有不同的职责, main根据职责分配任务,这个需要怎么配置

 

image

 

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

image

 

 

image

 

image

 

image

 




 

学习资料
https://codecity.feishu.cn/wiki/MGwRwZifHioRxmkSRricaPx0noc

posted @ 2026-02-26 22:01  fengjian1585  阅读(687)  评论(0)    收藏  举报