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

@henryxiaoyang/wechat-openclaw-channel

v1.1.0

Published

OpenClaw 微信通路插件 — 支持 QClaw 和 WorkBuddy 双模式

Readme

wechat-openclaw-channel

v1.1.0 — 现已支持 WorkBuddy 模式! 无需内测码,通过 WorkBuddy 账号即可登录使用。

OpenClaw 微信通路插件 — 支持 QClaw 和 WorkBuddy 双模式。

安装

openclaw plugins install @henryxiaoyang/wechat-openclaw-channel

快速开始

1. 登录

openclaw wechat login

交互式选择登录模式:

  • QClaw — 微信扫码登录 目前需要内测码。
  • WorkBuddy — CodeBuddy OAuth 登录

2. 启动 Gateway

openclaw gateway restart

3. 设备绑定(首次使用)

openclaw wechat bind

在微信中打开返回的链接完成绑定,绑定后即可通过微信对话。

登录模式

QClaw 模式

通过微信平台 OAuth 获取 token,连接 WebSocket 网关。目前需要内测码。

WorkBuddy 模式 (推荐)

通过 CodeBuddy OAuth 获取 token,连接 WebSocket 网关。不需要内测码。

CLI 命令

| 命令 | 说明 | |------|------| | openclaw wechat login | 交互式登录(选择 QClaw 或 WorkBuddy) | | openclaw wechat logout | 清除登录态 | | openclaw wechat bind | 获取设备绑定链接 |

配置

凭证统一存储在 ~/.openclaw/openclaw.jsonchannels.wechat-openclaw-channel 下:

{
  "channels": {
    "wechat-openclaw-channel": {
      "loginMode": "workbuddy",
      "environment": "production",
      "qclaw": {
        "jwtToken": "...",
        "channelToken": "...",
        "apiKey": "...",
        "guid": "...",
        "userId": "...",
        "wsUrl": "...",
        "userInfo": {}
      },
      "workbuddy": {
        "accessToken": "...",
        "refreshToken": "...",
        "userId": "...",
        "hostId": "...",
        "baseUrl": "https://copilot.tencent.com",
        "userInfo": {}
      }
    }
  }
}

| 字段 | 说明 | |------|------| | loginMode | 当前登录模式:qclawworkbuddy | | environment | 环境:production(默认)或 test | | qclaw | QClaw 模式凭证(登录后自动写入) | | workbuddy | WorkBuddy 模式凭证(登录后自动写入) |

项目结构

index.ts                    # 插件入口,注册渠道、CLI、启停 WebSocket
auth/
  types.ts                  # 认证相关类型(LoginMode, QClawCredentials, WorkBuddyCredentials)
  environments.ts           # 生产/测试环境配置
  device-guid.ts            # 设备 GUID 生成
  qclaw-api.ts              # QClaw JPRX 网关 API 客户端
  codebuddy-api.ts          # CodeBuddy (copilot.tencent.com) API 客户端
  wechat-login.ts           # QClaw 扫码登录流程(交互式)
  wechat-qr-poll.ts         # QR 码 URL 生成
  device-bind.ts            # 设备绑定流程
websocket/
  types.ts                  # AGP 协议类型
  websocket-client.ts       # QClaw WebSocket 客户端
  centrifuge-client.ts      # WorkBuddy Centrifuge WebSocket 客户端
  message-handler.ts        # 消息处理(调用 Agent)
  message-adapter.ts        # AGP ↔ OpenClaw 消息适配
common/
  runtime.ts                # OpenClaw 运行时单例
  agent-events.ts           # Agent 事件订阅
  message-context.ts        # 消息上下文构建

License

MIT