Skip to main content
skill CX Codex

weixin-agent-sdk — Claude Code skill: bridge to WeChat

This skill wires any AI backend into WeChat through the weixin-agent-sdk TypeScript framework: QR login plus a message loop.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/trending-skills --skill weixin-agent-sdk -a claude-code
Open on GitHub

What weixin-agent-sdk does

The skill covers weixin-agent-sdk, a TypeScript framework that bridges an AI backend to WeChat over the Clawbot channel. Messages arrive by long-polling, so no public server is needed. The surface is a single Agent interface with a chat method — plug in OpenAI, Claude, or your own logic.

The flow: call login() once and scan the QR code, credentials land in ~/.openclaw/. Then start(agent) runs the message loop and reconnects when the session expires. Each ChatRequest carries a conversationId, the text, and any attachment as a local path — images, voice, video and files are already downloaded and decrypted. Replies go back as text or as media from a local path or an HTTPS URL.

Node.js 22 or newer is required. Voice notes from WeChat need silk-wasm to convert SILK to WAV; without it that conversion does not happen. If you already run an ACP-compatible agent, skip the code: the weixin-acp package launches it as a subprocess and talks JSON-RPC over stdio. Inside the chat, /echo <message> and /toggle-debug control the bot.

What it helps with

  • connect an AI agent to WeChat without a public server
  • accept an image or file from chat and hand it to the agent
  • keep per-conversation history keyed by conversationId
  • run Claude or Codex as a WeChat bot over ACP
  • send an image or PDF back to the user

Example prompts for the agent

  • Bridge my agent to WeChat with weixin-agent-sdk: set up login and start with an Agent implementation
  • Configure weixin-acp for Claude so it answers in WeChat
  • Add incoming image support to my WeChat agent and reply with a file

How to install weixin-agent-sdk

1Skills CLI (Vercel)

npx skills add reason-machines/trending-skills --skill weixin-agent-sdk -a claude-code

2Manually: put the files in place

~/.claude/skills/weixin-agent-sdk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/weixin-agent-sdk/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about weixin-agent-sdk

How do I install weixin-agent-sdk in Claude?

Run npx skills add reason-machines/trending-skills --skill weixin-agent-sdk -a claude-code. The skill lands at ~/.claude/skills/weixin-agent-sdk/SKILL.md.

What does weixin-agent-sdk do?

It connects an AI backend to WeChat through the Clawbot channel. You implement the Agent interface with a chat method; the framework handles incoming messages, attachments and reconnects.

What do I need to run it?

Node.js 22 or newer. Voice messages from WeChat convert from SILK to WAV only when silk-wasm is present.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set42

clui-cc-claude-overlay This skill puts a floating macOS overlay on top of Claude, with tabbed sessions, tool-call approval and voice input. CX Codex +1 1,300installs karpathy-jobs-bls-visualizer This skill scrapes Occupational Outlook Handbook data, scores occupations with an LLM and renders an interactive jobs treemap. CX Codex +1 1,300installs modly-image-to-3d This skill walks your agent through installing Modly, a desktop app that turns a photo into a 3D mesh on your own GPU — no cloud, no API keys. CX Codex +1 1,300installs git-city-3d-github-visualization A skill for building on Git City, a project that turns GitHub profiles into 3D pixel-art buildings with Next.js and Three.js. CX Codex +1 1,300installs ghostling-libghostty-terminal A skill that walks through building a minimal terminal emulator on the libghostty-vt C library, with Raylib handling windows and rendering. CX Codex +1 1,100installs web-access-claude-skill Lets the agent pick between search, page fetch and driving your real Chrome. Useful when a site sits behind a login or renders on JS. CX Codex +1 965installs agent-flow-visualization Installs the Agent Flow VS Code extension, which draws Claude agent orchestration as a live node graph: tool calls, branches, subagents, timings. CX Codex +1 887installs caveman-token-optimizer A skill that makes AI agents answer in caveman-speak, dropping pleasantries and filler. It cuts roughly 65% of output tokens while code and technical terms stay exact. CX Codex +1 842installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor