corespeed-io/wechatbot

微信 iLink Bot SDK for OpenClaw/AI Agent

What it solves

WeChatBot 提供一套可投入生產的 SDK,讓 AI 代理與機器人能連接 WeChat iLink 協議。它簡化了將 LLM 驅動的助理整合到 WeChat 的流程,處理驗證、會話管理與訊息輪詢等複雜工作,開發者無需從頭實作協議。

How it works

此專案提供多語言支援(Node.js、Python、Go 與 Rust),讓開發者能使用自己慣用的技術棧來打造機器人。它作為客戶端,管理與協議 API 的連線,處理 QR Code 登入、憑證持久化(使用者在重啟後不必再次掃描),以及長輪詢接收訊息。另附帶會話持久化的 context token 系統與 AES-128-ECB 加密,以確保通訊安全。

Who it’s for

適合開發需要在 WeChat 生態系統內運作的 AI 代理或自動化助理的開發者,特別是針對需要多租戶支援(在同一個程序中同時運行多個帳號)的生產環境。

Highlights

  • Multi-language SDKs: Native support for Node.js, Python, Go, and Rust.
  • Multi-tenant Architecture: Isolated bot instances allowing a single backend process to manage multiple WeChat accounts.
  • Session Persistence: Automatic credential storage and session recovery to avoid frequent re‑logins.
  • Rich Media Support: Ability to send and receive images, files, audio, and video.
  • Developer Tooling: Includes a middleware pipeline (Node.js), a message builder API, and a pre‑compiled Echo Bot for quick testing.