Caricamento in corso...
Caricamento in corso...
Last synced: Today, 22:00
Technical reference for the OpenClaw framework. Real-time synchronization with the official documentation engine.
Use this file to discover all available pages before exploring further.
Per-channel configuration keys under
channels.*For agents, tools, gateway runtime, and other top-level keys, see Configuration reference.
Each channel starts automatically when its config section exists (unless
enabled: falseAll channels support DM policies and group policies:
| DM policy | Behavior |
|---|---|
text pairing | Unknown senders get a one-time pairing code; owner must approve |
text allowlist | Only senders in text allowFrom |
text open | Allow all inbound DMs (requires text allowFrom: ["*"] |
text disabled | Ignore all inbound DMs |
| Group policy | Behavior |
|---|---|
text allowlist | Only groups matching the configured allowlist |
text open | Bypass group allowlists (mention-gating still applies) |
text disabled | Block all group/room messages |
Use
channels.modelByChannelprovider/model/modeljson5{ channels: { modelByChannel: { discord: { "123456789012345678": "anthropic/claude-opus-4-6", }, slack: { C1234567890: "openai/gpt-4.1", }, telegram: { "-1001234567890": "openai/gpt-4.1-mini", "-1001234567890:topic:99": "anthropic/claude-sonnet-4-6", }, }, }, }
Use
channels.defaultsjson5{ channels: { defaults: { groupPolicy: "allowlist", // open | allowlist | disabled contextVisibility: "all", // all | allowlist | allowlist_quote heartbeat: { showOk: false, showAlerts: true, useIndicator: true, }, }, }, }
channels.defaults.groupPolicygroupPolicychannels.defaults.contextVisibilityallallowlistallowlist_quotechannels.<channel>.contextVisibilitychannels.defaults.heartbeat.showOkchannels.defaults.heartbeat.showAlertschannels.defaults.heartbeat.useIndicatorWhatsApp runs through the gateway's web channel (Baileys Web). It starts automatically when a linked session exists.
json5{ web: { whatsapp: { keepAliveIntervalMs: 25000, connectTimeoutMs: 60000, defaultQueryTimeoutMs: 60000, }, }, channels: { whatsapp: { dmPolicy: "pairing", // pairing | allowlist | open | disabled allowFrom: ["+15555550123", "+447700900123"], textChunkLimit: 4000, chunkMode: "length", // length | newline mediaMaxMb: 50, sendReadReceipts: true, // blue ticks (false in self-chat mode) groups: { "*": { requireMention: true }, }, groupPolicy: "allowlist", groupAllowFrom: ["+15551234567"], }, }, web: { enabled: true, heartbeatSeconds: 60, reconnect: { initialMs: 2000, maxMs: 120000, factor: 1.4, jitter: 0.2, maxAttempts: 0, }, }, }
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine