WeChatPlugin-MacOS
微信小助手
A macOS plugin injected into the WeChat desktop app that adds auto-reply, blocked recall messages, multi-account login, and remote Mac control via WeChat commands from your phone.
WeChatPlugin-MacOS is a plugin for the WeChat desktop app on macOS that adds features the official app does not include. WeChat is a widely used messaging platform in China, and this project injects additional functionality directly into the app by modifying it at runtime.
The plugin adds a range of conveniences. It can automatically reply to incoming messages using keyword rules you configure, and it can block other people's attempts to unsend messages sent to you, so recalled messages remain visible on your end. You can open multiple WeChat accounts at the same time, skip the secondary authentication step on second logins, and pin chat windows so they stay on top of other windows.
There is also a remote control feature that lets you send commands to your Mac through WeChat messages from your own account. Supported commands include locking the screen, clearing the trash, sleeping or restarting the machine, quitting specific apps like Chrome or QQ, and controlling NetEase Cloud Music playback. Only messages sent from your own account trigger these commands.
For users of Alfred, a macOS productivity launcher, the plugin includes a companion workflow that lets you quickly send messages or open chat windows directly from the Alfred search bar without touching the WeChat app itself.
Additional features include marking all conversations as read with one click, clearing empty conversations, monitoring when you are removed from a group chat, positioning a recalled message in the chat history, and an option to stop WeChat from checking for updates. The plugin supports both Chinese and English interfaces.
Installation requires running a shell script that injects the plugin into the WeChat app bundle. Uninstalling runs a separate removal script. The project notes that use carries some risk and is intended for personal quality-of-life improvements only.
Where it fits
- Run two WeChat accounts at once on your Mac to keep personal and work conversations separate.
- Block recalled messages so you can still read what someone sent even after they unsend it.
- Set up automatic keyword-triggered replies to incoming WeChat messages without touching the app.
- Control your Mac remotely, lock screen, sleep, restart, or quit apps, by sending commands from your phone via WeChat.