Overview
ChatGPT on WeChat is a widely used WeChat bot project that can route private and group chat traffic through Crazyrouter. The safest rollout is to keep its standard OpenAI-compatible configuration and validate one production-verified model before expanding the bot behavior.
Recommended First-Pass Setup
open_ai_api_base: https://crazyrouter.com/v1
- first validation model:
gpt-5.4
- keep the initial allowlist small so troubleshooting stays simple
Configuration
Edit Configuration File
Edit config.json:
{
"open_ai_api_key": "sk-xxx",
"open_ai_api_base": "https://crazyrouter.com/v1",
"model": "gpt-5.4",
"proxy": "",
"single_chat_prefix": [""],
"single_chat_reply_prefix": "",
"group_chat_prefix": ["@bot"],
"group_name_white_list": ["AI Chat Group"]
}
Environment Variables
export OPEN_AI_API_KEY=sk-xxx
export OPEN_AI_API_BASE=https://crazyrouter.com/v1
export MODEL=gpt-5.4
Docker Deployment
services:
chatgpt-on-wechat:
image: zhayujie/chatgpt-on-wechat
environment:
- OPEN_AI_API_KEY=sk-xxx
- OPEN_AI_API_BASE=https://crazyrouter.com/v1
- MODEL=gpt-5.4
volumes:
- ./config.json:/app/config.json
Recommended Models
| Scenario | Model | Description |
|---|
| First-pass route validation | gpt-5.4 | Verified successfully in Crazyrouter production on March 23, 2026, and best for the OpenAI-compatible baseline |
| Higher-quality long replies | claude-sonnet-4-6 | Better for complex explanations, summaries, and longer text |
| Gemini fallback path | gemini-3-pro-preview | Useful as a second vendor-compatible validation path |
Suggested Validation Order
- Create one dedicated token
- Start with one model:
gpt-5.4
- Send
Reply only OK in a private chat first
- Confirm the request appears in Crazyrouter logs
- Only then expand group triggers, prefixes, and additional models
WeChat bot projects must comply with WeChat usage policies. Avoid sending messages too frequently to prevent account restrictions.