技能标识:channels-setup
Guide to set up and configure IM channels(Telegram, Discord, Slack, Feishu, Dingtalk) for OpenClaw.
使用 openclaw CLI 启用并配置您想要的频道。
配置完成后,您需要重启网关以应用更改:
bash
openclaw gateway restart
为了使用 openclaw CLI,您可能需要先执行 source /root/.nvm/nvm.sh 来加载 nvm 环境。
在重启网关之前,必须告知用户您将自行重启。
bash
openclaw config set channels.telegram.botToken YOURBOTTOKEN
openclaw config set channels.telegram.dmPolicy pairing
openclaw config set channels.telegram.groups.*.requireMention true
openclaw config set channels.telegram.enabled true
bash
openclaw config set channels.discord.token YOURBOTTOKEN
openclaw config set channels.discord.enabled true
bash
openclaw config set channels.slack.mode socket
openclaw config set channels.slack.appToken xapp-...
openclaw config set channels.slack.botToken xoxb-...
openclaw config set channels.slack.enabled true
bash
openclaw config set channels.feishu.appId YOURAPPID
openclaw config set channels.feishu.appSecret YOURAPPSECRET
openclaw config set channels.feishu.groupPolicy true
openclaw config set channels.feishu.enabled true
按如下方式编辑 ~/.openclaw/openclaw.json 中的 channels 和 gateway 字段:
json
{
channels: {
dingtalk-connector: {
enabled: true,
clientId: dingxxxxxxxxx, // 钉钉 AppKey
clientSecret: yoursecrethere, // 钉钉 AppSecret
gatewayToken: , // 可选:网关认证令牌,对应 openclaw.json 中 gateway.auth.token 的值
gatewayPassword: , // 可选:网关认证密码(令牌和密码二选一)
sessionTimeout: 1800000 // 可选:会话超时时间(毫秒),默认 30 分钟
}
},
gateway: {
http: {
endpoints: {
chatCompletions: {
enabled: true
}
}
}
}
}
您可以参考以下文档获取更详细的配置说明:
关于飞书频道的详细设置,请参考:
关于钉钉频道的详细设置,请参考:
关于 Telegram、Slack、Discord 或其他频道的设置,请参考 OpenClaw 频道设置指南。使用 ls /root/.local/share/pnpm/global/5/node_modules/openclaw/docs/channels 查看所有可用的频道设置指南。
以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:
帮我安装 SkillHub 和 channels-setup-1776300455 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 channels-setup-1776300455 技能
skillhub install channels-setup-1776300455
文件大小: 1.66 KB | 发布时间: 2026-4-16 16:14