New advertisers: 50% off your first month with code FIRSTMONTHSee slots

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
View on GitHub

What it does

  • Covers login via QR code, a message loop that resumes from saved state, and automatic reconnection after session expiry
  • Includes an Agent interface with chat(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-wasm package 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-acp without writing code

Install

$ npx -y skills add reason-machines/trending-skills --skill weixin-agent-sdk -y

Installs 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

Similar to Weixin Agent Sdk

More Email & Messaging