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:00:29

    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.

    Browser (OpenClaw-managed)

    OpenClaw can run a dedicated Chrome/Brave/Edge/Chromium profile that the agent controls. It is isolated from your personal browser and is managed through a small local control service inside the Gateway (loopback only).

    Beginner view:

    • Think of it as a separate, agent-only browser.
    • The
      text
      openclaw
      profile does not touch your personal browser profile.
    • The agent can open tabs, read pages, click, and type in a safe lane.
    • The built-in
      text
      user
      profile attaches to your real signed-in Chrome session via Chrome MCP.

    What you get

    • A separate browser profile named openclaw (orange accent by default).
    • Deterministic tab control (list/open/focus/close).
    • Agent actions (click/type/drag/select), snapshots, screenshots, PDFs.
    • A bundled
      text
      browser-automation
      skill that teaches agents the snapshot, stable-tab, stale-ref, and manual-blocker recovery loop when the browser plugin is enabled.
    • Optional multi-profile support (
      text
      openclaw
      ,
      text
      work
      ,
      text
      remote
      , ...).

    This browser is not your daily driver. It is a safe, isolated surface for agent automation and verification.

    Quick start

    bash
    openclaw browser --browser-profile openclaw doctor openclaw browser --browser-profile openclaw doctor --deep openclaw browser --browser-profile openclaw status openclaw browser --browser-profile openclaw start openclaw browser --browser-profile openclaw open https://example.com openclaw browser --browser-profile openclaw snapshot

    If you get “Browser disabled”, enable it in config (see below) and restart the Gateway.

    If

    text
    openclaw browser
    is missing entirely, or the agent says the browser tool is unavailable, jump to Missing browser command or tool.

    Plugin control

    The default

    text
    browser
    tool is a bundled plugin. Disable it to replace it with another plugin that registers the same
    text
    browser
    tool name:

    json5
    { plugins: { entries: { browser: { enabled: false, }, }, }, }

    Defaults need both

    text
    plugins.entries.browser.enabled
    and
    text
    browser.enabled=true
    . Disabling only the plugin removes the
    text
    openclaw browser
    CLI,
    text
    browser.request
    gateway method, agent tool, and control service as one unit; your
    text
    browser.*
    config stays intact for a replacement.

    Browser config changes require a Gateway restart so the plugin can re-register its service.

    Agent guidance

    Tool-profile note:

    text
    tools.profile: "coding"
    includes
    text
    web_search
    and
    text
    web_fetch
    , but it does not include the full
    text
    browser
    tool. If the agent or a spawned sub-agent should use browser automation, add browser at the profile stage:

    json5
    { tools: { profile: "coding", alsoAllow: ["browser"], }, }

    For a single agent, use

    text
    agents.list[].tools.alsoAllow: ["browser"]
    .
    text
    tools.subagents.tools.allow: ["browser"]
    alone is not enough because sub-agent policy is applied after profile filtering.

    The browser plugin ships two levels of agent guidance:

    • The
      text
      browser
      tool description carries the compact always-on contract: pick the right profile, keep refs on the same tab, use
      text
      tabId
      /labels for tab targeting, and load the browser skill for multi-step work.
    • The bundled
      text
      browser-automation
      skill carries the longer operating loop: check status/tabs first, label task tabs, snapshot before acting, resnapshot after UI changes, recover stale refs once, and report login/2FA/captcha or camera/microphone blockers as manual action instead of guessing.

    Plugin-bundled skills are listed in the agent's available skills when the plugin is enabled. The full skill instructions are loaded on demand, so routine turns do not pay the full token cost.

    Missing browser command or tool

    If

    text
    openclaw browser
    is unknown after an upgrade,
    text
    browser.request
    is missing, or the agent reports the browser tool as unavailable, the usual cause is a
    text
    plugins.allow
    list that omits
    text
    browser
    and no root
    text
    browser
    config block exists. Add it:

    json5
    { plugins: { allow: ["telegram", "browser"], }, }

    An explicit root

    text
    browser
    block, for example
    text
    browser.enabled=true
    or
    text
    browser.profiles.<name>
    , activates the bundled browser plugin even under a restrictive
    text
    plugins.allow
    , matching channel config behavior.
    text
    plugins.entries.browser.enabled=true
    and
    text
    tools.alsoAllow: ["browser"]
    do not substitute for allowlist membership by themselves. Removing
    text
    plugins.allow
    entirely also restores the default.

    Profiles:
    text
    openclaw
    vs
    text
    user

    • text
      openclaw
      : managed, isolated browser (no extension required).
    • text
      user
      : built-in Chrome MCP attach profile for your real signed-in Chrome session.

    For agent browser tool calls:

    • Default: use the isolated
      text
      openclaw
      browser.
    • Prefer
      text
      profile="user"
      when existing logged-in sessions matter and the user is at the computer to click/approve any attach prompt.
    • text
      profile
      is the explicit override when you want a specific browser mode.

    Set

    text
    browser.defaultProfile: "openclaw"
    if you want managed mode by default.

    Configuration

    Browser settings live in

    text
    ~/.openclaw/openclaw.json
    .

    json5
    { browser: { enabled: true, // default: true ssrfPolicy: { // dangerouslyAllowPrivateNetwork: true, // opt in only for trusted private-network access // allowPrivateNetwork: true, // legacy alias // hostnameAllowlist: ["*.example.com", "example.com"], // allowedHostnames: ["localhost"], }, // cdpUrl: "http://127.0.0.1:18792", // legacy single-profile override remoteCdpTimeoutMs: 1500, // remote CDP HTTP timeout (ms) remoteCdpHandshakeTimeoutMs: 3000, // remote CDP WebSocket handshake timeout (ms) localLaunchTimeoutMs: 15000, // local managed Chrome discovery timeout (ms) localCdpReadyTimeoutMs: 8000, // local managed post-launch CDP readiness timeout (ms) actionTimeoutMs: 60000, // default browser act timeout (ms) tabCleanup: { enabled: true, // default: true idleMinutes: 120, // set 0 to disable idle cleanup maxTabsPerSession: 8, // set 0 to disable the per-session cap sweepMinutes: 5, }, defaultProfile: "openclaw", color: "#FF4500", headless: false, noSandbox: false, attachOnly: false, executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser", profiles: { openclaw: { cdpPort: 18800, color: "#FF4500" }, work: { cdpPort: 18801, color: "#0066CC", headless: true, executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", }, user: { driver: "existing-session", attachOnly: true, color: "#00AA00", }, brave: { driver: "existing-session", attachOnly: true, userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser", color: "#FB542B", }, remote: { cdpUrl: "http://10.0.0.42:9222", color: "#00AA00" }, }, }, }

    Use Brave or another Chromium-based browser

    If your system default browser is Chromium-based (Chrome/Brave/Edge/etc), OpenClaw uses it automatically. Set

    text
    browser.executablePath
    to override auto-detection. Top-level and per-profile
    text
    executablePath
    values accept
    text
    ~
    for your OS home directory:

    bash
    openclaw config set browser.executablePath "/usr/bin/google-chrome" openclaw config set browser.profiles.work.executablePath "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"

    Or set it in config, per platform:

    ```json5} { browser: { executablePath: "/Applications/Brave Browser.app/Contents/MacOS/Brave Browser", }, } ``` ```json5} { browser: { executablePath: "C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe", }, } ``` ```json5} { browser: { executablePath: "/usr/bin/brave-browser", }, } ```

    Per-profile

    text
    executablePath
    only affects local managed profiles that OpenClaw launches.
    text
    existing-session
    profiles attach to an already-running browser instead, and remote CDP profiles use the browser behind
    text
    cdpUrl
    .

    Local vs remote control

    • Local control (default): the Gateway starts the loopback control service and can launch a local browser.
    • Remote control (node host): run a node host on the machine that has the browser; the Gateway proxies browser actions to it.
    • Remote CDP: set
      text
      browser.profiles.<name>.cdpUrl
      (or
      text
      browser.cdpUrl
      ) to attach to a remote Chromium-based browser. In this case, OpenClaw will not launch a local browser.
    • For externally managed CDP services on loopback (for example Browserless in Docker published to
      text
      127.0.0.1
      ), also set
      text
      attachOnly: true
      . Loopback CDP without
      text
      attachOnly
      is treated as a local OpenClaw-managed browser profile.
    • text
      headless
      only affects local managed profiles that OpenClaw launches. It does not restart or change existing-session or remote CDP browsers.
    • text
      executablePath
      follows the same local managed profile rule. Changing it on a running local managed profile marks that profile for restart/reconcile so the next launch uses the new binary.

    Stopping behavior differs by profile mode:

    • local managed profiles:
      text
      openclaw browser stop
      stops the browser process that OpenClaw launched
    • attach-only and remote CDP profiles:
      text
      openclaw browser stop
      closes the active control session and releases Playwright/CDP emulation overrides (viewport, color scheme, locale, timezone, offline mode, and similar state), even though no browser process was launched by OpenClaw

    Remote CDP URLs can include auth:

    • Query tokens (e.g.,
      text
      https://provider.example?token=<token>
      )
    • HTTP Basic auth (e.g.,
      text
      https://user:pass@provider.example
      )

    OpenClaw preserves the auth when calling

    text
    /json/*
    endpoints and when connecting to the CDP WebSocket. Prefer environment variables or secrets managers for tokens instead of committing them to config files.

    Node browser proxy (zero-config default)

    If you run a node host on the machine that has your browser, OpenClaw can auto-route browser tool calls to that node without any extra browser config. This is the default path for remote gateways.

    Notes:

    • The node host exposes its local browser control server via a proxy command.
    • Profiles come from the node’s own
      text
      browser.profiles
      config (same as local).
    • text
      nodeHost.browserProxy.allowProfiles
      is optional. Leave it empty for the legacy/default behavior: all configured profiles remain reachable through the proxy, including profile create/delete routes.
    • If you set
      text
      nodeHost.browserProxy.allowProfiles
      , OpenClaw treats it as a least-privilege boundary: only allowlisted profiles can be targeted, and persistent profile create/delete routes are blocked on the proxy surface.
    • Disable if you don’t want it:
      • On the node:
        text
        nodeHost.browserProxy.enabled=false
      • On the gateway:
        text
        gateway.nodes.browser.mode="off"

    Browserless (hosted remote CDP)

    Browserless is a hosted Chromium service that exposes CDP connection URLs over HTTPS and WebSocket. OpenClaw can use either form, but for a remote browser profile the simplest option is the direct WebSocket URL from Browserless' connection docs.

    Example:

    json5
    { browser: { enabled: true, defaultProfile: "browserless", remoteCdpTimeoutMs: 2000, remoteCdpHandshakeTimeoutMs: 4000, profiles: { browserless: { cdpUrl: "wss://production-sfo.browserless.io?token=<BROWSERLESS_API_KEY>", color: "#00AA00", }, }, }, }

    Notes:

    • Replace
      text
      <BROWSERLESS_API_KEY>
      with your real Browserless token.
    • Choose the region endpoint that matches your Browserless account (see their docs).
    • If Browserless gives you an HTTPS base URL, you can either convert it to
      text
      wss://
      for a direct CDP connection or keep the HTTPS URL and let OpenClaw discover
      text
      /json/version
      .

    Browserless Docker on the same host

    When Browserless is self-hosted in Docker and OpenClaw runs on the host, treat Browserless as an externally managed CDP service:

    json5
    { browser: { enabled: true, defaultProfile: "browserless", profiles: { browserless: { cdpUrl: "ws://127.0.0.1:3000", attachOnly: true, color: "#00AA00", }, }, }, }

    The address in

    text
    browser.profiles.browserless.cdpUrl
    must be reachable from the OpenClaw process. Browserless must also advertise a matching reachable endpoint; set Browserless
    text
    EXTERNAL
    to that same public-to-OpenClaw WebSocket base, such as
    text
    ws://127.0.0.1:3000
    ,
    text
    ws://browserless:3000
    , or a stable private Docker network address. If
    text
    /json/version
    returns
    text
    webSocketDebuggerUrl
    pointing at an address OpenClaw cannot reach, CDP HTTP can look healthy while the WebSocket attach still fails.

    Do not leave

    text
    attachOnly
    unset for a loopback Browserless profile. Without
    text
    attachOnly
    , OpenClaw treats the loopback port as a local managed browser profile and may report that the port is in use but not owned by OpenClaw.

    Direct WebSocket CDP providers

    Some hosted browser services expose a direct WebSocket endpoint rather than the standard HTTP-based CDP discovery (

    text
    /json/version
    ). OpenClaw accepts three CDP URL shapes and picks the right connection strategy automatically:

    • HTTP(S) discovery —
      text
      http://host[:port]
      or
      text
      https://host[:port]
      . OpenClaw calls
      text
      /json/version
      to discover the WebSocket debugger URL, then connects. No WebSocket fallback.
    • Direct WebSocket endpoints —
      text
      ws://host[:port]/devtools/<kind>/<id>
      or
      text
      wss://...
      with a
      text
      /devtools/browser|page|worker|shared_worker|service_worker/<id>
      path. OpenClaw connects directly via a WebSocket handshake and skips
      text
      /json/version
      entirely.
    • Bare WebSocket roots —
      text
      ws://host[:port]
      or
      text
      wss://host[:port]
      with no
      text
      /devtools/...
      path (e.g. Browserless, Browserbase). OpenClaw tries HTTP
      text
      /json/version
      discovery first (normalising the scheme to
      text
      http
      /
      text
      https
      ); if discovery returns a
      text
      webSocketDebuggerUrl
      it is used, otherwise OpenClaw falls back to a direct WebSocket handshake at the bare root. If the advertised WebSocket endpoint rejects the CDP handshake but the configured bare root accepts it, OpenClaw falls back to that root as well. This lets a bare
      text
      ws://
      pointed at a local Chrome still connect, since Chrome only accepts WebSocket upgrades on the specific per-target path from
      text
      /json/version
      , while hosted providers can still use their root WebSocket endpoint when their discovery endpoint advertises a short-lived URL that is not suitable for Playwright CDP.

    Browserbase

    Browserbase is a cloud platform for running headless browsers with built-in CAPTCHA solving, stealth mode, and residential proxies.

    json5
    { browser: { enabled: true, defaultProfile: "browserbase", remoteCdpTimeoutMs: 3000, remoteCdpHandshakeTimeoutMs: 5000, profiles: { browserbase: { cdpUrl: "wss://connect.browserbase.com?apiKey=<BROWSERBASE_API_KEY>", color: "#F97316", }, }, }, }

    Notes:

    • Sign up and copy your API Key from the Overview dashboard.
    • Replace
      text
      <BROWSERBASE_API_KEY>
      with your real Browserbase API key.
    • Browserbase auto-creates a browser session on WebSocket connect, so no manual session creation step is needed.
    • The free tier allows one concurrent session and one browser hour per month. See pricing for paid plan limits.
    • See the Browserbase docs for full API reference, SDK guides, and integration examples.

    Security

    Key ideas:

    • Browser control is loopback-only; access flows through the Gateway’s auth or node pairing.
    • The standalone loopback browser HTTP API uses shared-secret auth only: gateway token bearer auth,
      text
      x-openclaw-password
      , or HTTP Basic auth with the configured gateway password.
    • Tailscale Serve identity headers and
      text
      gateway.auth.mode: "trusted-proxy"
      do not authenticate this standalone loopback browser API.
    • If browser control is enabled and no shared-secret auth is configured, OpenClaw auto-generates
      text
      gateway.auth.token
      on startup and persists it to config.
    • OpenClaw does not auto-generate that token when
      text
      gateway.auth.mode
      is already
      text
      password
      ,
      text
      none
      , or
      text
      trusted-proxy
      .
    • Keep the Gateway and any node hosts on a private network (Tailscale); avoid public exposure.
    • Treat remote CDP URLs/tokens as secrets; prefer env vars or a secrets manager.

    Remote CDP tips:

    • Prefer encrypted endpoints (HTTPS or WSS) and short-lived tokens where possible.
    • Avoid embedding long-lived tokens directly in config files.

    Profiles (multi-browser)

    OpenClaw supports multiple named profiles (routing configs). Profiles can be:

    • openclaw-managed: a dedicated Chromium-based browser instance with its own user data directory + CDP port
    • remote: an explicit CDP URL (Chromium-based browser running elsewhere)
    • existing session: your existing Chrome profile via Chrome DevTools MCP auto-connect

    Defaults:

    • The
      text
      openclaw
      profile is auto-created if missing.
    • The
      text
      user
      profile is built-in for Chrome MCP existing-session attach.
    • Existing-session profiles are opt-in beyond
      text
      user
      ; create them with
      text
      --driver existing-session
      .
    • Local CDP ports allocate from 18800–18899 by default.
    • Deleting a profile moves its local data directory to Trash.

    All control endpoints accept

    text
    ?profile=<name>
    ; the CLI uses
    text
    --browser-profile
    .

    Existing session via Chrome DevTools MCP

    OpenClaw can also attach to a running Chromium-based browser profile through the official Chrome DevTools MCP server. This reuses the tabs and login state already open in that browser profile.

    Official background and setup references:

    • Chrome for Developers: Use Chrome DevTools MCP with your browser session
    • Chrome DevTools MCP README

    Built-in profile:

    • text
      user

    Optional: create your own custom existing-session profile if you want a different name, color, or browser data directory.

    Default behavior:

    • The built-in
      text
      user
      profile uses Chrome MCP auto-connect, which targets the default local Google Chrome profile.

    Use

    text
    userDataDir
    for Brave, Edge, Chromium, or a non-default Chrome profile.
    text
    ~
    expands to your OS home directory:

    json5
    { browser: { profiles: { brave: { driver: "existing-session", attachOnly: true, userDataDir: "~/Library/Application Support/BraveSoftware/Brave-Browser", color: "#FB542B", }, }, }, }

    Then in the matching browser:

    1. Open that browser's inspect page for remote debugging.
    2. Enable remote debugging.
    3. Keep the browser running and approve the connection prompt when OpenClaw attaches.

    Common inspect pages:

    • Chrome:
      text
      chrome://inspect/#remote-debugging
    • Brave:
      text
      brave://inspect/#remote-debugging
    • Edge:
      text
      edge://inspect/#remote-debugging

    Live attach smoke test:

    bash
    openclaw browser --browser-profile user start openclaw browser --browser-profile user status openclaw browser --browser-profile user tabs openclaw browser --browser-profile user snapshot --format ai

    What success looks like:

    • text
      status
      shows
      text
      driver: existing-session
    • text
      status
      shows
      text
      transport: chrome-mcp
    • text
      status
      shows
      text
      running: true
    • text
      tabs
      lists your already-open browser tabs
    • text
      snapshot
      returns refs from the selected live tab

    What to check if attach does not work:

    • the target Chromium-based browser is version
      text
      144+
    • remote debugging is enabled in that browser's inspect page
    • the browser showed and you accepted the attach consent prompt
    • text
      openclaw doctor
      migrates old extension-based browser config and checks that Chrome is installed locally for default auto-connect profiles, but it cannot enable browser-side remote debugging for you

    Agent use:

    • Use
      text
      profile="user"
      when you need the user’s logged-in browser state.
    • If you use a custom existing-session profile, pass that explicit profile name.
    • Only choose this mode when the user is at the computer to approve the attach prompt.
    • the Gateway or node host can spawn
      text
      npx chrome-devtools-mcp@latest --autoConnect

    Notes:

    • This path is higher-risk than the isolated
      text
      openclaw
      profile because it can act inside your signed-in browser session.
    • OpenClaw does not launch the browser for this driver; it only attaches.
    • OpenClaw uses the official Chrome DevTools MCP
      text
      --autoConnect
      flow here. If
      text
      userDataDir
      is set, it is passed through to target that user data directory.
    • Existing-session can attach on the selected host or through a connected browser node. If Chrome lives elsewhere and no browser node is connected, use remote CDP or a node host instead.

    Custom Chrome MCP launch

    Override the spawned Chrome DevTools MCP server per profile when the default

    text
    npx chrome-devtools-mcp@latest
    flow is not what you want (offline hosts, pinned versions, vendored binaries):

    FieldWhat it does
    text
    mcpCommand
    Executable to spawn instead of
    text
    npx
    . Resolved as-is; absolute paths are honored.
    text
    mcpArgs
    Argument array passed verbatim to
    text
    mcpCommand
    . Replaces the default
    text
    chrome-devtools-mcp@latest --autoConnect
    arguments.

    When

    text
    cdpUrl
    is set on an existing-session profile, OpenClaw skips
    text
    --autoConnect
    and forwards the endpoint to Chrome MCP automatically:

    • text
      http(s)://...
      →
      text
      --browserUrl <url>
      (DevTools HTTP discovery endpoint).
    • text
      ws(s)://...
      →
      text
      --wsEndpoint <url>
      (direct CDP WebSocket).

    Endpoint flags and

    text
    userDataDir
    cannot be combined: when
    text
    cdpUrl
    is set,
    text
    userDataDir
    is ignored for Chrome MCP launch, since Chrome MCP attaches to the running browser behind the endpoint rather than opening a profile directory.

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine