Skip to content

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 /newbot

  • mark down your bot token

  • enable Telegram in OpenClaw

    shell
    openclaw config set channels.telegram.enabled true
    openclaw config set channels.telegram.botToken "<bot token>"
    openclaw gateway restart
  • send any private message (such as 'hi') to your bot

  • find the pending pairing code in openclaw logs --follow or with openclaw pairing list telegram

  • approve the pairing code

    shell
    openclaw pairing list telegram
    openclaw pairing approve telegram <pairing-code>
  • enable your bot reply to your telegram

    • send /whoami to your bot, it reply something like

      txt
      Identity
      Channel: telegram
      User id: 1xxxxx
      Username: @your-user-name
      AllowFrom: 1xxxxx
    • mark down your user id

send test chat

txt
reply exactly: PONG

NOTICE: 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

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 停用应用后,再在 开放平台 - 基础信息页 删除。

shell
# 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 restart

Default 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:

shell
openclaw pairing list feishu
openclaw pairing approve feishu <pairing-code>

If you want to allow everyone to use this bot instead, use open policy:

shell
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

在飞书里和机器人自由对话 内置一些支持命令

shell
/help

/status
/restart

list all providers & set it use specify model

shell
/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:

Connect to WeChat

  • 安装插件 npx -y @tencent-weixin/openclaw-weixin-cli install
  • 微信扫码后,即可完成配置

ref: Tencent/openclaw-weixin

Released under the CC-BY-NC-4.0