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

@icesword760/openclaw-wechat

v2026.2.24

Published

OpenClaw WeChat personal account channel plugin via WeChatPadPro (iPad protocol)

Readme

@icesword760/openclaw-wechat

OpenClaw channel plugin for WeChat personal accounts via WeChatPadPro (iPad protocol).

Features

  • Direct messages and group chats
  • Keyword trigger prefix (e.g. @ai) to coexist with personal use
  • AI reply prefix (e.g. 🤖) for visual distinction
  • Per-peer session routing for independent conversations
  • Quote reply support (extracts referenced message context)
  • Image and file exchange (inbound download + outbound send)
  • QR code login flow with terminal display
  • DM pairing / allowlist / open access policies
  • Multi-account support

Prerequisites

  1. WeChatPadPro running and accessible (see WeChatPadPro docs)
  2. A TOKEN_KEY generated via the WeChatPadPro admin API
  3. OpenClaw installed (npm i -g openclaw)

Install

openclaw plugins install @icesword760/openclaw-wechat

Configure

openclaw config set channels.wechat.enabled true
openclaw config set channels.wechat.serverUrl http://localhost:8849
openclaw config set channels.wechat.token YOUR_TOKEN_KEY

Optional settings

# Only process messages starting with "@ai"
openclaw config set channels.wechat.triggerPrefix "@ai"

# Prefix AI replies with an emoji
openclaw config set channels.wechat.replyPrefix "🤖 "

# Independent conversation context per user
openclaw config set session.dmScope "per-peer"

# DM access policy: "pairing" (default), "allowlist", or "open"
openclaw config set channels.wechat.dmPolicy "pairing"

Full config example

{
  "channels": {
    "wechat": {
      "enabled": true,
      "serverUrl": "http://localhost:8849",
      "token": "YOUR_TOKEN_KEY",
      "triggerPrefix": "@ai",
      "replyPrefix": "🤖 ",
      "dmPolicy": "pairing",
      "debugMessages": false
    }
  },
  "session": {
    "dmScope": "per-peer"
  }
}

Usage

  1. Start the OpenClaw gateway:
openclaw gateway
  1. Scan the QR code displayed in your terminal with WeChat.

  2. If using pairing policy, approve senders:

openclaw pairing approve wechat <CODE>
  1. Send messages starting with your trigger prefix (e.g. @ai hello!).

File Exchange

The plugin supports bi-directional file exchange:

Receiving files from users:

  • Images are injected into the AI's visual context (multimodal models can see them)
  • Documents/files are downloaded locally and their paths are provided to the AI

Sending files to users:

  • The AI uses MEDIA:/path/to/file in its reply
  • Images (png/jpg/gif/webp) are sent as WeChat image messages
  • Other files (PDF, Excel, zip, etc.) are uploaded to WeChat CDN and sent as file attachments

Architecture

User (WeChat) <-> WeChatPadPro (iPad Protocol) <-> This Plugin <-> OpenClaw Agent
  • Inbound: HTTP polling via POST /message/HttpSyncMsg
  • Outbound text: POST /message/SendTextMessage
  • Outbound images: POST /message/SendImageNewMessage
  • Outbound files: POST /message/UploadFileToCDN + POST /message/SendAppMessage

License

MIT