
Weixin Agent Sdk
TypeScript framework that bridges any AI agent backend to WeChat through long-polling and a minimal Agent interface.
- skills.sh installs
- 1K
- GitHub stars
- 98
- last updated
- Jul 14, 2026
What it does
- Covers login via QR code, a message loop that resumes from saved state, and automatic reconnection after session expiry
- Includes an
Agentinterface withchat(request)for text, image, audio, video, and file input, plus media replies from local paths or HTTPS URLs - Enforces a Node.js 22+ requirement and needs the optional
silk-wasmpackage to convert WeChat voice messages from SILK to WAV - Designed for developers wiring OpenAI, Claude, or custom backends to WeChat, or running Claude Code and Codex through
weixin-acpwithout writing code
Install
$ npx -y skills add reason-machines/trending-skills --skill weixin-agent-sdk -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
weixin-agent-sdk
Skill by ara.so — Daily 2026 Skills collection.
weixin-agent-sdk is a TypeScript framework that bridges any AI backend to WeChat (微信) via the Clawbot channel. It uses long-polling to receive messages — no public server required — and exposes a minimal Agent interface so you can plug in OpenAI, Claude, or any custom logic in minutes.
Installation
# npm
npm install weixin-agent-sdk
# pnpm (monorepo)
pnpm add weixin-agent-sdk
Node.js >= 22 required.
Quick Start
1. Login (scan QR code once)
import { login } from "weixin-agent-sdk";
await login();
// Credentials are persisted to ~/.openclaw/ — run once, then use start()
2. Implement the Agent interface
import { login, start, type Agent } from "weixin-agent-sdk";
const echo: Agent = {
async chat(req) {
return { text: `You said: ${req.text}` };
},
};
await login();
await start(echo);
Core API
Agent Interface
interface Agent {
chat(request: ChatRequest): Promise<ChatResponse>;
}
Details
- Repository
- github.com/reason-machines/trending-skills
- Categories
- Email & Messaging, AI Agents & LLM Apps
- First seen
- May 16, 2026
More from reason-machines/trending-skills
All 163- Dingtalk Workspace Cli941
- Polymarket Arbitrage Trading Bot927
- Awesome Phd Cv916
- Web Access Claude Skill916
- Weclaw Wechat Ai Bridge911
- Awesome Free Llm Apis904
- Cc Connect Ai Bridge884
- Filmkit Fujifilm Camera879
- Opencli Rs Web Scraper874
- Vercel Labs Emulate873
- Creationix Rx Data Store862
- Agent Flow Visualization840
- Microsoft Rust Training837
- Tg Ws Proxy Telegram Socks5837
- Wewrite Wechat Ai Publishing836
- Jkvideo Bilibili React Native835
- Ai Scanner Garak834
- Bazi Skill Chinese Astrology833
- Career Ops Job Search830
- Holyclaude Ai Workstation820
- Mcp Brasil Public Apis819
- Type4me Macos Voice Input816
- Obliteratus Abliteration815
- Markit Markdown Converter811
Similar to Weixin Agent Sdk
More Email & Messaging
weclaw-wechat-ai-bridgeSkillreason-machines/trending-skills911 installsBridge that connects WeChat to Claude, Codex, Gemini, Kimi, and HTTP-based agents through a Go daemon.
copaw-ai-assistantSkillreason-machines/trending-skills1.3K installsPersonal AI assistant framework that routes chat channels to one agent with custom skills and cron jobs.
WeChatMCP serverbiboyqg302 starsAutomates WeChat on macOS: read chats, send replies, post Moments, and add contacts.
WhatsAppMCP serverlharries6.9K starsRead and send WhatsApp messages, chats, and media from a personal account through Claude.
wechat-bindingSkillstarchild-ai-agent/official-skills2.2K installsGuided WeChat binding that generates a QR code, confirms the scan, and connects or reconnects the account.