OpenClaw 模块 2:渠道接入与 Skills

目标:为某个 Agent 接入至少一个真实渠道(如 Telegram 或 Slack),验证消息路由,并知道 Skills/工具在哪。

建议使用测试 Bot Token / 测试工作区,只绑定你自己可控的渠道账号。

实操步骤(可直接执行)

每一步都先执行命令,再记录结果和问题。

步骤 1:List and add channels

See which channel types OpenClaw can manage:
openclaw channels list

Add a Telegram bot account (example):
openclaw channels add --channel telegram --token <bot-token>

For other channels, run:
openclaw channels add --help
and follow the per-channel flags described there (tokens, private keys, app tokens, etc.).

可复制命令
openclaw channels list
openclaw channels add --channel telegram --token <bot-token>
openclaw channels add --help

步骤 2:Check channel health and capabilities

Check channel runtime status:
openclaw channels status

Probe capabilities (for example Discord or Slack):
openclaw channels capabilities
openclaw channels capabilities --channel discord --target channel:123

If something looks misconfigured, rerun:
openclaw doctor
and follow its suggestions for channel fixes.

可复制命令
openclaw channels status
openclaw channels capabilities
openclaw channels capabilities --channel discord --target channel:123
openclaw doctor

步骤 3:Bind channel traffic to your agent

List existing agent bindings:
openclaw agents bindings

Bind a Telegram account to your work agent (example):
openclaw agents bind --agent work --bind telegram:ops

If you omit the account id (for example just telegram), OpenClaw uses the default account for that channel; later runs with explicit account ids can upgrade the binding in place.

可复制命令
openclaw agents bindings
openclaw agents bind --agent work --bind telegram:ops

步骤 4:Inspect Skills / tools available to the agent

List Skills and tools available (varies by install):
openclaw skills # if your build exposes a skills subcommand`

Even when there is no dedicated skills command, you can still:

  • Read TOOLS.md in the agent workspace to see tool definitions.
  • Use openclaw docs (when available) to open local docs for plugins/hooks.

本步骤的目标是:搞清楚当一条消息进来时,Agent 实际能调用哪些工具。

可复制命令
openclaw skills
Even when there is no dedicated
command, you can still: - Read
in the agent workspace to see tool definitions. - Use

继续学习下一模块

建议把本页命令沉淀成团队 Runbook。

OpenClaw 模块 2: Channels & Skills | BestClaw