> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ChatGPT on WeChat Setup Guide

> Configure Crazyrouter API in the ChatGPT on WeChat project with production-verified model recommendations

> Дата обновления: 2026-06-06

## 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://api.crazyrouter.com/v1`
* first validation model: `gpt-5.5`
* keep the initial allowlist small so troubleshooting stays simple

## Configuration

### Edit Configuration File

Edit `config.json`:

```json theme={null}
{
  "open_ai_api_key": "sk-xxx",
  "open_ai_api_base": "https://api.crazyrouter.com/v1",
  "model": "gpt-5.5",
  "proxy": "",
  "single_chat_prefix": [""],
  "single_chat_reply_prefix": "",
  "group_chat_prefix": ["@bot"],
  "group_name_white_list": ["AI Chat Group"]
}
```

### Environment Variables

```bash theme={null}
export OPEN_AI_API_KEY=sk-xxx
export OPEN_AI_API_BASE=https://api.crazyrouter.com/v1
export MODEL=gpt-5.5
```

### Docker Deployment

```yaml theme={null}
services:
  chatgpt-on-wechat:
    image: zhayujie/chatgpt-on-wechat
    environment:
      - OPEN_AI_API_KEY=sk-xxx
      - OPEN_AI_API_BASE=https://api.crazyrouter.com/v1
      - MODEL=gpt-5.5
    volumes:
      - ./config.json:/app/config.json
```

## Recommended Models

| Scenario                    | Model             | Description                                                                                                    |
| --------------------------- | ----------------- | -------------------------------------------------------------------------------------------------------------- |
| First-pass route validation | `gpt-5.5`         | Verified successfully in Crazyrouter production on March 23, 2026, and best for the OpenAI-compatible baseline |
| Higher-quality long replies | `claude-opus-4-8` | Better for complex explanations, summaries, and longer text                                                    |
| Gemini fallback path        | `gemini-3.1-pro`  | Useful as a second vendor-compatible validation path                                                           |

## Suggested Validation Order

1. Create one dedicated token
2. Start with one model: `gpt-5.5`
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

<Warning>
  WeChat bot projects must comply with WeChat usage policies. Avoid sending messages too frequently to prevent account restrictions.
</Warning>
