-
Notifications
You must be signed in to change notification settings - Fork 2
FAQ
wx-ai-bot is a one-command tool that turns your WeChat into an AI chatbot. Run npx wx-ai-bot, scan a QR code, and your bot is live.
This uses WeChat's official iLink Bot API β a legitimate bot platform by Tencent. It's not a hook or hack. Zero ban risk.
No. Everything runs on your local machine. No server, no cloud, no third-party services.
Only messages that users send directly to the bot. It cannot monitor group chats or other conversations.
Try making your terminal window wider, or use the URL fallback printed below the QR code.
WeChat tokens expire periodically. wx-ai-bot auto-reconnects up to 5 times. If it keeps failing, try npx wx-ai-bot --login.
Delete ~/.weixin-bot/config.json and run npx wx-ai-bot again, or pass --provider flag directly.
Yes, use --provider custom --base-url https://your-proxy.com/v1 --api-key xxx.
- Free: Ollama (local) or Gemini (free tier)
- Best quality: OpenAI GPT-4o or Claude
- Coding tasks: Codex or Claude Code
- Privacy: Ollama (everything stays local)
Install the CLI first:
npm i -g @openai/codex # For Codex
npm i -g @anthropic-ai/claude-code # For Claude CodeYes! Use --provider custom with any OpenAI-compatible API endpoint.
- Check if the AI provider is working (try a different provider with
--echofirst) - Check your API key is valid
- Check the terminal for error messages
Built-in protection: 3 second cooldown + 10 messages per minute per user. Wait a moment and try again.
All activity is printed to the terminal in real-time. Look for π© (received) and β
(replied) markers.