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:04:33

    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.

    QMD memory engine

    QMD is a local-first search sidecar that runs alongside OpenClaw. It combines BM25, vector search, and reranking in a single binary, and can index content beyond your workspace memory files.

    What it adds over builtin

    • Reranking and query expansion for better recall.
    • Index extra directories -- project docs, team notes, anything on disk.
    • Index session transcripts -- recall earlier conversations.
    • Fully local -- runs with the optional node-llama-cpp runtime package and auto-downloads GGUF models.
    • Automatic fallback -- if QMD is unavailable, OpenClaw falls back to the builtin engine seamlessly.

    Getting started

    Prerequisites

    • Install QMD:
      text
      npm install -g @tobilu/qmd
      or
      text
      bun install -g @tobilu/qmd
    • SQLite build that allows extensions (
      text
      brew install sqlite
      on macOS).
    • QMD must be on the gateway's
      text
      PATH
      .
    • macOS and Linux work out of the box. Windows is best supported via WSL2.

    Enable

    json5
    { memory: { backend: "qmd", }, }

    OpenClaw creates a self-contained QMD home under

    text
    ~/.openclaw/agents/<agentId>/qmd/
    and manages the sidecar lifecycle automatically -- collections, updates, and embedding runs are handled for you. It prefers current QMD collection and MCP query shapes, but still falls back to alternate collection pattern flags and older MCP tool names when needed. Boot-time reconciliation also recreates stale managed collections back to their canonical patterns when an older QMD collection with the same name is still present.

    How the sidecar works

    • OpenClaw creates collections from your workspace memory files and any configured
      text
      memory.qmd.paths
      , then runs
      text
      qmd update
      when the QMD manager is opened and periodically afterward (default every 5 minutes). These refreshes run through QMD subprocesses, not an in-process filesystem crawl. Semantic modes also run
      text
      qmd embed
      .
    • The default workspace collection tracks
      text
      MEMORY.md
      plus the
      text
      memory/
      tree. Lowercase
      text
      memory.md
      is not indexed as a root memory file.
    • QMD's own scanner ignores hidden paths and common dependency/build directories such as
      text
      .git
      ,
      text
      .cache
      ,
      text
      node_modules
      ,
      text
      vendor
      ,
      text
      dist
      , and
      text
      build
      . Gateway startup does not initialize QMD by default, so cold boot avoids importing the memory runtime or creating the long-lived watcher before memory is first used.
    • If you want a gateway-start refresh anyway, set
      text
      memory.qmd.update.startup
      to
      text
      idle
      or
      text
      immediate
      . The opt-in startup refresh uses a one-shot QMD subprocess path instead of creating the full long-lived in-process watcher.
    • Searches use the configured
      text
      searchMode
      (default:
      text
      search
      ; also supports
      text
      vsearch
      and
      text
      query
      ).
      text
      search
      is BM25-only, so OpenClaw skips semantic vector readiness probes and embedding maintenance in that mode. If a mode fails, OpenClaw retries with
      text
      qmd query
      .
    • With QMD releases that advertise multi-collection filters, OpenClaw groups same-source collections into one QMD search invocation. Older QMD releases keep the compatible per-collection fallback.
    • If QMD fails entirely, OpenClaw falls back to the builtin SQLite engine. Repeated chat-turn attempts back off briefly after an open failure so a missing binary or broken sidecar dependency does not create a retry storm;
      text
      openclaw memory status
      and one-shot CLI probes still recheck QMD directly.

    info

    The first search may be slow -- QMD auto-downloads GGUF models (\~2 GB) for reranking and query expansion on the first `qmd query` run.

    Search performance and compatibility

    OpenClaw keeps the QMD search path compatible with both current and older QMD installs.

    On startup, OpenClaw checks the installed QMD help text once per manager. If the binary advertises support for multiple collection filters, OpenClaw searches all same-source collections with one command:

    bash
    qmd search "router notes" --json -n 10 -c memory-root-main -c memory-dir-main

    This avoids starting one QMD subprocess for every durable-memory collection. Session transcript collections stay in their own source group, so mixed

    text
    memory
    +
    text
    sessions
    searches still give the result diversifier input from both sources.

    Older QMD builds only accept one collection filter. When OpenClaw detects one of those builds, it keeps the compatibility path and searches each collection separately before merging and deduplicating results.

    To inspect the installed contract manually, run:

    bash
    qmd --help | grep -i collection

    Current QMD help says collection filters can target one or more collections. Older help usually describes a single collection.

    Model overrides

    QMD model environment variables pass through unchanged from the gateway process, so you can tune QMD globally without adding new OpenClaw config:

    bash
    export QMD_EMBED_MODEL="hf:Qwen/Qwen3-Embedding-0.6B-GGUF/Qwen3-Embedding-0.6B-Q8_0.gguf" export QMD_RERANK_MODEL="/absolute/path/to/reranker.gguf" export QMD_GENERATE_MODEL="/absolute/path/to/generator.gguf"

    After changing the embedding model, rerun embeddings so the index matches the new vector space.

    Indexing extra paths

    Point QMD at additional directories to make them searchable:

    json5
    { memory: { backend: "qmd", qmd: { paths: [{ name: "docs", path: "~/notes", pattern: "**/*.md" }], }, }, }

    Snippets from extra paths appear as

    text
    qmd/<collection>/<relative-path>
    in search results.
    text
    memory_get
    understands this prefix and reads from the correct collection root.

    Indexing session transcripts

    Enable session indexing to recall earlier conversations:

    json5
    { memory: { backend: "qmd", qmd: { sessions: { enabled: true }, }, }, }

    Transcripts are exported as sanitized User/Assistant turns into a dedicated QMD collection under

    text
    ~/.openclaw/agents/<id>/qmd/sessions/
    .

    Search scope

    By default, QMD search results are surfaced in direct and channel sessions (not groups). Configure

    text
    memory.qmd.scope
    to change this:

    json5
    { memory: { qmd: { scope: { default: "deny", rules: [{ action: "allow", match: { chatType: "direct" } }], }, }, }, }

    When scope denies a search, OpenClaw logs a warning with the derived channel and chat type so empty results are easier to debug.

    Citations

    When

    text
    memory.citations
    is
    text
    auto
    or
    text
    on
    , search snippets include a
    text
    Source: <path#line>
    footer. Set
    text
    memory.citations = "off"
    to omit the footer while still passing the path to the agent internally.

    When to use

    Choose QMD when you need:

    • Reranking for higher-quality results.
    • To search project docs or notes outside the workspace.
    • To recall past session conversations.
    • Fully local search with no API keys.

    For simpler setups, the builtin engine works well with no extra dependencies.

    Troubleshooting

    QMD not found? Ensure the binary is on the gateway's

    text
    PATH
    . If OpenClaw runs as a service, create a symlink:
    text
    sudo ln -s ~/.bun/bin/qmd /usr/local/bin/qmd
    .

    If

    text
    qmd --version
    works in your shell but OpenClaw still reports
    text
    spawn qmd ENOENT
    , the gateway process likely has a different
    text
    PATH
    than your interactive shell. Pin the binary explicitly:

    json5
    { memory: { backend: "qmd", qmd: { command: "/absolute/path/to/qmd", }, }, }

    Use

    text
    command -v qmd
    in the environment where QMD is installed, then recheck with
    text
    openclaw memory status --deep
    .

    First search very slow? QMD downloads GGUF models on first use. Pre-warm with

    text
    qmd query "test"
    using the same XDG dirs OpenClaw uses.

    Many QMD subprocesses during search? Update QMD if possible. OpenClaw uses one process for same-source multi-collection searches only when the installed QMD advertises support for multiple

    text
    -c
    filters; otherwise it keeps the older per-collection fallback for correctness.

    BM25-only QMD still trying to build llama.cpp? Set

    text
    memory.qmd.searchMode = "search"
    . OpenClaw treats that mode as lexical-only, does not run QMD vector status probes or embedding maintenance, and leaves semantic readiness checks to
    text
    vsearch
    or
    text
    query
    setups.

    Search times out? Increase

    text
    memory.qmd.limits.timeoutMs
    (default: 4000ms). Set to
    text
    120000
    for slower hardware.

    Empty results in group chats? Check

    text
    memory.qmd.scope
    -- the default only allows direct and channel sessions.

    Root memory search suddenly got too broad? Restart the gateway or wait for the next startup reconciliation. OpenClaw recreates stale managed collections back to canonical

    text
    MEMORY.md
    and
    text
    memory/
    patterns when it detects a same-name conflict.

    Workspace-visible temp repos causing

    text
    ENAMETOOLONG
    or broken indexing? QMD traversal currently follows the underlying QMD scanner behavior rather than OpenClaw's builtin symlink rules. Keep temporary monorepo checkouts under hidden directories like
    text
    .tmp/
    or outside indexed QMD roots until QMD exposes cycle-safe traversal or explicit exclusion controls.

    Configuration

    For the full config surface (

    text
    memory.qmd.*
    ), search modes, update intervals, scope rules, and all other knobs, see the Memory configuration reference.

    Related

    • Memory overview
    • Builtin memory engine
    • Honcho memory

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine