configure-channel
What it does
It gives an AI agent step-by-step commands for connecting a chat channel to OpenClaw and confirming it works. It is for people who want OpenClaw to talk through a messaging app.
When to use it
- ✓When you want to connect OpenClaw to a chat app such as Telegram.
- ✓When you need to check the current status of your OpenClaw chat channels.
- ✓When you want to change who can message your OpenClaw bot without opening access by accident.
Skill link
https://github.com/openclaw/openclaw/blob/main/custodian-skills/configure-channel/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Help me connect my OpenClaw bot to Telegram and check that it replies to me.”
5 new skills a week. 1 minute to read.
How it works
The skill checks which channels are already set up, then adds the bot token as a secure reference rather than plain text. It finishes by confirming the channel works with a real message.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Configure a channel
Never print or persist secret values; channel tokens enter config only as SecretRefs, or through the in-session connect_channel flow where the operator types the secret into a masked prompt. Never hand-edit config files on disk. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.
Gather
openclaw channels list --all
openclaw channels status
openclaw config get channels --json # "Config path not found" is normal before first setup
Confirm the exact config path before writing — key names differ per channel (channels.telegram.botToken, channels.discord.token, ...):
openclaw config schema --json | jq '.properties.channels.properties.telegram'
Mutate
Confirm the intended account and access changes with the operator before writing. Preserve existing approved allowlist entries, dmPolicy, and groupPolicy unless their replacement or change is explicitly approved; never broaden access to make a check pass.
Preferred shell path — token staged as an env var on the gateway process or in a 0600 file, wired as a SecretRef (Telegram example):
openclaw config set channels.telegram.botToken --ref-provider default --ref-source env --ref-id TELEGRAM_BOT_TOKEN
With the bot connected and DM policy pairing, ask the operator to DM it. Read Your Telegram user id in the pairing reply, or run openclaw logs --follow and read senderUserId in that sender's telegram pairing request entry. Stop following once captured; keep unrelated logs private. If the current policy prevents this flow, use an already verified ID or report the discovery blocker; do not broaden access.
Use the numeric Telegram user ID, not a phone number, username, chat/group ID, or bot ID. In this single-user example, 123456789 is a placeholder: replace it with the verified, approved user ID and retain any other approved entries.
openclaw config set channels.telegram.allowFrom '["123456789"]' --strict-json
Multi-field changes in one validated write:
openclaw config patch --stdin <<'JSON'
{ channels: { telegram: { enabled: true, groupPolicy: "allowlist" } } }
JSON
In-session alternative: call the connect_channel tool action with the channel id — the operator enters the token in a masked prompt, never in chat. Avoid openclaw channels add --token <value>: it puts the secret in argv and process listings.
Repair
openclaw doctor --lint
openclaw channels status --probe
doctor --lint can exit 1 for findings: read the report and continue the remaining checks. Ordinary doctor and doctor --non-interactive can write config/state; do not use them for diagnosis before approval. Apply openclaw doctor --fix --non-interactive only after explicit approval, then re-check status.
Prove
Send one real, clearly labeled test message and confirm delivery from the command result (use --dry-run first to inspect the payload):
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore" --dry-run
openclaw message send --channel telegram --target <chatId> --message "OpenClaw channel test — please ignore"
If sending fails, report the exact account, permission, destination, or network blocker without exposing credentials.
Report
State the channel and account changed, the exact config paths written (never values), the test destination, and the observed delivery result. List any remaining operator action.
Further reference: https://docs.openclaw.ai/channels/telegram (and the matching page for other channels)
FAQ
Will my bot token be stored in plain text?
No. The token is saved as a reference to an environment variable or secure file, so the secret itself is not written into the config.
Can it change who is allowed to message the bot?
It keeps existing approved access settings unless you agree to a change, and it does not widen access just to pass a check.
Which chat apps does it cover?
It covers several chat apps, including Telegram and Discord, and each one has its own settings.
Details
Original description by the author
Configure and prove a chat channel with non-interactive one-liners; secrets only as SecretRefs.
repo: openclaw/openclaw
Popularity
- GitHub stars
- 394k
- Ranking position
- #11
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
discord-user-post
394kLets your agent post a message you have approved to Discord as you, through the Discord desktop app, after confirming the exact channel.
discrawl
394kLets your agent search and summarize a saved local archive of Discord messages, check how fresh it is, and read direct messages.
gitcrawl
394kLets your agent search a saved archive of GitHub issues and pull requests, group duplicates, and check their current status on GitHub.
graincrawl
394kLets your agent search your saved Granola meeting notes and transcripts, check how fresh they are, and count them over a period.
Similar skills
to-questionnaire
310kTurns a question you cannot answer alone into a written questionnaire for another person to fill in, by email or in a meeting.
email-ops
280kLets your agent manage emails, organizing the inbox and verifying sends. It helps ensure important messages are sent and tracked.
messages-ops
280kHelps your agent read messages and verification codes. It's useful for checking conversations before replying or proving which message was seen.