TaskFlow
DashboardFreewriteWhiteboardsProjectsCRMTasksNotificationsSettingsAgent TowerAPI Docs
OpenClaw Docs
?

User

Member

Caricamento in corso...

Home
Progetti
Task
Notifiche
CRM

    OpenClaw

    Documentation Mirror

    Documentation Overview

    Docs

    Auth credential semantics
    Scheduled tasks
    Hooks
    Automation & tasks
    Standing orders
    Task flow
    Background tasks
    BlueBubbles
    Broadcast groups
    Channel routing
    Discord
    Feishu
    Google Chat
    Group messages
    Groups
    iMessage
    Chat channels
    IRC
    LINE
    Channel location parsing
    Matrix
    Matrix migration
    Matrix push rules for quiet previews
    Mattermost
    Microsoft Teams
    Nextcloud Talk
    Nostr
    Pairing
    QA channel
    QQ bot
    Signal
    Slack
    Synology Chat
    Telegram
    Tlon
    Channel troubleshooting
    Twitch
    WeChat
    WhatsApp
    Yuanbao
    Zalo
    Zalo personal
    CI pipeline
    ACP
    Agent
    Agents
    Approvals
    Backup
    Browser
    Channels
    Clawbot
    `openclaw commitments`
    Completion
    Config
    Configure
    Cron
    Daemon
    Dashboard
    Devices
    Directory
    DNS
    Docs
    Doctor
    Flows (redirect)
    Gateway
    Health
    Hooks
    CLI reference
    Inference CLI
    Logs
    MCP
    Memory
    Message
    Migrate
    Models
    Node
    Nodes
    Onboard
    Pairing
    Plugins
    Proxy
    QR
    Reset
    Sandbox CLI
    Secrets
    Security
    Sessions
    Setup
    Skills
    Status
    System
    `openclaw tasks`
    TUI
    Uninstall
    Update
    Voicecall
    Webhooks
    Wiki
    Active memory
    Agent runtime
    Agent loop
    Agent runtimes
    Agent workspace
    Gateway architecture
    Channel docking
    Inferred commitments
    Compaction
    Context
    Context engine
    Delegate architecture
    Dreaming
    Experimental features
    Features
    Markdown formatting
    Memory overview
    Builtin memory engine
    Honcho memory
    QMD memory engine
    Memory search
    Messages
    Model failover
    Model providers
    Models CLI
    Multi-agent routing
    OAuth
    OpenClaw App SDK
    Presence
    QA overview
    Matrix QA
    Command queue
    Steering queue
    Retry policy
    Session management
    Session pruning
    Session tools
    SOUL.md personality guide
    Streaming and chunking
    System prompt
    Timezones
    TypeBox
    Typing indicators
    Usage tracking
    Date and time
    Node + tsx crash
    Diagnostics flags
    Authentication
    Background exec and process tool
    Bonjour discovery
    Bridge protocol
    CLI backends
    Configuration — agents
    Configuration — channels
    Configuration — tools and custom providers
    Configuration
    Configuration examples
    Configuration reference
    Diagnostics export
    Discovery and transports
    Doctor
    Gateway lock
    Health checks
    Heartbeat
    Gateway runbook
    Local models
    Gateway logging
    Multiple gateways
    Network model
    OpenAI chat completions
    OpenResponses API
    OpenShell
    OpenTelemetry export
    Gateway-owned pairing
    Prometheus metrics
    Gateway protocol
    Remote access
    Remote gateway setup
    Sandbox vs tool policy vs elevated
    Sandboxing
    Secrets management
    Secrets apply plan contract
    Security audit checks
    Security
    Tailscale
    Tools invoke API
    Troubleshooting
    Trusted proxy auth
    Debugging
    Environment variables
    FAQ
    FAQ: first-run setup
    FAQ: models and auth
    GPT-5.5 / Codex agentic parity
    GPT-5.5 / Codex parity maintainer notes
    Help
    Scripts
    Testing
    Testing: live suites
    General troubleshooting
    OpenClaw
    Ansible
    Azure
    Bun (experimental)
    ClawDock
    Release channels
    DigitalOcean
    Docker
    Docker VM runtime
    exe.dev
    Fly.io
    GCP
    Hetzner
    Hostinger
    Install
    Installer internals
    Kubernetes
    macOS VMs
    Migration guide
    Migrating from Claude
    Migrating from Hermes
    Nix
    Node.js
    Northflank
    Oracle Cloud
    Podman
    Railway
    Raspberry Pi
    Render
    Uninstall
    Updating
    Logging
    Network
    Audio and voice notes
    Camera capture
    Image and media support
    Nodes
    Location command
    Media understanding
    Talk mode
    Node troubleshooting
    Voice wake
    Pi integration architecture
    Pi development workflow
    Android app
    Platforms
    iOS app
    Linux app
    Gateway on macOS
    Canvas
    Gateway lifecycle
    macOS dev setup
    Health checks (macOS)
    Menu bar icon
    macOS logging
    Menu bar
    Peekaboo bridge
    macOS permissions
    Remote control
    macOS signing
    Skills (macOS)
    Voice overlay
    Voice wake (macOS)
    WebChat (macOS)
    macOS IPC
    macOS app
    Windows
    Plugin internals
    Plugin architecture internals
    Building plugins
    Plugin bundles
    Codex Computer Use
    Codex harness
    Community plugins
    Plugin compatibility
    Google Meet plugin
    Plugin hooks
    Plugin manifest
    Memory LanceDB
    Memory wiki
    Message presentation
    Agent harness plugins
    Building channel plugins
    Channel turn kernel
    Plugin entry points
    Plugin SDK migration
    Plugin SDK overview
    Building provider plugins
    Plugin runtime helpers
    Plugin setup and config
    Plugin SDK subpaths
    Plugin testing
    Skill workshop plugin
    Voice call plugin
    Webhooks plugin
    Zalo personal plugin
    OpenProse
    Alibaba Model Studio
    Anthropic
    Arcee AI
    Azure Speech
    Amazon Bedrock
    Amazon Bedrock Mantle
    Chutes
    Claude Max API proxy
    Cloudflare AI gateway
    ComfyUI
    Deepgram
    Deepinfra
    DeepSeek
    ElevenLabs
    Fal
    Fireworks
    GitHub Copilot
    GLM (Zhipu)
    Google (Gemini)
    Gradium
    Groq
    Hugging Face (inference)
    Provider directory
    Inferrs
    Inworld
    Kilocode
    LiteLLM
    LM Studio
    MiniMax
    Mistral
    Model provider quickstart
    Moonshot AI
    NVIDIA
    Ollama
    OpenAI
    OpenCode
    OpenCode Go
    OpenRouter
    Perplexity
    Qianfan
    Qwen
    Runway
    SGLang
    StepFun
    Synthetic
    Tencent Cloud (TokenHub)
    Together AI
    Venice AI
    Vercel AI gateway
    vLLM
    Volcengine (Doubao)
    Vydra
    xAI
    Xiaomi MiMo
    Z.AI
    Default AGENTS.md
    Release policy
    API usage and costs
    Credits
    Device model database
    Full release validation
    Memory configuration reference
    OpenClaw App SDK API design
    Prompt caching
    Rich output protocol
    RPC adapters
    SecretRef credential surface
    Session management deep dive
    AGENTS.md template
    BOOT.md template
    BOOTSTRAP.md template
    HEARTBEAT.md template
    IDENTITY template
    SOUL.md template
    TOOLS.md template
    USER template
    Tests
    Token use and costs
    Transcript hygiene
    Onboarding reference
    Contributing to the threat model
    Threat model (MITRE ATLAS)
    Formal verification (security models)
    Network proxy
    Agent bootstrapping
    Docs directory
    Getting started
    Docs hubs
    OpenClaw lore
    Onboarding (macOS app)
    Onboarding overview
    Personal assistant setup
    Setup
    Showcase
    Onboarding (CLI)
    CLI automation
    CLI setup reference
    ACP agents
    ACP agents — setup
    Agent send
    apply_patch tool
    Brave search
    Browser (OpenClaw-managed)
    Browser control API
    Browser troubleshooting
    Browser login
    WSL2 + Windows + remote Chrome CDP troubleshooting
    BTW side questions
    ClawHub
    Code execution
    Creating skills
    Diffs
    DuckDuckGo search
    Elevated mode
    Exa search
    Exec tool
    Exec approvals
    Exec approvals — advanced
    Firecrawl
    Gemini search
    Grok search
    Image generation
    Tools and plugins
    Kimi search
    LLM task
    Lobster
    Tool-loop detection
    Media overview
    MiniMax search
    Multi-agent sandbox and tools
    Music generation
    Ollama web search
    PDF tool
    Perplexity search
    Plugins
    Reactions
    SearXNG search
    Skills
    Skills config
    Slash commands
    Sub-agents
    Tavily
    Thinking levels
    Tokenjuice
    Trajectory bundles
    Text-to-speech
    Video generation
    Web search
    Web fetch
    Linux server
    Control UI
    Dashboard
    Web
    TUI
    WebChat

    OpenAPI Specs

    openapi
    TaskFlow
    docs/openclaw
    Original Docs

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:04:05

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.

    OpenClaw Docs

    v2.4.0 Production

    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.

    BlueBubbles

    Status: bundled plugin that talks to the BlueBubbles macOS server over HTTP. Recommended for iMessage integration due to its richer API and easier setup compared to the legacy imsg channel.

    note

    Current OpenClaw releases bundle BlueBubbles, so normal packaged builds do not need a separate `openclaw plugins install` step.

    Overview

    • Runs on macOS via the BlueBubbles helper app (bluebubbles.app).
    • Recommended/tested: macOS Sequoia (15). macOS Tahoe (26) works; edit is currently broken on Tahoe, and group icon updates may report success but not sync.
    • OpenClaw talks to it through its REST API (
      text
      GET /api/v1/ping
      ,
      text
      POST /message/text
      ,
      text
      POST /chat/:id/*
      ).
    • Incoming messages arrive via webhooks; outgoing replies, typing indicators, read receipts, and tapbacks are REST calls.
    • Attachments and stickers are ingested as inbound media (and surfaced to the agent when possible).
    • Auto-TTS replies that synthesize MP3 or CAF audio are delivered as iMessage voice memo bubbles instead of plain file attachments.
    • Pairing/allowlist works the same way as other channels (
      text
      /channels/pairing
      etc) with
      text
      channels.bluebubbles.allowFrom
      + pairing codes.
    • Reactions are surfaced as system events just like Slack/Telegram so agents can "mention" them before replying.
    • Advanced features: edit, unsend, reply threading, message effects, group management.

    Quick start

    Install BlueBubbles

    Install the BlueBubbles server on your Mac (follow the instructions at [bluebubbles.app/install](https://bluebubbles.app/install)).

    Enable the web API

    In the BlueBubbles config, enable the web API and set a password.

    Configure OpenClaw

    Run `openclaw onboard` and select BlueBubbles, or configure manually:
    text
    ```json5} { channels: { bluebubbles: { enabled: true, serverUrl: "http://192.168.1.100:1234", password: "example-password", webhookPath: "/bluebubbles-webhook", }, }, } ```

    Point webhooks at the gateway

    Point BlueBubbles webhooks to your gateway (example: `https://your-gateway-host:3000/bluebubbles-webhook?password=`).

    Start the gateway

    Start the gateway; it will register the webhook handler and start pairing.

    warning

    **Security**
    • Always set a webhook password.
    • Webhook authentication is always required. OpenClaw rejects BlueBubbles webhook requests unless they include a password/guid that matches
      text
      channels.bluebubbles.password
      (for example
      text
      ?password=<password>
      or
      text
      x-password
      ), regardless of loopback/proxy topology.
    • Password authentication is checked before reading/parsing full webhook bodies.

    Keeping Messages.app alive (VM / headless setups)

    Some macOS VM / always-on setups can end up with Messages.app going "idle" (incoming events stop until the app is opened/foregrounded). A simple workaround is to poke Messages every 5 minutes using an AppleScript + LaunchAgent.

    Save the AppleScript

    Save this as `~/Scripts/poke-messages.scpt`:
    text
    ```applescript} try tell application "Messages" if not running then launch end if -- Touch the scripting interface to keep the process responsive. set _chatCount to (count of chats) end tell on error -- Ignore transient failures (first-run prompts, locked session, etc). end try ```

    Install a LaunchAgent

    Save this as `~/Library/LaunchAgents/com.user.poke-messages.plist`:
    text
    ```xml} <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.user.poke-messages</string> <key>ProgramArguments</key> <array> <string>/bin/bash</string> <string>-lc</string> <string>/usr/bin/osascript &quot;$HOME/Scripts/poke-messages.scpt&quot;</string> </array> <key>RunAtLoad</key> <true/> <key>StartInterval</key> <integer>300</integer> <key>StandardOutPath</key> <string>/tmp/poke-messages.log</string> <key>StandardErrorPath</key> <string>/tmp/poke-messages.err</string> </dict> </plist> ``` This runs **every 300 seconds** and **on login**. The first run may trigger macOS **Automation** prompts (`osascript` → Messages). Approve them in the same user session that runs the LaunchAgent.

    Load it

    ```bash} launchctl unload ~/Library/LaunchAgents/com.user.poke-messages.plist 2>/dev/null || true launchctl load ~/Library/LaunchAgents/com.user.poke-messages.plist ```

    Onboarding

    BlueBubbles is available in interactive onboarding:

    text
    openclaw onboard

    The wizard prompts for:

    BlueBubbles server address (e.g., `http://192.168.1.100:1234`). API password from BlueBubbles Server settings. Webhook endpoint path. `pairing`, `allowlist`, `open`, or `disabled`. Phone numbers, emails, or chat targets.

    You can also add BlueBubbles via CLI:

    text
    openclaw channels add bluebubbles --http-url http://192.168.1.100:1234 --password <password>

    Access control (DMs + groups)

    * Default: `channels.bluebubbles.dmPolicy = "pairing"`. * Unknown senders receive a pairing code; messages are ignored until approved (codes expire after 1 hour). * Approve via: * `openclaw pairing list bluebubbles` * `openclaw pairing approve bluebubbles
    text
    ` * Pairing is the default token exchange. Details: [Pairing](/channels/pairing)
    text
    * `channels.bluebubbles.groupPolicy = open | allowlist | disabled` (default: `allowlist`). * `channels.bluebubbles.groupAllowFrom` controls who can trigger in groups when `allowlist` is set.
    text

    Contact name enrichment (macOS, optional)

    BlueBubbles group webhooks often only include raw participant addresses. If you want

    text
    GroupMembers
    context to show local contact names instead, you can opt in to local Contacts enrichment on macOS:

    • text
      channels.bluebubbles.enrichGroupParticipantsFromContacts = true
      enables the lookup. Default:
      text
      false
      .
    • Lookups run only after group access, command authorization, and mention gating have allowed the message through.
    • Only unnamed phone participants are enriched.
    • Raw phone numbers remain as the fallback when no local match is found.
    json5
    { channels: { bluebubbles: { enrichGroupParticipantsFromContacts: true, }, }, }

    Mention gating (groups)

    BlueBubbles supports mention gating for group chats, matching iMessage/WhatsApp behavior:

    • Uses
      text
      agents.list[].groupChat.mentionPatterns
      (or
      text
      messages.groupChat.mentionPatterns
      ) to detect mentions.
    • When
      text
      requireMention
      is enabled for a group, the agent only responds when mentioned.
    • Control commands from authorized senders bypass mention gating.

    Per-group configuration:

    json5
    { channels: { bluebubbles: { groupPolicy: "allowlist", groupAllowFrom: ["+15555550123"], groups: { "*": { requireMention: true }, // default for all groups "iMessage;-;chat123": { requireMention: false }, // override for specific group }, }, }, }

    Command gating

    • Control commands (e.g.,
      text
      /config
      ,
      text
      /model
      ) require authorization.
    • Uses
      text
      allowFrom
      and
      text
      groupAllowFrom
      to determine command authorization.
    • Authorized senders can run control commands even without mentioning in groups.

    Per-group system prompt

    Each entry under

    text
    channels.bluebubbles.groups.*
    accepts an optional
    text
    systemPrompt
    string. The value is injected into the agent's system prompt on every turn that handles a message in that group, so you can set per-group persona or behavioral rules without editing agent prompts:

    json5
    { channels: { bluebubbles: { groups: { "iMessage;-;chat123": { systemPrompt: "Keep responses under 3 sentences. Mirror the group's casual tone.", }, }, }, }, }

    The key matches whatever BlueBubbles reports as

    text
    chatGuid
    /
    text
    chatIdentifier
    / numeric
    text
    chatId
    for the group, and a
    text
    "*"
    wildcard entry provides a default for every group without an exact match (same pattern used by
    text
    requireMention
    and per-group tool policies). Exact matches always win over the wildcard. DMs ignore this field; use agent-level or account-level prompt customization instead.

    Worked example: threaded replies and tapback reactions (Private API)

    With the BlueBubbles Private API enabled, inbound messages arrive with short message IDs (for example

    text
    [[reply_to:5]]
    ) and the agent can call
    text
    action=reply
    to thread into a specific message or
    text
    action=react
    to drop a tapback. A per-group
    text
    systemPrompt
    is a reliable way to keep the agent choosing the right tool:

    json5
    { channels: { bluebubbles: { groups: { "iMessage;+;chat-family": { systemPrompt: [ "When replying in this group, always call action=reply with the", "[[reply_to:N]] messageId from context so your response threads", "under the triggering message. Never send a new unlinked message.", "", "For short acknowledgements ('ok', 'got it', 'on it'), use", "action=react with an appropriate tapback emoji (❤️, 👍, 😂, ‼️, ❓)", "instead of sending a text reply.", ].join(" "), }, }, }, }, }

    Tapback reactions and threaded replies both require the BlueBubbles Private API; see Advanced actions and Message IDs for the underlying mechanics.

    ACP conversation bindings

    BlueBubbles chats can be turned into durable ACP workspaces without changing the transport layer.

    Fast operator flow:

    • Run
      text
      /acp spawn codex --bind here
      inside the DM or allowed group chat.
    • Future messages in that same BlueBubbles conversation route to the spawned ACP session.
    • text
      /new
      and
      text
      /reset
      reset the same bound ACP session in place.
    • text
      /acp close
      closes the ACP session and removes the binding.

    Configured persistent bindings are also supported through top-level

    text
    bindings[]
    entries with
    text
    type: "acp"
    and
    text
    match.channel: "bluebubbles"
    .

    text
    match.peer.id
    can use any supported BlueBubbles target form:

    • normalized DM handle such as
      text
      +15555550123
      or
      text
      user@example.com
    • text
      chat_id:<id>
    • text
      chat_guid:<guid>
    • text
      chat_identifier:<identifier>

    For stable group bindings, prefer

    text
    chat_id:*
    or
    text
    chat_identifier:*
    .

    Example:

    json5
    { agents: { list: [ { id: "codex", runtime: { type: "acp", acp: { agent: "codex", backend: "acpx", mode: "persistent" }, }, }, ], }, bindings: [ { type: "acp", agentId: "codex", match: { channel: "bluebubbles", accountId: "default", peer: { kind: "dm", id: "+15555550123" }, }, acp: { label: "codex-imessage" }, }, ], }

    See ACP Agents for shared ACP binding behavior.

    Typing + read receipts

    • Typing indicators: Sent automatically before and during response generation.
    • Read receipts: Controlled by
      text
      channels.bluebubbles.sendReadReceipts
      (default:
      text
      true
      ).
    • Typing indicators: OpenClaw sends typing start events; BlueBubbles clears typing automatically on send or timeout (manual stop via DELETE is unreliable).
    json5
    { channels: { bluebubbles: { sendReadReceipts: false, // disable read receipts }, }, }

    Advanced actions

    BlueBubbles supports advanced message actions when enabled in config:

    json5
    { channels: { bluebubbles: { actions: { reactions: true, // tapbacks (default: true) edit: true, // edit sent messages (macOS 13+, broken on macOS 26 Tahoe) unsend: true, // unsend messages (macOS 13+) reply: true, // reply threading by message GUID sendWithEffect: true, // message effects (slam, loud, etc.) renameGroup: true, // rename group chats setGroupIcon: true, // set group chat icon/photo (flaky on macOS 26 Tahoe) addParticipant: true, // add participants to groups removeParticipant: true, // remove participants from groups leaveGroup: true, // leave group chats sendAttachment: true, // send attachments/media }, }, }, }

    Message IDs (short vs full)

    OpenClaw may surface short message IDs (e.g.,

    text
    1
    ,
    text
    2
    ) to save tokens.

    • text
      MessageSid
      /
      text
      ReplyToId
      can be short IDs.
    • text
      MessageSidFull
      /
      text
      ReplyToIdFull
      contain the provider full IDs.
    • Short IDs are in-memory; they can expire on restart or cache eviction.
    • Actions accept short or full
      text
      messageId
      , but short IDs will error if no longer available.

    Use full IDs for durable automations and storage:

    • Templates:
      text
      {{MessageSidFull}}
      ,
      text
      {{ReplyToIdFull}}
    • Context:
      text
      MessageSidFull
      /
      text
      ReplyToIdFull
      in inbound payloads

    See Configuration for template variables.

    Coalescing split-send DMs (command + URL in one composition)

    When a user types a command and a URL together in iMessage — e.g.

    text
    Dump https://example.com/article
    — Apple splits the send into two separate webhook deliveries:

    1. A text message (
      text
      "Dump"
      ).
    2. A URL-preview balloon (
      text
      "https://..."
      ) with OG-preview images as attachments.

    The two webhooks arrive at OpenClaw ~0.8-2.0 s apart on most setups. Without coalescing, the agent receives the command alone on turn 1, replies (often "send me the URL"), and only sees the URL on turn 2 — at which point the command context is already lost.

    text
    channels.bluebubbles.coalesceSameSenderDms
    opts a DM into merging consecutive same-sender webhooks into a single agent turn. Group chats continue to key per-message so multi-user turn structure is preserved.

    Enable when:
    text
    * You ship skills that expect `command + payload` in one message (dump, paste, save, queue, etc.). * Your users paste URLs, images, or long content alongside commands. * You can accept the added DM turn latency (see below). Leave disabled when: * You need minimum command latency for single-word DM triggers. * All your flows are one-shot commands without payload follow-ups.
    ```json5} { channels: { bluebubbles: { coalesceSameSenderDms: true, // opt in (default: false) }, }, } ```
    text
    With the flag on and no explicit `messages.inbound.byChannel.bluebubbles`, the debounce window widens to **2500 ms** (the default for non-coalescing is 500 ms). The wider window is required — Apple's split-send cadence of 0.8-2.0 s does not fit in the tighter default. To tune the window yourself: ```json5} { messages: { inbound: { byChannel: { // 2500 ms works for most setups; raise to 4000 ms if your Mac is slow // or under memory pressure (observed gap can stretch past 2 s then). bluebubbles: 2500, }, }, }, } ```
    * **Added latency for DM control commands.** With the flag on, DM control-command messages (like `Dump`, `Save`, etc.) now wait up to the debounce window before dispatching, in case a payload webhook is coming. Group-chat commands keep instant dispatch. * **Merged output is bounded** — merged text caps at 4000 chars with an explicit `…[truncated]` marker; attachments cap at 20; source entries cap at 10 (first-plus-latest retained beyond that). Every source `messageId` still reaches inbound-dedupe so a later MessagePoller replay of any individual event is recognized as a duplicate. * **Opt-in, per-channel.** Other channels (Telegram, WhatsApp, Slack, …) are unaffected.

    Scenarios and what the agent sees

    User composesApple deliversFlag off (default)Flag on + 2500 ms window
    text
    Dump https://example.com
    (one send)
    2 webhooks ~1 s apartTwo agent turns: "Dump" alone, then URLOne turn: merged text
    text
    Dump https://example.com
    text
    Save this 📎image.jpg caption
    (attachment + text)
    2 webhooksTwo turnsOne turn: text + image
    text
    /status
    (standalone command)
    1 webhookInstant dispatchWait up to window, then dispatch
    URL pasted alone1 webhookInstant dispatchInstant dispatch (only one entry in bucket)
    Text + URL sent as two deliberate separate messages, minutes apart2 webhooks outside windowTwo turnsTwo turns (window expires between them)
    Rapid flood (>10 small DMs inside window)N webhooksN turnsOne turn, bounded output (first + latest, text/attachment caps applied)

    Split-send coalescing troubleshooting

    If the flag is on and split-sends still arrive as two turns, check each layer:

    Block streaming

    Control whether responses are sent as a single message or streamed in blocks:

    json5
    { channels: { bluebubbles: { blockStreaming: true, // enable block streaming (off by default) }, }, }

    Media + limits

    • Inbound attachments are downloaded and stored in the media cache.
    • Media cap via
      text
      channels.bluebubbles.mediaMaxMb
      for inbound and outbound media (default: 8 MB).
    • Outbound text is chunked to
      text
      channels.bluebubbles.textChunkLimit
      (default: 4000 chars).

    Configuration reference

    Full configuration: Configuration

    Related global options:

    • text
      agents.list[].groupChat.mentionPatterns
      (or
      text
      messages.groupChat.mentionPatterns
      ).
    • text
      messages.responsePrefix
      .

    Addressing / delivery targets

    Prefer

    text
    chat_guid
    for stable routing:

    • text
      chat_guid:iMessage;-;+15555550123
      (preferred for groups)
    • text
      chat_id:123
    • text
      chat_identifier:...
    • Direct handles:
      text
      +15555550123
      ,
      text
      user@example.com
      • If a direct handle does not have an existing DM chat, OpenClaw will create one via
        text
        POST /api/v1/chat/new
        . This requires the BlueBubbles Private API to be enabled.

    iMessage vs SMS routing

    When the same handle has both an iMessage and an SMS chat on the Mac (for example a phone number that is iMessage-registered but has also received green-bubble fallbacks), OpenClaw prefers the iMessage chat and never silently downgrades to SMS. To force the SMS chat, use an explicit

    text
    sms:
    target prefix (for example
    text
    sms:+15555550123
    ). Handles without a matching iMessage chat still send through whatever chat BlueBubbles reports.

    Security

    • Webhook requests are authenticated by comparing
      text
      guid
      /
      text
      password
      query params or headers against
      text
      channels.bluebubbles.password
      .
    • Keep the API password and webhook endpoint secret (treat them like credentials).
    • There is no localhost bypass for BlueBubbles webhook auth. If you proxy webhook traffic, keep the BlueBubbles password on the request end-to-end.
      text
      gateway.trustedProxies
      does not replace
      text
      channels.bluebubbles.password
      here. See Gateway security.
    • Enable HTTPS + firewall rules on the BlueBubbles server if exposing it outside your LAN.

    Troubleshooting

    • If typing/read events stop working, check the BlueBubbles webhook logs and verify the gateway path matches
      text
      channels.bluebubbles.webhookPath
      .
    • Pairing codes expire after one hour; use
      text
      openclaw pairing list bluebubbles
      and
      text
      openclaw pairing approve bluebubbles <code>
      .
    • Reactions require the BlueBubbles private API (
      text
      POST /api/v1/message/react
      ); ensure the server version exposes it.
    • Edit/unsend require macOS 13+ and a compatible BlueBubbles server version. On macOS 26 (Tahoe), edit is currently broken due to private API changes.
    • Group icon updates can be flaky on macOS 26 (Tahoe): the API may return success but the new icon does not sync.
    • OpenClaw auto-hides known-broken actions based on the BlueBubbles server's macOS version. If edit still appears on macOS 26 (Tahoe), disable it manually with
      text
      channels.bluebubbles.actions.edit=false
      .
    • text
      coalesceSameSenderDms
      enabled but split-sends (e.g.
      text
      Dump
      + URL) still arrive as two turns: see the split-send coalescing troubleshooting checklist — common causes are too-tight debounce window, session-log timestamps misread as webhook arrival, or a reply-quote send (which uses
      text
      replyToBody
      , not a second webhook).
    • For status/health info:
      text
      openclaw status --all
      or
      text
      openclaw status --deep
      .

    For general channel workflow reference, see Channels and the Plugins guide.

    Related

    • Channel Routing — session routing for messages
    • Channels Overview — all supported channels
    • Groups — group chat behavior and mention gating
    • Pairing — DM authentication and pairing flow
    • Security — access model and hardening

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine