npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

openclaw-channel-xiaozhu

v3.1.16

Published

OpenClaw 小助渠道插件 — 通过 HTTP/SSE 接口接入 AI 对话

Readme

openclaw-channel-xiaozhu

openclaw-channel-xiaozhu 是一个将 OpenClaw 通过 HTTP/SSE 接入外部客户端、网页端或中继平台的小助渠道插件。

安装

npx -y openclaw-channel-xiaozhu

兼容长命令:

npx -y --package openclaw-channel-xiaozhu openclaw-xiaozhu-init

上面这一条会直接拉起初始化;如检测到插件未安装,会自动安装并写入默认配置。

升级到最新版

macOS / Linux:

openclaw plugins install [email protected] --pin

Windows PowerShell:

$env:npm_config_cache="$env:TEMP\npm-cache"; openclaw plugins install [email protected] --pin

初始化

npx -y openclaw-channel-xiaozhu --client-id "<client_id>" --client-secret "<client_secret>"

兼容长命令:

npx -y --package openclaw-channel-xiaozhu openclaw-xiaozhu-init --client-id "<client_id>" --client-secret "<client_secret>"

仅安装并写入默认配置(不填凭证,后续补齐):

macOS / Linux:

npx -y openclaw-channel-xiaozhu

Windows PowerShell:

npx --yes openclaw-channel-xiaozhu

带凭证初始化:

npx -y openclaw-channel-xiaozhu --client-id "<client_id>" --client-secret "<client_secret>"

常用说明:

  • 默认账号 ID:default
  • 默认端口:18800
  • 平台地址内置为 https://xiaozhu.wxwyzn.com
  • 未提供凭证时也可以先写入空配置,后续再补齐
  • openclaw-xiaozhu-init 会自动补齐 plugins.allow 和插件启用项,减少首次安装后的信任配置缺口

当前支持的消息动作

  • send
  • upload-file
  • read
  • edit
  • react
  • reactions
  • pin
  • unpin
  • pins
  • search
  • delete
  • poll
  • permissions
  • reply
  • forward

兼容说明:

  • 旧动作名 list-pins 仍可继续调用,插件内部会自动规范化为 pins
  • permissions 返回的是插件本地权限/投递策略快照,不是 Discord/Matrix 那种远端频道 ACL

排障

  • macOS 若把 OPENCLAW_STATE_DIR 指到 /tmp/...,OpenClaw 宿主可能把 /tmp/private/tmp 视为不同路径,从而出现一次 loaded without install/load-path provenance 误报;使用默认 ~/.openclaw/... 路径即可避免
  • plugins.allow is empty 是宿主真实告警;运行一次 openclaw-xiaozhu-init 后会自动补齐小助插件的显式信任配置
  • Windows 若原生 PowerShell 安装时遇到 spawn npm ENOENT,优先直接运行 npx -y openclaw-channel-xiaozhu;当前版本会自动走 bundled fallback,自行把插件落到 OpenClaw 扩展目录

最小健康检查

curl http://127.0.0.1:18800/api/health

期望返回:

{"ok":true}

最小对话请求

curl -X POST http://127.0.0.1:18800/api/chat \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{"message":"你好","from":"demo-user","session":"demo-1"}'

适用场景

  • 在本地或服务器上暴露一个统一的 HTTP 聊天入口
  • 将 OpenClaw 会话桥接到网页客户端、移动端或中继平台
  • 为机器人管理平台提供标准化消息动作入口