openclaw-plugin-yuanbao plugin connects Yuanbao bots to OpenClaw over WebSocket for direct messages and group chats.
Status: production-ready for bot DMs and group chats. WebSocket is the only supported connection mode. This plugin is maintained by the Tencent Yuanbao team as an external catalog entry, not by core OpenClaw; the config/behavior details below (beyond install and the generic CLI surface) come from the plugin’s own docs and are not verified against OpenClaw core source.
Quick start
Requires OpenClaw 2026.4.10 or above. Check withopenclaw --version; upgrade with openclaw update.
1
Add the Yuanbao channel with your credentials
--token uses colon-separated appKey:appSecret. Get these from the Yuanbao app by creating a bot in your application settings.2
Restart the gateway to apply the change
Interactive setup (alternative)
Access control
Direct messages
channels.yuanbao.dm.policy:
Approve a pairing request:
Group chats
channels.yuanbao.requireMention (default true): require an @mention before the bot responds in a group. Replying to the bot’s own message is treated as an implicit mention.
Configuration examples
Basic setup, open DM policy:outboundQueueStrategy: "immediate" to send each chunk without buffering.
Common commands
Yuanbao supports native slash-command menus; commands sync to the platform automatically when the gateway starts.
Troubleshooting
Bot does not respond in group chats:- Confirm the bot is added to the group
- Confirm you @mention the bot (required by default)
- Check logs:
openclaw logs --follow
- Confirm the bot is created and approved in the Yuanbao app
- Confirm
appKeyandappSecretare correctly configured - Confirm the gateway is running:
openclaw gateway status - Check logs:
openclaw logs --follow
- Check whether the AI model is returning valid content
- Default fallback reply: “暂时无法解答,你可以换个问题问问我哦”
- Customize with
channels.yuanbao.fallbackReply
- Reset the App Secret in the Yuanbao app
- Update the value in your config
- Restart the gateway:
openclaw gateway restart
Advanced configuration
Multiple accounts
defaultAccount controls which account is used when outbound APIs do not specify an accountId.
Message limits
maxChars: single message max character count (default3000)mediaMaxMb: media upload/download limit (default20MB)overflowPolicy: behavior when a message exceeds the limit,"split"(default) or"stop"
Streaming
Yuanbao supports block-level streaming output; the bot sends text in chunks as it generates.disableBlockStreaming: true to send the complete reply in one message.
Group chat history context
Reply-to mode
Markdown hint injection
By default, the bot injects a system-prompt instruction to prevent the model from wrapping the entire reply in a markdown code block.Debug mode
Multi-agent routing
Usebindings to route Yuanbao DMs or groups to different agents:
match.channel:"yuanbao"match.peer.kind:"direct"(DM) or"group"(group chat)match.peer.id: user ID or group code
Configuration reference
Full configuration: Gateway configurationSupported message types
Receive: text, images, files, audio/voice, video, stickers/custom emoji, custom elements (link cards). Send: text (markdown), images, files, audio, video, stickers. Threads and replies: quote replies (configurable viareplyToMode); thread replies are not supported by the platform.
Related
- Channels Overview - all supported channels
- Pairing - DM authentication and pairing flow
- Groups - group chat behavior and mention gating
- Channel Routing - session routing for messages
- Security - access model and hardening