PicoClaw supports QQ through the official QQ Open Platform bot API, using WebSocket mode for real-time communication.
Setup
1. Create a Bot Application
- Go to QQ Open Platform and register/log in
- Click Create Application → select Bot
- Fill in the application info and submit for review
2. Get Credentials
- After the application is approved, go to the application dashboard
- Copy the AppID and AppSecret from the credentials page
3. Configure Sandbox Mode
info
Newly created bots default to sandbox mode. You must add test users and groups to the sandbox before they can interact with the bot.
- In the application dashboard, go to Sandbox Configuration
- Add your test QQ users to the sandbox
- Add test groups to the sandbox
- The bot will only respond to users and groups in the sandbox until it passes review
4. Configure PicoClaw
{
"channels": {
"qq": {
"enabled": true,
"app_id": "YOUR_APP_ID",
"app_secret": "YOUR_APP_SECRET",
"allow_from": [],
"group_trigger": {
"mention_only": true
},
"reasoning_channel_id": ""
}
}
}
5. Run
picoclaw gateway
Field Reference
| Field | Type | Required | Description |
|---|---|---|---|
app_id | string | Yes | QQ bot AppID |
app_secret | string | Yes | QQ bot AppSecret |
allow_from | array | No | QQ user ID whitelist (empty = allow all) |
group_trigger | object | No | Group chat trigger settings (see Common Channel Fields) |
reasoning_channel_id | string | No | Route reasoning output to a separate chat |
How It Works
Message Types
PicoClaw handles two types of QQ bot messages:
| Type | Scenario | Trigger |
|---|---|---|
| C2C | Private chat (1:1 DM) | Any message from the user |
| GroupAT | Group chat | User must @mention the bot |
Key Behaviors
- Group chats require @mention: In group chats, the bot only responds when @mentioned (GroupAT intent). This is enforced by the QQ platform.
- Message deduplication: PicoClaw tracks processed message IDs to prevent duplicate processing
- Token auto-refresh: The bot SDK automatically manages access token renewal
- WebSocket mode: Uses the QQ Bot SDK's WebSocket connection for real-time message delivery
Sandbox vs Production
| Sandbox | Production | |
|---|---|---|
| Access | Only sandbox-registered users/groups | All users |
| Activation | Default for new bots | After review approval |
| Purpose | Development and testing | Live deployment |