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:02:52

    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.

    macOS app

    The macOS app is the menu‑bar companion for OpenClaw. It owns permissions, manages/attaches to the Gateway locally (launchd or manual), and exposes macOS capabilities to the agent as a node.

    What it does

    • Shows native notifications and status in the menu bar.
    • Owns TCC prompts (Notifications, Accessibility, Screen Recording, Microphone, Speech Recognition, Automation/AppleScript).
    • Runs or connects to the Gateway (local or remote).
    • Exposes macOS‑only tools (Canvas, Camera, Screen Recording,
      text
      system.run
      ).
    • Starts the local node host service in remote mode (launchd), and stops it in local mode.
    • Optionally hosts PeekabooBridge for UI automation.
    • Installs the global CLI (
      text
      openclaw
      ) on request via npm, pnpm, or bun (the app prefers npm, then pnpm, then bun; Node remains the recommended Gateway runtime).

    Local vs remote mode

    • Local (default): the app attaches to a running local Gateway if present; otherwise it enables the launchd service via
      text
      openclaw gateway install
      .
    • Remote: the app connects to a Gateway over SSH/Tailscale and never starts a local process. The app starts the local node host service so the remote Gateway can reach this Mac. The app does not spawn the Gateway as a child process. Gateway discovery now prefers Tailscale MagicDNS names over raw tailnet IPs, so the Mac app recovers more reliably when tailnet IPs change.

    Launchd control

    The app manages a per‑user LaunchAgent labeled

    text
    ai.openclaw.gateway
    (or
    text
    ai.openclaw.<profile>
    when using
    text
    --profile
    /
    text
    OPENCLAW_PROFILE
    ; legacy
    text
    com.openclaw.*
    still unloads).

    bash
    launchctl kickstart -k gui/$UID/ai.openclaw.gateway launchctl bootout gui/$UID/ai.openclaw.gateway

    Replace the label with

    text
    ai.openclaw.<profile>
    when running a named profile.

    If the LaunchAgent isn’t installed, enable it from the app or run

    text
    openclaw gateway install
    .

    Node capabilities (mac)

    The macOS app presents itself as a node. Common commands:

    • Canvas:
      text
      canvas.present
      ,
      text
      canvas.navigate
      ,
      text
      canvas.eval
      ,
      text
      canvas.snapshot
      ,
      text
      canvas.a2ui.*
    • Camera:
      text
      camera.snap
      ,
      text
      camera.clip
    • Screen:
      text
      screen.snapshot
      ,
      text
      screen.record
    • System:
      text
      system.run
      ,
      text
      system.notify

    The node reports a

    text
    permissions
    map so agents can decide what’s allowed.

    Node service + app IPC:

    • When the headless node host service is running (remote mode), it connects to the Gateway WS as a node.
    • text
      system.run
      executes in the macOS app (UI/TCC context) over a local Unix socket; prompts + output stay in-app.

    Diagram (SCI):

    text
    Gateway -> Node Service (WS) | IPC (UDS + token + HMAC + TTL) v Mac App (UI + TCC + system.run)

    Exec approvals (system.run)

    text
    system.run
    is controlled by Exec approvals in the macOS app (Settings → Exec approvals). Security + ask + allowlist are stored locally on the Mac in:

    text
    ~/.openclaw/exec-approvals.json

    Example:

    json
    { "version": 1, "defaults": { "security": "deny", "ask": "on-miss" }, "agents": { "main": { "security": "allowlist", "ask": "on-miss", "allowlist": [{ "pattern": "/opt/homebrew/bin/rg" }] } } }

    Notes:

    • text
      allowlist
      entries are glob patterns for resolved binary paths, or bare command names for PATH-invoked commands.
    • Raw shell command text that contains shell control or expansion syntax (
      text
      &&
      ,
      text
      ||
      ,
      text
      ;
      ,
      text
      |
      ,
      text
      `
      ,
      text
      $
      ,
      text
      <
      ,
      text
      >
      ,
      text
      (
      ,
      text
      )
      ) is treated as an allowlist miss and requires explicit approval (or allowlisting the shell binary).
    • Choosing “Always Allow” in the prompt adds that command to the allowlist.
    • text
      system.run
      environment overrides are filtered (drops
      text
      PATH
      ,
      text
      DYLD_*
      ,
      text
      LD_*
      ,
      text
      NODE_OPTIONS
      ,
      text
      PYTHON*
      ,
      text
      PERL*
      ,
      text
      RUBYOPT
      ,
      text
      SHELLOPTS
      ,
      text
      PS4
      ) and then merged with the app’s environment.
    • For shell wrappers (
      text
      bash|sh|zsh ... -c/-lc
      ), request-scoped environment overrides are reduced to a small explicit allowlist (
      text
      TERM
      ,
      text
      LANG
      ,
      text
      LC_*
      ,
      text
      COLORTERM
      ,
      text
      NO_COLOR
      ,
      text
      FORCE_COLOR
      ).
    • For allow-always decisions in allowlist mode, known dispatch wrappers (
      text
      env
      ,
      text
      nice
      ,
      text
      nohup
      ,
      text
      stdbuf
      ,
      text
      timeout
      ) persist inner executable paths instead of wrapper paths. If unwrapping is not safe, no allowlist entry is persisted automatically.

    Deep links

    The app registers the

    text
    openclaw://
    URL scheme for local actions.

    text
    openclaw://agent

    Triggers a Gateway

    text
    agent
    request.

    bash
    open 'openclaw://agent?message=Hello%20from%20deep%20link'

    Query parameters:

    • text
      message
      (required)
    • text
      sessionKey
      (optional)
    • text
      thinking
      (optional)
    • text
      deliver
      /
      text
      to
      /
      text
      channel
      (optional)
    • text
      timeoutSeconds
      (optional)
    • text
      key
      (optional unattended mode key)

    Safety:

    • Without
      text
      key
      , the app prompts for confirmation.
    • Without
      text
      key
      , the app enforces a short message limit for the confirmation prompt and ignores
      text
      deliver
      /
      text
      to
      /
      text
      channel
      .
    • With a valid
      text
      key
      , the run is unattended (intended for personal automations).

    Onboarding flow (typical)

    1. Install and launch OpenClaw.app.
    2. Complete the permissions checklist (TCC prompts).
    3. Ensure Local mode is active and the Gateway is running.
    4. Install the CLI if you want terminal access.

    State dir placement (macOS)

    Avoid putting your OpenClaw state dir in iCloud or other cloud-synced folders. Sync-backed paths can add latency and occasionally cause file-lock/sync races for sessions and credentials.

    Prefer a local non-synced state path such as:

    bash
    OPENCLAW_STATE_DIR=~/.openclaw

    If

    text
    openclaw doctor
    detects state under:

    • text
      ~/Library/Mobile Documents/com~apple~CloudDocs/...
    • text
      ~/Library/CloudStorage/...

    it will warn and recommend moving back to a local path.

    Build & dev workflow (native)

    • text
      cd apps/macos && swift build
    • text
      swift run OpenClaw
      (or Xcode)
    • Package app:
      text
      scripts/package-mac-app.sh

    Debug gateway connectivity (macOS CLI)

    Use the debug CLI to exercise the same Gateway WebSocket handshake and discovery logic that the macOS app uses, without launching the app.

    bash
    cd apps/macos swift run openclaw-mac connect --json swift run openclaw-mac discover --timeout 3000 --json

    Connect options:

    • text
      --url <ws://host:port>
      : override config
    • text
      --mode <local|remote>
      : resolve from config (default: config or local)
    • text
      --probe
      : force a fresh health probe
    • text
      --timeout <ms>
      : request timeout (default:
      text
      15000
      )
    • text
      --json
      : structured output for diffing

    Discovery options:

    • text
      --include-local
      : include gateways that would be filtered as “local”
    • text
      --timeout <ms>
      : overall discovery window (default:
      text
      2000
      )
    • text
      --json
      : structured output for diffing

    tip

    Compare against `openclaw gateway discover --json` to see whether the macOS app's discovery pipeline (`local.` plus the configured wide-area domain, with wide-area and Tailscale Serve fallbacks) differs from the Node CLI's `dns-sd` based discovery.

    Remote connection plumbing (SSH tunnels)

    When the macOS app runs in Remote mode, it opens an SSH tunnel so local UI components can talk to a remote Gateway as if it were on localhost.

    Control tunnel (Gateway WebSocket port)

    • Purpose: health checks, status, Web Chat, config, and other control-plane calls.
    • Local port: the Gateway port (default
      text
      18789
      ), always stable.
    • Remote port: the same Gateway port on the remote host.
    • Behavior: no random local port; the app reuses an existing healthy tunnel or restarts it if needed.
    • SSH shape:
      text
      ssh -N -L <local>:127.0.0.1:<remote>
      with BatchMode + ExitOnForwardFailure + keepalive options.
    • IP reporting: the SSH tunnel uses loopback, so the gateway will see the node IP as
      text
      127.0.0.1
      . Use Direct (ws/wss) transport if you want the real client IP to appear (see macOS remote access).

    For setup steps, see macOS remote access. For protocol details, see Gateway protocol.

    Related docs

    • Gateway runbook
    • Gateway (macOS)
    • macOS permissions
    • Canvas

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine