AI product Open source · MIT

WeChat Bot

WeChat Bot is an open-source IM agent and command-line tool based on Wechaty. It connects WeChat QR-code logins, Lark events, Telegram's Bot API, and WhatsApp Cloud API to AI services including ChatGPT, DeepSeek, Ollama, Claude, Pi, and other configured providers for message replies and analysis.

View repository

Overview

The project routes received messages through a pipeline that captures WeChat messages locally in JSONL, sends them to a selected model or agent, and posts the response back to the IM channel. Its `wb wx` commands use OpenCLI wx-cli to access local WeChat chats, contacts, group members, favorites, and cached Moments; `wb stats` and `wb analyze` provide local statistics or AI-assisted group and friend analysis. Replies can be restricted with contact and group allowlists, prefixes, and group-mention rules, and non-text messages are not automatically sent to the reply pipeline.

The repository is a Node.js project requiring Node.js 18 or later and can be installed with npm or run in Docker. It is licensed under the MIT License. The README warns that WeChat Web protocols can trigger account warnings or bans and recommends narrow allowlists and usage scopes.