WeChat iLink + DeepSeek CLI: connects to the DeepSeek API through the Vercel AI SDK. Scan QR to bind WeChat, then auto-reply with your chosen model and keep multi-turn context per WeChat user.
No OpenClaw deployment: this runs as a normal Node CLI on your machine (or any server with Node). You do not need to set up or host WeChat OpenClaw — configure DEEPSEEK_API_KEY via .env or prompts.
License: MIT
Requires Node.js ≥ 22.
Option A: npx (no global install) — type the package name each time; good for occasional use.
# Run the latest release without cloning (downloads on first run; -y skips install prompt)
npx -y weixin-agent-bot@latestOption B: global install — install once, then run weixin-agent-bot from any directory.
npm install -g weixin-agent-bot@latest
weixin-agent-botUpgrade the global install:
npm install -g weixin-agent-bot@latestThen follow the prompts. Optional: create a .env in the current directory (see .env.example in the repo) so the CLI can skip questions — copy from .env.example.
Examples below use npx. If you used Option B, replace npx -y weixin-agent-bot@latest … with weixin-agent-bot … (same flags).
--help — print all options and environment variables:
npx -y weixin-agent-bot@latest --help--version — print the CLI version:
npx -y weixin-agent-bot@latest --version--force-login — ignore cached session and show the WeChat QR login again:
npx -y weixin-agent-bot@latest --force-login--reauth — enter DeepSeek API key / model settings again:
npx -y weixin-agent-bot@latest --reauthYou can combine flags, e.g. fresh WeChat login and DeepSeek re-auth:
npx -y weixin-agent-bot@latest --force-login --reauthSend /new in WeChat to clear your current per-user context and start a new chat.
git clone https://github.com/luckfunc/weixin-agent-bot.git
cd weixin-agent-bot
npm install
npm run dev
# or: npm run build && node dist/cli.jsUses @pinixai/weixin-bot (sources: epiral/weixin-bot). postinstall runs a local build of that package because the npm tarball ships TypeScript only.
weixin-bot by @epiral — thank you for the Node.js SDK and protocol work.