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:03:06

    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.

    Discovery and transports

    Discovery & transports

    OpenClaw has two distinct problems that look similar on the surface:

    1. Operator remote control: the macOS menu bar app controlling a gateway running elsewhere.
    2. Node pairing: iOS/Android (and future nodes) finding a gateway and pairing securely.

    The design goal is to keep all network discovery/advertising in the Node Gateway (

    text
    openclaw gateway
    ) and keep clients (mac app, iOS) as consumers.

    Terms

    • Gateway: a single long-running gateway process that owns state (sessions, pairing, node registry) and runs channels. Most setups use one per host; isolated multi-gateway setups are possible.
    • Gateway WS (control plane): the WebSocket endpoint on
      text
      127.0.0.1:18789
      by default; can be bound to LAN/tailnet via
      text
      gateway.bind
      .
    • Direct WS transport: a LAN/tailnet-facing Gateway WS endpoint (no SSH).
    • SSH transport (fallback): remote control by forwarding
      text
      127.0.0.1:18789
      over SSH.
    • Legacy TCP bridge (removed): older node transport (see Bridge protocol); no longer advertised for discovery and no longer part of current builds.

    Protocol details:

    • Gateway protocol
    • Bridge protocol (legacy)

    Why we keep both "direct" and SSH

    • Direct WS is the best UX on the same network and within a tailnet:
      • auto-discovery on LAN via Bonjour
      • pairing tokens + ACLs owned by the gateway
      • no shell access required; protocol surface can stay tight and auditable
    • SSH remains the universal fallback:
      • works anywhere you have SSH access (even across unrelated networks)
      • survives multicast/mDNS issues
      • requires no new inbound ports besides SSH

    Discovery inputs (how clients learn where the gateway is)

    1) Bonjour / DNS-SD discovery

    Multicast Bonjour is best-effort and does not cross networks. OpenClaw can also browse the same gateway beacon via a configured wide-area DNS-SD domain, so discovery can cover:

    • text
      local.
      on the same LAN
    • a configured unicast DNS-SD domain for cross-network discovery

    Target direction:

    • The gateway advertises its WS endpoint via Bonjour.
    • Clients browse and show a “pick a gateway” list, then store the chosen endpoint.

    Troubleshooting and beacon details: Bonjour.

    Service beacon details

    • Service types:
      • text
        _openclaw-gw._tcp
        (gateway transport beacon)
    • TXT keys (non-secret):
      • text
        role=gateway
      • text
        transport=gateway
      • text
        displayName=<friendly name>
        (operator-configured display name)
      • text
        lanHost=<hostname>.local
      • text
        gatewayPort=18789
        (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>
        (canvas host port; currently the same as
        text
        gatewayPort
        when the canvas host is enabled)
      • text
        tailnetDns=<magicdns>
        (optional hint; auto-detected when Tailscale is available)
      • text
        sshPort=<port>
        (mDNS full mode only; wide-area DNS-SD may omit it, in which case SSH defaults stay at
        text
        22
        )
      • 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 treat TXT values as UX hints only.
    • Routing (host/port) should prefer the resolved service endpoint (SRV + A/AAAA) over TXT-provided
      text
      lanHost
      ,
      text
      tailnetDns
      , or
      text
      gatewayPort
      .
    • TLS pinning must never allow an advertised
      text
      gatewayTlsSha256
      to override a previously stored pin.
    • iOS/Android nodes should require an explicit “trust this fingerprint” confirmation before storing a first-time pin (out-of-band verification) whenever the chosen route is secure/TLS-based.

    Disable/override:

    • text
      OPENCLAW_DISABLE_BONJOUR=1
      disables advertising.
    • When
      text
      OPENCLAW_DISABLE_BONJOUR
      is unset, Bonjour advertises on normal hosts and auto-disables inside detected containers. Use
      text
      0
      only on host, macvlan, or another mDNS-capable network; use
      text
      1
      to force-disable.
    • text
      gateway.bind
      in
      text
      ~/.openclaw/openclaw.json
      controls the Gateway bind mode.
    • text
      OPENCLAW_SSH_PORT
      overrides the SSH port advertised when
      text
      sshPort
      is emitted.
    • text
      OPENCLAW_TAILNET_DNS
      publishes a
      text
      tailnetDns
      hint (MagicDNS).
    • text
      OPENCLAW_CLI_PATH
      overrides the advertised CLI path.

    2) Tailnet (cross-network)

    For London/Vienna style setups, Bonjour won’t help. The recommended “direct” target is:

    • Tailscale MagicDNS name (preferred) or a stable tailnet IP.

    If the gateway can detect it is running under Tailscale, it publishes

    text
    tailnetDns
    as an optional hint for clients (including wide-area beacons).

    The macOS app now prefers MagicDNS names over raw Tailscale IPs for gateway discovery. This improves reliability when tailnet IPs change (for example after node restarts or CGNAT reassignment), because MagicDNS names resolve to the current IP automatically.

    For mobile node pairing, discovery hints do not relax transport security on tailnet/public routes:

    • iOS/Android still require a secure first-time tailnet/public connect path (
      text
      wss://
      or Tailscale Serve/Funnel).
    • A discovered raw tailnet IP is a routing hint, not permission to use plaintext remote
      text
      ws://
      .
    • Private LAN direct-connect
      text
      ws://
      remains supported.
    • If you want the simplest Tailscale path for mobile nodes, use Tailscale Serve so discovery and the setup code both resolve to the same secure MagicDNS endpoint.

    3) Manual / SSH target

    When there is no direct route (or direct is disabled), clients can always connect via SSH by forwarding the loopback gateway port.

    See Remote access.

    Transport selection (client policy)

    Recommended client behavior:

    1. If a paired direct endpoint is configured and reachable, use it.
    2. Else, if discovery finds a gateway on
      text
      local.
      or the configured wide-area domain, offer a one-tap “Use this gateway” choice and save it as the direct endpoint.
    3. Else, if a tailnet DNS/IP is configured, try direct. For mobile nodes on tailnet/public routes, direct means a secure endpoint, not plaintext remote
      text
      ws://
      .
    4. Else, fall back to SSH.

    Pairing + auth (direct transport)

    The gateway is the source of truth for node/client admission.

    • Pairing requests are created/approved/rejected in the gateway (see Gateway pairing).
    • The gateway enforces:
      • auth (token / keypair)
      • scopes/ACLs (the gateway is not a raw proxy to every method)
      • rate limits

    Responsibilities by component

    • Gateway: advertises discovery beacons, owns pairing decisions, and hosts the WS endpoint.
    • macOS app: helps you pick a gateway, shows pairing prompts, and uses SSH only as a fallback.
    • iOS/Android nodes: browse Bonjour as a convenience and connect to the paired Gateway WS.

    Related

    • Remote access
    • Tailscale
    • Bonjour discovery

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine