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:01:28

    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.

    Gateway

    The Gateway is OpenClaw's WebSocket server (channels, nodes, sessions, hooks). Subcommands in this page live under

    text
    openclaw gateway …
    .

    Bonjour discovery

    Local mDNS + wide-area DNS-SD setup.

    Discovery overview

    How OpenClaw advertises and finds gateways.

    Configuration

    Top-level gateway config keys.

    Run the Gateway

    Run a local Gateway process:

    bash
    openclaw gateway

    Foreground alias:

    bash
    openclaw gateway run

    Options

    WebSocket port (default comes from config/env; usually `18789`). Listener bind mode. Auth mode override. Token override (also sets `OPENCLAW_GATEWAY_TOKEN` for the process). Password override. Read the gateway password from a file. Expose the Gateway via Tailscale. Reset Tailscale serve/funnel config on shutdown. Allow gateway start without `gateway.mode=local` in config. Bypasses the startup guard for ad-hoc/dev bootstrap only; does not write or repair the config file. Create a dev config + workspace if missing (skips BOOTSTRAP.md). Reset dev config + credentials + sessions + workspace (requires `--dev`). Kill any existing listener on the selected port before starting. Verbose logs. Only show CLI backend logs in the console (and enable stdout/stderr). Websocket log style. Alias for `--ws-log compact`. Log raw model stream events to jsonl. Raw stream jsonl path.

    warning

    Inline `--password` can be exposed in local process listings. Prefer `--password-file`, env, or a SecretRef-backed `gateway.auth.password`.

    Startup profiling

    • Set
      text
      OPENCLAW_GATEWAY_STARTUP_TRACE=1
      to log phase timings during Gateway startup, including per-phase
      text
      eventLoopMax
      delay and plugin lookup-table timings for installed-index, manifest registry, startup planning, and owner-map work.
    • Set
      text
      OPENCLAW_DIAGNOSTICS=timeline
      with
      text
      OPENCLAW_DIAGNOSTICS_TIMELINE_PATH=<path>
      to write a best-effort JSONL startup diagnostics timeline for external QA harnesses. You can also enable the flag with
      text
      diagnostics.flags: ["timeline"]
      in config; the path is still env-provided. Add
      text
      OPENCLAW_DIAGNOSTICS_EVENT_LOOP=1
      to include event-loop samples.
    • Run
      text
      pnpm test:startup:gateway -- --runs 5 --warmup 1
      to benchmark Gateway startup. The benchmark records first process output,
      text
      /healthz
      ,
      text
      /readyz
      , startup trace timings, event-loop delay, and plugin lookup-table timing details.

    Query a running Gateway

    All query commands use WebSocket RPC.

    * Default: human-readable (colored in TTY). * `--json`: machine-readable JSON (no styling/spinner). * `--no-color` (or `NO_COLOR=1`): disable ANSI while keeping human layout. * `--url `: Gateway WebSocket URL. * `--token `: Gateway token. * `--password `: Gateway password. * `--timeout `: timeout/budget (varies per command). * `--expect-final`: wait for a "final" response (agent calls).

    note

    When you set `--url`, the CLI does not fall back to config or environment credentials. Pass `--token` or `--password` explicitly. Missing explicit credentials is an error.

    text
    gateway health

    bash
    openclaw gateway health --url ws://127.0.0.1:18789

    The HTTP

    text
    /healthz
    endpoint is a liveness probe: it returns once the server can answer HTTP. The HTTP
    text
    /readyz
    endpoint is stricter and stays red while startup sidecars, channels, or configured hooks are still settling. Local or authenticated detailed readiness responses include an
    text
    eventLoop
    diagnostic block with event-loop delay, event-loop utilization, CPU core ratio, and a
    text
    degraded
    flag.

    text
    gateway usage-cost

    Fetch usage-cost summaries from session logs.

    bash
    openclaw gateway usage-cost openclaw gateway usage-cost --days 7 openclaw gateway usage-cost --json
    Number of days to include.

    text
    gateway stability

    Fetch the recent diagnostic stability recorder from a running Gateway.

    bash
    openclaw gateway stability openclaw gateway stability --type payload.large openclaw gateway stability --bundle latest openclaw gateway stability --bundle latest --export openclaw gateway stability --json
    Maximum number of recent events to include (max `1000`). Filter by diagnostic event type, such as `payload.large` or `diagnostic.memory.pressure`. Include only events after a diagnostic sequence number. Read a persisted stability bundle instead of calling the running Gateway. Use `--bundle latest` (or just `--bundle`) for the newest bundle under the state directory, or pass a bundle JSON path directly. Write a shareable support diagnostics zip instead of printing stability details. Output path for `--export`.

    text
    gateway diagnostics export

    Write a local diagnostics zip that is designed to attach to bug reports. For the privacy model and bundle contents, see Diagnostics Export.

    bash
    openclaw gateway diagnostics export openclaw gateway diagnostics export --output openclaw-diagnostics.zip openclaw gateway diagnostics export --json
    Output zip path. Defaults to a support export under the state directory. Maximum sanitized log lines to include. Maximum log bytes to inspect. Gateway WebSocket URL for the health snapshot. Gateway token for the health snapshot. Gateway password for the health snapshot. Status/health snapshot timeout. Skip persisted stability bundle lookup. Print the written path, size, and manifest as JSON.

    The export contains a manifest, a Markdown summary, config shape, sanitized config details, sanitized log summaries, sanitized Gateway status/health snapshots, and the newest stability bundle when one exists.

    It is meant to be shared. It keeps operational details that help debugging, such as safe OpenClaw log fields, subsystem names, status codes, durations, configured modes, ports, plugin ids, provider ids, non-secret feature settings, and redacted operational log messages. It omits or redacts chat text, webhook bodies, tool outputs, credentials, cookies, account/message identifiers, prompt/instruction text, hostnames, and secret values. When a LogTape-style message looks like user/chat/tool payload text, the export keeps only that a message was omitted plus its byte count.

    text
    gateway status

    text
    gateway status
    shows the Gateway service (launchd/systemd/schtasks) plus an optional probe of connectivity/auth capability.

    bash
    openclaw gateway status openclaw gateway status --json openclaw gateway status --require-rpc
    Add an explicit probe target. Configured remote + localhost are still probed. Token auth for the probe. Password auth for the probe. Probe timeout. Skip the connectivity probe (service-only view). Scan system-level services too. Upgrade the default connectivity probe to a read probe and exit non-zero when that read probe fails. Cannot be combined with `--no-probe`.

    text
    gateway probe

    text
    gateway probe
    is the "debug everything" command. It always probes:

    • your configured remote gateway (if set), and
    • localhost (loopback) even if remote is configured.

    If you pass

    text
    --url
    , that explicit target is added ahead of both. Human output labels the targets as:

    • text
      URL (explicit)
    • text
      Remote (configured)
      or
      text
      Remote (configured, inactive)
    • text
      Local loopback

    note

    If multiple gateways are reachable, it prints all of them. Multiple gateways are supported when you use isolated profiles/ports (e.g., a rescue bot), but most installs still run a single gateway.
    bash
    openclaw gateway probe openclaw gateway probe --json

    Remote over SSH (Mac app parity)

    The macOS app "Remote over SSH" mode uses a local port-forward so the remote gateway (which may be bound to loopback only) becomes reachable at

    text
    ws://127.0.0.1:<port>
    .

    CLI equivalent:

    bash
    openclaw gateway probe --ssh user@gateway-host
    `user@host` or `user@host:port` (port defaults to `22`). Identity file. Pick the first discovered gateway host as SSH target from the resolved discovery endpoint (`local.` plus the configured wide-area domain, if any). TXT-only hints are ignored.

    Config (optional, used as defaults):

    • text
      gateway.remote.sshTarget
    • text
      gateway.remote.sshIdentity

    text
    gateway call <method>

    Low-level RPC helper.

    bash
    openclaw gateway call status openclaw gateway call logs.tail --params '{"sinceMs": 60000}'
    JSON object string for params. Gateway WebSocket URL. Gateway token. Gateway password. Timeout budget. Mainly for agent-style RPCs that stream intermediate events before a final payload. Machine-readable JSON output.

    note

    `--params` must be valid JSON.

    Manage the Gateway service

    bash
    openclaw gateway install openclaw gateway start openclaw gateway stop openclaw gateway restart openclaw gateway uninstall

    Install with a wrapper

    Use

    text
    --wrapper
    when the managed service must start through another executable, for example a secrets manager shim or a run-as helper. The wrapper receives the normal Gateway args and is responsible for eventually exec'ing
    text
    openclaw
    or Node with those args.

    bash
    cat > ~/.local/bin/openclaw-doppler <<'EOF' #!/usr/bin/env bash set -euo pipefail exec doppler run --project my-project --config production -- openclaw "$@" EOF chmod +x ~/.local/bin/openclaw-doppler openclaw gateway install --wrapper ~/.local/bin/openclaw-doppler --force openclaw gateway restart

    You can also set the wrapper through the environment.

    text
    gateway install
    validates that the path is an executable file, writes the wrapper into service
    text
    ProgramArguments
    , and persists
    text
    OPENCLAW_WRAPPER
    in the service environment for later forced reinstalls, updates, and doctor repairs.

    bash
    OPENCLAW_WRAPPER="$HOME/.local/bin/openclaw-doppler" openclaw gateway install --force openclaw doctor

    To remove a persisted wrapper, clear

    text
    OPENCLAW_WRAPPER
    while reinstalling:

    bash
    OPENCLAW_WRAPPER= openclaw gateway install --force openclaw gateway restart

    Discover gateways (Bonjour)

    text
    gateway discover
    scans for Gateway beacons (
    text
    _openclaw-gw._tcp
    ).

    • Multicast DNS-SD:
      text
      local.
    • Unicast DNS-SD (Wide-Area Bonjour): choose a domain (example:
      text
      openclaw.internal.
      ) and set up split DNS + a DNS server; see Bonjour.

    Only gateways with Bonjour discovery enabled (default) advertise the beacon.

    Wide-Area discovery records include (TXT):

    • text
      role
      (gateway role hint)
    • text
      transport
      (transport hint, e.g.
      text
      gateway
      )
    • text
      gatewayPort
      (WebSocket port, usually
      text
      18789
      )
    • text
      sshPort
      (optional; clients default SSH targets to
      text
      22
      when it is absent)
    • text
      tailnetDns
      (MagicDNS hostname, when available)
    • text
      gatewayTls
      /
      text
      gatewayTlsSha256
      (TLS enabled + cert fingerprint)
    • text
      cliPath
      (remote-install hint written to the wide-area zone)

    text
    gateway discover

    bash
    openclaw gateway discover
    Per-command timeout (browse/resolve). Machine-readable output (also disables styling/spinner).

    Examples:

    bash
    openclaw gateway discover --timeout 4000 openclaw gateway discover --json | jq '.beacons[].wsUrl'

    note

    * The CLI scans `local.` plus the configured wide-area domain when one is enabled. * `wsUrl` in JSON output is derived from the resolved service endpoint, not from TXT-only hints such as `lanHost` or `tailnetDns`. * On `local.` mDNS, `sshPort` and `cliPath` are only broadcast when `discovery.mdns.mode` is `full`. Wide-area DNS-SD still writes `cliPath`; `sshPort` stays optional there too.

    Related

    • CLI reference
    • Gateway runbook

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine