Skip to main content

Documentation Index

Fetch the complete documentation index at: https://openclaw.zhcndoc.com/llms.txt

Use this file to discover all available pages before exploring further.

Zalo 个人版(插件)

通过插件为 OpenClaw 提供 Zalo 个人版支持,使用原生 zca-js 自动化一个普通的 Zalo 用户账号。
非官方自动化可能导致账号被停用或封禁。请自行承担风险。

命名

渠道 id 使用 zalouser,以明确表示这是在自动化一个个人 Zalo 用户账号(非官方)。我们保留 zalo,以便将来可能接入官方 Zalo API。

运行位置

此插件运行在 Gateway 进程内部 如果你使用远程 Gateway,请在运行 Gateway 的机器上安装/配置,然后重启 Gateway。 不需要外部的 zca/openzca CLI 二进制文件。

安装

选项 A:从 npm 安装

openclaw plugins install @openclaw/zalouser
使用裸包以跟随当前官方发布标签。只有在你需要可复现安装时才固定到某个精确版本。 之后重启 Gateway。

选项 B:从本地文件夹安装(开发)

PLUGIN_SRC=./path/to/local/zalouser-plugin
openclaw plugins install "$PLUGIN_SRC"
cd "$PLUGIN_SRC" && pnpm install
之后重启 Gateway。

配置

渠道配置位于 channels.zalouser 下(不是 plugins.entries.*):
{
  channels: {
    zalouser: {
      enabled: true,
      dmPolicy: "pairing",
    },
  },
}

CLI

openclaw channels login --channel zalouser
openclaw channels logout --channel zalouser
openclaw channels status --probe
openclaw message send --channel zalouser --target <threadId> --message "来自 OpenClaw 的问候"
openclaw directory peers list --channel zalouser --query "name"

Agent 工具

工具名称:zalouser 操作:sendimagelinkfriendsgroupsmestatus 渠道消息操作还支持 react,用于消息表情回应。

相关内容