Add WeChat Channel (add-wechat)
Wires a personal WeChat account into NanoClaw using Tencent's official iLink Bot API with QR-code login.
AutomationIntermediate★ 30,471⑂ 12,865AI score 7/10Last updated: Aug 9, 2026
What it does
Automates the full setup of a personal WeChat channel for a NanoClaw bot:
- Pulls the WeChat adapter and its registration test from the
channelsbranch into your checkout - Appends the self-registration import to
src/channels/index.tsand installs pinnedwechat-ilink-client@0.1.0 - Runs build + registration test so you know the
wechatchannel really landed in the registry - Handles auth with no API keys — a QR code scan from your phone, credentials stored in
data/wechat/auth.json - Uses the bundled
wire-dm.tsscript to connect an incoming DM to a chosen agent group
Because it long-polls the first-party iLink API, there is no public webhook URL, no ToS/ban risk, and no paid PadLocal token like wechaty-based setups.
Who it's for
- NanoClaw operators building a WeChat AI assistant or auto-reply bot
- Teams supporting Chinese-speaking customers over WeChat
- Home-server or intranet deployments that cannot expose a webhook domain
- Intermediate users comfortable with git, pnpm, and restarting a systemd/launchd service
Examples
- Personal WeChat assistant — scan the QR to log in, wire your own DM to an agent group, and ask it for reminders or lookups from chat.
- Gated customer intake — leave
unknown_sender_policyasrequest_approvalso a stranger's first DM raises an approval card; approved users get replayed into the agent automatically. - Session-expiry recovery — when logs show
WeChat: session expired, deletedata/wechat/auth.json, restart the service, and re-scan the QR exactly as documented.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .claude/skills/add-wechat folder from the GitHub repo nanocoai/nanoclaw into my ~/.claude/skills/add-wechat/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/nanocoai/nanoclaw.git && mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-wechat ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the project:
git clone https://github.com/nanocoai/nanoclaw.git - Copy the skill where Claude Code can find it:
mkdir -p ~/.claude/skills && cp -r nanoclaw/.claude/skills/add-wechat ~/.claude/skills/ - Check prerequisites: Node.js >= 20, pnpm, a personal WeChat account with the mobile app, and a phone to scan a QR code.
- Start Claude Code from the NanoClaw project root and ask it to "add the WeChat channel (add-wechat)".
- Follow the steps it runs:
git fetch origin channels→ copy the adapter files →pnpm install wechat-ilink-client@0.1.0→pnpm run buildand the registration test until both are clean. - Add
WECHAT_ENABLED=trueto.env, then restart the NanoClaw service (systemctl on Linux, launchctl on macOS). - Open the QR URL printed in the logs or stored in
data/wechat/qr.txt, scan it with WeChat, and approve. Never commitdata/wechat/auth.json. - Have another WeChat account message the bot, run
pnpm exec tsx .claude/skills/add-wechat/scripts/wire-dm.tsto wire that DM to an agent group, then message again to confirm the agent replies.
View source on GitHub ↗License: MIT