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:05:25

    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.

    Bonjour discovery

    Bonjour / mDNS discovery

    OpenClaw uses Bonjour (mDNS / DNS‑SD) to discover an active Gateway (WebSocket endpoint). Multicast

    text
    local.
    browsing is a LAN-only convenience. The bundled
    text
    bonjour
    plugin owns LAN advertising and is enabled by default. For cross-network discovery, the same beacon can also be published through a configured wide-area DNS-SD domain. Discovery is still best-effort and does not replace SSH or Tailnet-based connectivity.

    Wide-area Bonjour (Unicast DNS-SD) over Tailscale

    If the node and gateway are on different networks, multicast mDNS won’t cross the boundary. You can keep the same discovery UX by switching to unicast DNS‑SD ("Wide‑Area Bonjour") over Tailscale.

    High‑level steps:

    1. Run a DNS server on the gateway host (reachable over Tailnet).
    2. Publish DNS‑SD records for
      text
      _openclaw-gw._tcp
      under a dedicated zone (example:
      text
      openclaw.internal.
      ).
    3. Configure Tailscale split DNS so your chosen domain resolves via that DNS server for clients (including iOS).

    OpenClaw supports any discovery domain;

    text
    openclaw.internal.
    is just an example. iOS/Android nodes browse both
    text
    local.
    and your configured wide‑area domain.

    Gateway config (recommended)

    json5
    { gateway: { bind: "tailnet" }, // tailnet-only (recommended) discovery: { wideArea: { enabled: true } }, // enables wide-area DNS-SD publishing }

    One-time DNS server setup (gateway host)

    bash
    openclaw dns setup --apply

    This installs CoreDNS and configures it to:

    • listen on port 53 only on the gateway’s Tailscale interfaces
    • serve your chosen domain (example:
      text
      openclaw.internal.
      ) from
      text
      ~/.openclaw/dns/<domain>.db

    Validate from a tailnet‑connected machine:

    bash
    dns-sd -B _openclaw-gw._tcp openclaw.internal. dig @<TAILNET_IPV4> -p 53 _openclaw-gw._tcp.openclaw.internal PTR +short

    Tailscale DNS settings

    In the Tailscale admin console:

    • Add a nameserver pointing at the gateway’s tailnet IP (UDP/TCP 53).
    • Add split DNS so your discovery domain uses that nameserver.

    Once clients accept tailnet DNS, iOS nodes and CLI discovery can browse

    text
    _openclaw-gw._tcp
    in your discovery domain without multicast.

    Gateway listener security (recommended)

    The Gateway WS port (default

    text
    18789
    ) binds to loopback by default. For LAN/tailnet access, bind explicitly and keep auth enabled.

    For tailnet‑only setups:

    • Set
      text
      gateway.bind: "tailnet"
      in
      text
      ~/.openclaw/openclaw.json
      .
    • Restart the Gateway (or restart the macOS menubar app).

    What advertises

    Only the Gateway advertises

    text
    _openclaw-gw._tcp
    . LAN multicast advertising is provided by the bundled
    text
    bonjour
    plugin; wide-area DNS-SD publishing remains Gateway-owned.

    Service types

    • text
      _openclaw-gw._tcp
      — gateway transport beacon (used by macOS/iOS/Android nodes).

    TXT keys (non-secret hints)

    The Gateway advertises small non‑secret hints to make UI flows convenient:

    • text
      role=gateway
    • text
      displayName=<friendly name>
    • text
      lanHost=<hostname>.local
    • text
      gatewayPort=<port>
      (Gateway WS + HTTP)
    • text
      gatewayTls=1
      (only when TLS is enabled)
    • text
      gatewayTlsSha256=<sha256>
      (only when TLS is enabled and fingerprint is available)
    • text
      canvasPort=<port>
      (only when the canvas host is enabled; currently the same as
      text
      gatewayPort
      )
    • text
      transport=gateway
    • text
      tailnetDns=<magicdns>
      (mDNS full mode only, optional hint when Tailnet is available)
    • text
      sshPort=<port>
      (mDNS full mode only; wide-area DNS-SD may omit it)
    • text
      cliPath=<path>
      (mDNS full mode only; wide-area DNS-SD still writes it as a remote-install hint)

    Security notes:

    • Bonjour/mDNS TXT records are unauthenticated. Clients must not treat TXT as authoritative routing.
    • Clients should route using the resolved service endpoint (SRV + A/AAAA). Treat
      text
      lanHost
      ,
      text
      tailnetDns
      ,
      text
      gatewayPort
      , and
      text
      gatewayTlsSha256
      as hints only.
    • SSH auto-targeting should likewise use the resolved service host, not TXT-only hints.
    • TLS pinning must never allow an advertised
      text
      gatewayTlsSha256
      to override a previously stored pin.
    • iOS/Android nodes should treat discovery-based direct connects as TLS-only and require explicit user confirmation before trusting a first-time fingerprint.

    Debugging on macOS

    Useful built‑in tools:

    • Browse instances:

      bash
      dns-sd -B _openclaw-gw._tcp local.
    • Resolve one instance (replace

      text
      <instance>
      ):

      bash
      dns-sd -L "<instance>" _openclaw-gw._tcp local.

    If browsing works but resolving fails, you’re usually hitting a LAN policy or mDNS resolver issue.

    Debugging in Gateway logs

    The Gateway writes a rolling log file (printed on startup as

    text
    gateway log file: ...
    ). Look for
    text
    bonjour:
    lines, especially:

    • text
      bonjour: advertise failed ...
    • text
      bonjour: suppressing ciao cancellation ...
    • text
      bonjour: ... name conflict resolved
      /
      text
      hostname conflict resolved
    • text
      bonjour: watchdog detected non-announced service ...
    • text
      bonjour: disabling advertiser after ... failed restarts ...

    Bonjour uses the system hostname for the advertised

    text
    .local
    host when it is a valid DNS label. If the system hostname contains spaces, underscores, or another invalid DNS-label character, OpenClaw falls back to
    text
    openclaw.local
    . Set
    text
    OPENCLAW_MDNS_HOSTNAME=<name>
    before starting the Gateway when you need an explicit host label.

    Debugging on iOS node

    The iOS node uses

    text
    NWBrowser
    to discover
    text
    _openclaw-gw._tcp
    .

    To capture logs:

    • Settings → Gateway → Advanced → Discovery Debug Logs
    • Settings → Gateway → Advanced → Discovery Logs → reproduce → Copy

    The log includes browser state transitions and result‑set changes.

    When to disable Bonjour

    Disable Bonjour only when LAN multicast advertising is unavailable or harmful. The common case is a Gateway running behind Docker bridge networking, WSL, or a network policy that drops mDNS multicast. In those environments the Gateway is still reachable through its published URL, SSH, Tailnet, or wide-area DNS-SD, but LAN auto-discovery is not reliable.

    Prefer the existing environment override when the problem is deployment-scoped:

    bash
    OPENCLAW_DISABLE_BONJOUR=1

    That disables LAN multicast advertising without changing plugin configuration. It is safe for Docker images, service files, launch scripts, and one-off debugging because the setting disappears when the environment does.

    Use plugin configuration only when you intentionally want to turn off the bundled LAN discovery plugin for that OpenClaw config:

    bash
    openclaw plugins disable bonjour

    Docker gotchas

    The bundled Bonjour plugin auto-disables LAN multicast advertising in detected containers when

    text
    OPENCLAW_DISABLE_BONJOUR
    is unset. Docker bridge networks usually do not forward mDNS multicast (
    text
    224.0.0.251:5353
    ) between the container and the LAN, so advertising from the container rarely makes discovery work.

    Important gotchas:

    • Disabling Bonjour does not stop the Gateway. It only stops LAN multicast advertising.
    • Disabling Bonjour does not change
      text
      gateway.bind
      ; Docker still defaults to
      text
      OPENCLAW_GATEWAY_BIND=lan
      so the published host port can work.
    • Disabling Bonjour does not disable wide-area DNS-SD. Use wide-area discovery or Tailnet when the Gateway and node are not on the same LAN.
    • Reusing the same
      text
      OPENCLAW_CONFIG_DIR
      outside Docker does not persist the container auto-disable policy.
    • Set
      text
      OPENCLAW_DISABLE_BONJOUR=0
      only for host networking, macvlan, or another network where mDNS multicast is known to pass; set it to
      text
      1
      to force-disable.

    Troubleshooting disabled Bonjour

    If a node no longer auto-discovers the Gateway after Docker setup:

    1. Confirm whether the Gateway is running in auto, forced-on, or forced-off mode:

      bash
      docker compose config | grep OPENCLAW_DISABLE_BONJOUR
    2. Confirm the Gateway itself is reachable through the published port:

      bash
      curl -fsS http://127.0.0.1:18789/healthz
    3. Use a direct target when Bonjour is disabled:

      • Control UI or local tools:
        text
        http://127.0.0.1:18789
      • LAN clients:
        text
        http://<gateway-host>:18789
      • Cross-network clients: Tailnet MagicDNS, Tailnet IP, SSH tunnel, or wide-area DNS-SD
    4. If you deliberately enabled Bonjour in Docker with

      text
      OPENCLAW_DISABLE_BONJOUR=0
      , test multicast from the host:

      bash
      dns-sd -B _openclaw-gw._tcp local.

      If browsing is empty or the Gateway logs show repeated ciao watchdog cancellations, restore

      text
      OPENCLAW_DISABLE_BONJOUR=1
      and use a direct or Tailnet route.

    Common failure modes

    • Bonjour doesn’t cross networks: use Tailnet or SSH.
    • Multicast blocked: some Wi‑Fi networks disable mDNS.
    • Advertiser stuck in probing/announcing: hosts with blocked multicast, container bridges, WSL, or interface churn can leave the ciao advertiser in a non-announced state. OpenClaw retries a few times and then disables Bonjour for the current Gateway process instead of restarting the advertiser forever.
    • Docker bridge networking: Bonjour auto-disables in detected containers. Set
      text
      OPENCLAW_DISABLE_BONJOUR=0
      only for host, macvlan, or another mDNS-capable network.
    • Sleep / interface churn: macOS may temporarily drop mDNS results; retry.
    • Browse works but resolve fails: keep machine names simple (avoid emojis or punctuation), then restart the Gateway. The service instance name derives from the host name, so overly complex names can confuse some resolvers.

    Escaped instance names (
    text
    \032
    )

    Bonjour/DNS‑SD often escapes bytes in service instance names as decimal

    text
    \DDD
    sequences (e.g. spaces become
    text
    \032
    ).

    • This is normal at the protocol level.
    • UIs should decode for display (iOS uses
      text
      BonjourEscapes.decode
      ).

    Disabling / configuration

    • text
      openclaw plugins disable bonjour
      disables LAN multicast advertising by disabling the bundled plugin.
    • text
      openclaw plugins enable bonjour
      restores the default LAN discovery plugin.
    • text
      OPENCLAW_DISABLE_BONJOUR=1
      disables LAN multicast advertising without changing plugin config; accepted truthy values are
      text
      1
      ,
      text
      true
      ,
      text
      yes
      , and
      text
      on
      (legacy:
      text
      OPENCLAW_DISABLE_BONJOUR
      ).
    • text
      OPENCLAW_DISABLE_BONJOUR=0
      forces LAN multicast advertising on, including inside detected containers; accepted falsy values are
      text
      0
      ,
      text
      false
      ,
      text
      no
      , and
      text
      off
      .
    • When
      text
      OPENCLAW_DISABLE_BONJOUR
      is unset, Bonjour advertises on normal hosts and auto-disables inside detected containers.
    • text
      gateway.bind
      in
      text
      ~/.openclaw/openclaw.json
      controls the Gateway bind mode.
    • text
      OPENCLAW_SSH_PORT
      overrides the SSH port when
      text
      sshPort
      is advertised (legacy:
      text
      OPENCLAW_SSH_PORT
      ).
    • text
      OPENCLAW_TAILNET_DNS
      publishes a MagicDNS hint in TXT when mDNS full mode is enabled (legacy:
      text
      OPENCLAW_TAILNET_DNS
      ).
    • text
      OPENCLAW_CLI_PATH
      overrides the advertised CLI path (legacy:
      text
      OPENCLAW_CLI_PATH
      ).

    Related docs

    • Discovery policy and transport selection: Discovery
    • Node pairing + approvals: Gateway pairing

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine