đŦ Chat Apps Configuration
Back to Guides
đŦ Chat Appsâ
Talk to your picoclaw through Telegram, Discord, WhatsApp, Matrix, QQ, DingTalk, LINE, WeCom, Feishu, Slack, IRC, OneBot, MQTT, MaixCam, or Pico (native protocol)
Note: Channels that rely on HTTP callbacks share a single Gateway HTTP server (
gateway.host:gateway.port, default127.0.0.1:18790). Socket/stream-based channels such as Feishu, DingTalk, and WeCom do not rely on the shared webhook server for inbound delivery.
| Channel | Difficulty | Description | Documentation |
|---|---|---|---|
| Telegram | â Easy | Recommended, voice-to-text, long polling (no public IP needed) | Docs |
| Discord | â Easy | Socket Mode, group/DM support, rich bot ecosystem | Docs |
| â Easy | Native (QR scan) or Bridge URL | Docs | |
| Weixin | â Easy | Native QR scan (Tencent iLink API) | Docs |
| Slack | â Easy | Socket Mode (no public IP needed), enterprise | Docs |
| Matrix | ââ Medium | Federated protocol, self-hosting supported | Docs |
| ââ Medium | Official bot API, Chinese community | Docs | |
| DingTalk | ââ Medium | Stream mode (no public IP needed), enterprise | Docs |
| LINE | âââ Advanced | HTTPS Webhook required | Docs |
| WeCom (äŧä¸åžŽäŋĄ) | âââ Advanced | Official AI Bot over WebSocket, streaming + media | Docs |
| Feishu (éŖäšĻ) | âââ Advanced | Enterprise collaboration, feature-rich | Docs |
| IRC | ââ Medium | Server + TLS configuration | Docs |
| OneBot | ââ Medium | NapCat/Go-CQHTTP compatible, community ecosystem | Docs |
| MQTT | â Easy | Any MQTT client via broker pub/sub | Docs |
| MaixCam | â Easy | Hardware integration channel for Sipeed AI cameras | Docs |
| Pico | â Easy | Native PicoClaw protocol channel | Docs |
Outbound-only channelsâ
An outbound-only channel is an enabled channel that PicoClaw can use as a message target but that never starts an agent turn for incoming messages. Use it when one chat app is your control surface (for example Telegram) and another is only a destination (for example a Discord announcements channel).
Supported channelsâ
The pattern applies to channels that:
- enforce
allow_fromon inbound messages, and - have an outbound sender, so the
messagetool can deliver to them.
Check the channel page under docs/channels/<name>/README.md: if it documents allow_from, inbound traffic can be blocked. Bidirectional chat channels that can deliver replies generally also expose an outbound sender, so the message tool can deliver proactively, subject to platform limits. Some channels are outbound-only by design, such as the optional slack_webhook and teams_webhook channels; they have no inbound path and do not need this workaround. See Custom Builds for those build tags.
Make a bidirectional channel outbound-onlyâ
Keep the channel enabled so its worker and sender stay available, then set allow_from to an ID that cannot match a real sender. Do not use an empty list: empty means "allow everyone".
{
"channel_list": {
"telegram": {
"enabled": true,
"type": "telegram",
"allow_from": ["YOUR_TELEGRAM_USER_ID"],
"settings": {
"token": "YOUR_TELEGRAM_BOT_TOKEN"
}
},
"discord": {
"enabled": true,
"type": "discord",
"allow_from": ["0"],
"settings": {
"token": "YOUR_DISCORD_BOT_TOKEN"
}
}
}
}
In this example:
- Telegram is the control channel. Only your Telegram user ID can trigger the agent.
- Discord stays connected and can send messages, but every inbound Discord message is dropped by the allowlist before it reaches the agent.
"0"is not a valid Discord user ID, so no real user matches it.
If you want only yourself to be able to trigger the bot on the destination channel, use your own platform user ID instead of "0".
Send to the outbound-only channelâ
From the control channel, ask the agent to use the message tool with the destination channel and chat ID:
{
"content": "Deploy finished.",
"channel": "discord",
"chat_id": "123456789012345678"
}
channel is the key under channel_list, not necessarily the channel type (custom channel names can differ). chat_id is the platform-specific destination: a Discord channel ID, a Slack channel ID, a Telegram chat ID, or a webhook target name for native output-only webhook channels. The gateway must be running, and the message tool must be enabled (tools.message.enabled, default true). See Messaging tools for the full message tool reference.
Caveatsâ
allow_from: []means "allow all", not "deny all". Use a non-matching sentinel such as"0"on numeric-ID platforms.allow_fromfilters inbound messages only. It does not restrict outbound sends, but the bot still needs the permissions required to post in the destination.- Inbound messages are dropped, not queued. The agent cannot use them as context.
- Some channels may still answer protocol-level interactions (for example Discord slash commands) with a denial message. For absolute silence, use a native output-only channel or do not grant the interaction scope.
group_trigger.mention_onlyis not a substitute: it filters group messages and still responds when the bot is mentioned or receives a DM.enabled: falsedisables both directions. The channel must stay enabled for outbound delivery.
Telegram (Recommended)
1. Create a bot
- Open Telegram, search
@BotFather - Send
/newbot, follow prompts - Copy the token
2. Configure
{
"channel_list": {
"telegram": {
"enabled": true,
"type": "telegram",
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"],
"use_markdown_v2": false
}
}
}
Get your user ID from
@userinfoboton Telegram.
3. Run
picoclaw gateway
4. Telegram command menu (auto-registered at startup)
PicoClaw now keeps command definitions in one shared registry. On startup, Telegram will automatically register supported bot commands (for example /start, /help, /show, /list, /use) so command menu and runtime behavior stay in sync.
Telegram command menu registration remains channel-local discovery UX; generic command execution is handled centrally in the agent loop via the commands executor.
If command registration fails (network/API transient errors), the channel still starts and PicoClaw retries registration in the background.
You can also inspect skills and MCP servers directly from Telegram:
/list skills/list mcp/show mcp <server>/use <skill> <message>/use <skill>and then send the actual request in the next message/use clear
When you send a command that needs a sub-command (for example /list), the usage reply includes inline-keyboard buttons for the sub-commands that can run without arguments. Tapping one runs the equivalent slash command, so you do not have to type it again.
Sending /use without arguments replies with a paginated skill picker. Tapping a skill runs /use <skill> and arms that skill for your next message.
Sending /switch model (or /list models) replies with a paginated model picker. Tapping a model runs /switch model <index> and switches to it immediately.
4. Advanced Formatting You can set use_markdown_v2: true to enable enhanced formatting options. This allows the bot to utilize the full range of Telegram MarkdownV2 features, including nested styles, spoilers, and custom fixed-width blocks.
Discord
1. Create a bot
- Go to https://discord.com/developers/applications
- Create an application â Bot â Add Bot
- Copy the bot token
2. Enable intents
- In the Bot settings, enable MESSAGE CONTENT INTENT
- (Optional) Enable SERVER MEMBERS INTENT if you plan to use allow lists based on member data
3. Get your User ID
- Discord Settings â Advanced â enable Developer Mode
- Right-click your avatar â Copy User ID
4. Configure
{
"channel_list": {
"discord": {
"enabled": true,
"type": "discord",
"token": "YOUR_BOT_TOKEN",
"allow_from": ["YOUR_USER_ID"]
}
}
}
5. Invite the bot
- OAuth2 â URL Generator
- Scopes:
bot - Bot Permissions:
Send Messages,Read Message History - Open the generated invite URL and add the bot to your server
Optional: Group trigger mode
By default the bot responds to all messages in a server channel. To restrict responses to @-mentions only, add:
{
"channel_list": {
"discord": {
"group_trigger": { "mention_only": true }
}
}
}
You can also trigger by keyword prefixes (e.g. !bot):
{
"channel_list": {
"discord": {
"group_trigger": { "prefixes": ["!bot"] }
}
}
}
6. Run
picoclaw gateway
WhatsApp (native via whatsmeow)
PicoClaw can connect to WhatsApp in two ways:
- Native (recommended): In-process using whatsmeow. No separate bridge. Set
"type": "whatsapp_native"and"settings": {"use_native": true}, and leavebridge_urlempty. On first run, scan the QR code with WhatsApp (Linked Devices). Session is stored under your workspace (e.g.workspace/whatsapp/). The native channel is optional to keep the default binary small; build with-tags whatsapp_native(e.g.make build-whatsapp-nativeorgo build -tags whatsapp_native ./cmd/...). - Bridge: Connect to an external WebSocket bridge. Keep
"type": "whatsapp", setsettings.bridge_url(e.g.ws://localhost:3001), and keepsettings.use_nativefalse.
The channel_list key remains whatsapp in both modes. The type field selects the implementation; setting use_native alone does not switch an existing type: "whatsapp" entry to native mode.
Configure (native)
{
"channel_list": {
"whatsapp": {
"enabled": true,
"type": "whatsapp_native",
"allow_from": [],
"settings": {
"use_native": true,
"session_store_path": ""
}
}
}
}
If session_store_path is empty, the session is stored in <workspace>/whatsapp/. Run picoclaw gateway; on first run, scan the QR code printed in the terminal with WhatsApp â Linked Devices.
Weixin (WeChat Personal)
PicoClaw supports connecting to your personal WeChat account using the official Tencent iLink API.
1. Login
Run the interactive QR login flow:
picoclaw auth weixin
Scan the printed QR code with your WeChat mobile app. On success, the token is saved to your config.
2. Configure
(Optional) Update allow_from with your WeChat User ID to restrict who can message the bot:
{
"channel_list": {
"weixin": {
"enabled": true,
"type": "weixin",
"token": "YOUR_TOKEN",
"allow_from": ["YOUR_USER_ID"]
}
}
}
3. Run
picoclaw gateway
Quick setup (recommended)
QQ Open Platform provides a one-click setup page for OpenClaw-compatible bots:
- Open QQ Bot Quick Start and scan the QR code to log in
- A bot is created automatically â copy the App ID and App Secret
- Configure PicoClaw:
{
"channel_list": {
"qq": {
"enabled": true,
"type": "qq",
"app_id": "YOUR_APP_ID",
"app_secret": "YOUR_APP_SECRET",
"allow_from": []
}
}
}
- Run
picoclaw gatewayand open QQ to chat with your bot
The App Secret is only shown once. Save it immediately â viewing it again will force a reset.
Bots created via the quick setup page are initially for the creator only and do not support group chats. To enable group access, configure sandbox mode on the QQ Open Platform.
Manual setup
If you prefer to create the bot manually:
- Log in at QQ Open Platform to register as a developer
- Create a QQ bot â customize its avatar and name
- Copy the App ID and App Secret from the bot settings
- Configure as shown above and run
picoclaw gateway
DingTalk
1. Create a bot
- Go to Open Platform
- Create an internal app
- Copy Client ID and Client Secret
2. Configure
{
"channel_list": {
"dingtalk": {
"enabled": true,
"type": "dingtalk",
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"allow_from": []
}
}
}
Set
allow_fromto empty to allow all users, or specify DingTalk user IDs to restrict access.
3. Run
picoclaw gateway
Matrix
1. Prepare bot account
- Use your preferred homeserver (e.g.
https://matrix.orgor self-hosted) - Create a bot user and obtain its access token
2. Configure
{
"channel_list": {
"matrix": {
"enabled": true,
"type": "matrix",
"homeserver": "https://matrix.org",
"user_id": "@your-bot:matrix.org",
"access_token": "YOUR_MATRIX_ACCESS_TOKEN",
"allow_from": []
}
}
}
3. Run
picoclaw gateway
For full options (device_id, join_on_invite, group_trigger, placeholder, reasoning_channel_id), see Matrix Channel Configuration Guide.
LINE
1. Create a LINE Official Account
- Go to LINE Developers Console
- Create a provider â Create a Messaging API channel
- Copy Channel Secret and Channel Access Token
2. Configure
{
"channel_list": {
"line": {
"enabled": true,
"type": "line",
"channel_secret": "YOUR_CHANNEL_SECRET",
"channel_access_token": "YOUR_CHANNEL_ACCESS_TOKEN",
"webhook_path": "/webhook/line",
"allow_from": []
}
}
}
LINE webhook is served on the shared Gateway server (
gateway.host:gateway.port, default127.0.0.1:18790).
3. Set up Webhook URL
LINE requires HTTPS for webhooks. Use a reverse proxy or tunnel:
# Example with ngrok (gateway default port is 18790)
ngrok http 18790
Then set the Webhook URL in LINE Developers Console to https://your-domain/webhook/line and enable Use webhook.
4. Run
picoclaw gateway
In group chats, the bot responds only when @mentioned. Replies quote the original message.
WeCom (äŧä¸åžŽäŋĄ)
PicoClaw now exposes WeCom as a single AI Bot channel over WebSocket. No public webhook callback URL is required.
See WeCom Configuration Guide for the full configuration reference and migration notes.
Quick Setup - Recommended
1. Authenticate
picoclaw auth wecom
This command shows a QR code, waits for approval in WeCom, and writes bot_id + secret into channels.wecom.
2. Configure manually if needed
{
"channel_list": {
"wecom": {
"enabled": true,
"type": "wecom",
"bot_id": "YOUR_BOT_ID",
"secret": "YOUR_SECRET",
"websocket_url": "wss://openws.work.weixin.qq.com",
"send_thinking_message": true,
"allow_from": [],
"reasoning_channel_id": ""
}
}
}
3. Run
picoclaw gateway
Legacy
wecom_appandwecom_aibotentries are replaced by the unifiedchannels.wecomconfig in this branch.
Feishu (Lark)
PicoClaw connects to Feishu via WebSocket/SDK mode â no public webhook URL or callback server needed.
1. Create an app
- Go to Feishu Open Platform and create an application
- In the app settings, enable the Bot capability
- Create a version and publish the app (the app must be published to take effect)
- Copy the App ID (starts with
cli_) and App Secret
2. Configure
{
"channel_list": {
"feishu": {
"enabled": true,
"type": "feishu",
"app_id": "cli_xxx",
"app_secret": "YOUR_APP_SECRET",
"allow_from": []
}
}
}
Optional fields: encrypt_key and verification_token for event encryption (recommended for production).
3. Run and chat
picoclaw gateway
Open Feishu, search for your bot name, and start chatting. You can also add the bot to a group â use group_trigger.mention_only: true to only respond when @mentioned.
For full options, see Feishu Channel Configuration Guide.
Slack
1. Create a Slack app
- Go to Slack API and create a new app
- Under OAuth & Permissions, add bot scopes:
chat:write,app_mentions:read,im:history,im:read,im:write - Install the app to your workspace
- Copy the Bot Token (
xoxb-...) and App-Level Token (xapp-..., enable Socket Mode to get this)
2. Configure
{
"channel_list": {
"slack": {
"enabled": true,
"type": "slack",
"bot_token": "xoxb-YOUR-BOT-TOKEN",
"app_token": "xapp-YOUR-APP-TOKEN",
"allow_from": []
}
}
}
3. Run
picoclaw gateway
IRC
1. Configure
{
"channel_list": {
"irc": {
"enabled": true,
"type": "irc",
"settings": {
"server": "irc.libera.chat:6697",
"tls": true,
"nick": "picoclaw-bot",
"user": "",
"real_name": "",
"channels": ["#your-channel"],
"password": "",
"nickserv_password": "",
"sasl_user": "",
"sasl_password": "",
"request_caps": []
},
"allow_from": []
}
}
}
| Field | Required | Default | Description |
|---|---|---|---|
server | Yes | â | IRC server address in host:port format |
tls | No | false | Enable TLS. Recommended for port 6697 |
nick | Yes | â | Bot's IRC nickname |
user | No | same as nick | IRC username (the ident field). Defaults to nick when empty |
real_name | No | "" | Real name field shown in /whois. Defaults to nick when empty |
channels | Yes | â | List of IRC channels to join on connect (e.g. ["#general"]) |
password | No | â | Server password (for password-protected servers). Stored in .security.yml |
nickserv_password | No | â | NickServ identify password sent on connect. Stored in .security.yml |
sasl_user | No | â | SASL PLAIN username for SASL authentication |
sasl_password | No | â | SASL PLAIN password. Stored in .security.yml |
request_caps | No | [] | Additional IRCv3 capability names to request during capability negotiation |
allow_from | No | [] | Allowlist of IRC nicks; empty means all nicks are allowed |
2. Run
picoclaw gateway
The bot connects to the IRC server, negotiates capabilities, authenticates (if configured), and joins the listed channels.
OneBot (QQ via OneBot protocol)
OneBot is an open protocol for QQ bots. PicoClaw connects to any OneBot v11 compatible implementation (e.g., Lagrange, NapCat) via WebSocket.
1. Set up a OneBot implementation
Install and run a OneBot v11 compatible QQ bot framework. Enable its WebSocket server.
2. Configure
{
"channel_list": {
"onebot": {
"enabled": true,
"type": "onebot",
"ws_url": "ws://127.0.0.1:8080",
"access_token": "",
"allow_from": []
}
}
}
| Field | Description |
|---|---|
ws_url | WebSocket URL of the OneBot implementation |
access_token | Access token for authentication (if configured in OneBot) |
reconnect_interval | Reconnect interval in seconds (default: 5) |
3. Run
picoclaw gateway
MQTT
Any MQTT client can communicate with PicoClaw via a broker. Devices or services publish requests to the broker; PicoClaw subscribes, processes them, and publishes responses back.
1. Configure
{
"channel_list": {
"mqtt": {
"enabled": true,
"type": "mqtt",
"settings": {
"broker": "ssl://your-broker:8883",
"agent_id": "assistant",
"topic_prefix": "/picoclaw",
"keep_alive": 60,
"qos": 0
}
}
}
}
Username and password go in ~/.picoclaw/.security.yml:
channel_list:
mqtt:
settings:
username: your_username
password: your_password
Topic format
{prefix}/{agent_id}/{client_id}/request # Client â PicoClaw
{prefix}/{agent_id}/{client_id}/response # PicoClaw â Client
client_id is set by your client application to identify different devices or sessions.
2. Run
picoclaw gateway
3. Test
# Send a message
mosquitto_pub -t "/picoclaw/assistant/device1/request" \
-m '{"text": "Hello"}'
# Subscribe to responses
mosquitto_sub -t "/picoclaw/assistant/device1/response"
For full configuration options see MQTT Channel Docs.
Slack Webhook (outbound-only)
slack_webhook is an outbound-only channel. PicoClaw can deliver messages to Slack via Incoming Webhooks, but it never receives or processes inbound messages from Slack. Use it as a notification destination alongside a bidirectional control channel.
1. Create a Slack Incoming Webhook
- Go to Slack API apps, create or open your app.
- Navigate to Incoming Webhooks and enable it.
- Click Add New Webhook to Workspace, select the target channel, and copy the HTTPS URL.
2. Configure
{
"channel_list": {
"slack_webhook": {
"enabled": true,
"type": "slack_webhook",
"settings": {
"webhooks": {
"default": {
"webhook_url": "NOT_HERE",
"username": "PicoClaw",
"icon_emoji": ":robot_face:"
}
}
}
}
}
}
Store the actual webhook URL in ~/.picoclaw/.security.yml:
channel_list:
slack_webhook:
settings:
webhooks:
default:
webhook_url: "https://hooks.slack.com/services/..."
Configuration fields
| Field | Required | Description |
|---|---|---|
webhooks | Yes | Map of named webhook targets. A default target is required |
webhooks.<name>.webhook_url | Yes | HTTPS Incoming Webhook URL (must use https://) |
webhooks.<name>.username | No | Display name override for the bot in Slack |
webhooks.<name>.icon_emoji | No | Emoji override for the bot icon in Slack (e.g. :robot_face:) |
3. Send a message to Slack
Use the message tool from any control channel and pass the webhook target name as chat_id (defaults to default when omitted):
Send the deployment summary to slack_webhook
4. Run
picoclaw gateway
Teams Webhook (outbound-only)
teams_webhook is an outbound-only channel. PicoClaw can deliver messages to Microsoft Teams via Power Automate workflow webhooks, but it never receives or processes inbound messages from Teams.
1. Create a Teams Incoming Webhook
- In Microsoft Teams, open the channel or chat you want to post to.
- Go to Connectors (or use Power Automate to create a workflow with an HTTP trigger) and add an Incoming Webhook.
- Copy the generated HTTPS URL.
2. Configure
{
"channel_list": {
"teams_webhook": {
"enabled": true,
"type": "teams_webhook",
"settings": {
"webhooks": {
"default": {
"webhook_url": "NOT_HERE",
"title": "PicoClaw Notification"
}
}
}
}
}
}
Store the actual webhook URL in ~/.picoclaw/.security.yml:
channel_list:
teams_webhook:
settings:
webhooks:
default:
webhook_url: "https://prod-xx.westeurope.logic.azure.com/..."
Configuration fields
| Field | Required | Description |
|---|---|---|
webhooks | Yes | Map of named webhook targets. A default target is required |
webhooks.<name>.webhook_url | Yes | HTTPS Power Automate webhook URL (must use https://) |
webhooks.<name>.title | No | Card title shown in the Teams message. Defaults to PicoClaw Notification |
3. Send a message to Teams
Use the message tool from any control channel and pass the webhook target name as chat_id (defaults to default when omitted):
Send the alert to teams_webhook
4. Run
picoclaw gateway