OpenClaw Custom Channels
Finish the base OpenClaw install and model setup in openclaw.md before connecting a custom channel.
Connect to Telegram
talk to BotFather
/start/newbotmark down your bot token
enable Telegram in OpenClaw
shellopenclaw config set channels.telegram.enabled true openclaw config set channels.telegram.botToken "<bot token>" openclaw gateway restartsend any private message (such as 'hi') to your bot
find the pending pairing code in
openclaw logs --followor withopenclaw pairing list telegramapprove the pairing code
shellopenclaw pairing list telegram openclaw pairing approve telegram <pairing-code>enable your bot reply to your telegram
send
/whoamito your bot, it reply something liketxtIdentity Channel: telegram User id: 1xxxxx Username: @your-user-name AllowFrom: 1xxxxxmark down your user id
send test chat
reply exactly: PONGNOTICE: THIS IS VERY DANGEROUS!
if you want to restart your openclaw gateway via send /restart to your bot, add following into $HOME/.openclaw/openclaw.json
{
"commands": {
"ownerAllowFrom": ["telegram:<your-user-id>"]
}
}This also allow openclaw access openclaw host files and directories via telegram chat.
ref: docs.openclaw.ai/channels/telegram
Connect to Feishu/Lark
注意: 飞书(Feishu) 和 Lark 账号不互通,飞书 86 手机号注册的账号,无法在 macOS Lark 客户端登陆,需要使用 飞书 版客户端才能登陆。
创建应用 https://open.feishu.cn/app
基础信息 - 凭证与基础信息
- app id
- app secret
删除应用 https://<企业 ID>.feishu.cn/admin/appCenter/manage 停用应用后,再在 开放平台 - 基础信息页 删除。
# Install feishu plugin
openclaw plugins install @openclaw/feishu
# setup app id & secret
openclaw config set channels.feishu.enabled true
openclaw config set channels.feishu.domain feishu
openclaw config set channels.feishu.defaultAccount default
openclaw config set channels.feishu.accounts.default.appId <appId>
openclaw config set channels.feishu.accounts.default.appSecret <appSecret>
openclaw gateway restartDefault policy is pairing. Send a direct message to the Feishu bot, find the pairing code in the bot reply, openclaw logs --follow, or openclaw pairing list feishu, then approve it:
openclaw pairing list feishu
openclaw pairing approve feishu <pairing-code>If you want to allow everyone to use this bot instead, use open policy:
openclaw config set channels.feishu.dmPolicy "open"
openclaw config set channels.feishu.allowFrom '["*"]'
openclaw config set channels.feishu.groupPolicy "open"
openclaw config set channels.feishu.groupAllowFrom '["*"]'
openclaw gateway restart在飞书里和机器人自由对话 内置一些支持命令
/help
/status
/restartlist all providers & set it use specify model
/models
/models openai
/model openai/gpt-5.4-nano注: 执行某些修改配置类指令,比如该用指定模型,无回复, oc 日志显示 channels/feishu {"subsystem":"channels/feishu"} feishu[main]: blocked unauthorized sender ou_xxx (dmPolicy=open) ,说明 oc 尝试通过机器人回复信息,但被拦截,需修改 oc 配置添加 bot/飞书联系人 id 入白名单,或允许所有人可互相收发信息。
refs:
- open.feishu.cn/app
- docs.openclaw.ai/channels/feishu
- docs.openclaw.ai/channels/feishu#configuration-reference
Connect to WeChat
- 安装插件
npx -y @tencent-weixin/openclaw-weixin-cli install - 微信扫码后,即可完成配置
