Skip to main content

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.
  • 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
ScenarioModelDescription
First-pass route validationgpt-5.4Verified successfully in Crazyrouter production on March 23, 2026, and best for the OpenAI-compatible baseline
Higher-quality long repliesclaude-sonnet-4-6Better for complex explanations, summaries, and longer text
Gemini fallback pathgemini-3-pro-previewUseful as a second vendor-compatible validation path

Suggested Validation Order

  1. Create one dedicated token
  2. Start with one model: gpt-5.4
  3. Send Reply only OK in a private chat first
  4. Confirm the request appears in Crazyrouter logs
  5. 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.