Skip to main content
Tencent Yuanbao is Tencent’s AI assistant platform. The community-maintained 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 with openclaw --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)

Follow the prompts to enter your App ID and App Secret.

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:
Restrict DMs to specific users:
Disable the @mention requirement in groups:
Outbound delivery tuning:
Set 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:
  1. Confirm the bot is added to the group
  2. Confirm you @mention the bot (required by default)
  3. Check logs: openclaw logs --follow
Bot does not receive messages:
  1. Confirm the bot is created and approved in the Yuanbao app
  2. Confirm appKey and appSecret are correctly configured
  3. Confirm the gateway is running: openclaw gateway status
  4. Check logs: openclaw logs --follow
Bot sends empty or fallback replies:
  1. Check whether the AI model is returning valid content
  2. Default fallback reply: “暂时无法解答,你可以换个问题问问我哦”
  3. Customize with channels.yuanbao.fallbackReply
App Secret leaked:
  1. Reset the App Secret in the Yuanbao app
  2. Update the value in your config
  3. 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 (default 3000)
  • mediaMaxMb: media upload/download limit (default 20 MB)
  • 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.
Set disableBlockStreaming: true to send the complete reply in one message.

Group chat history context

Controls how many historical messages are included in the AI context for group chats.

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

Enables unsanitized log output for the listed bot IDs.

Multi-agent routing

Use bindings 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 configuration

Supported 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 via replyToMode); thread replies are not supported by the platform.