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.

    Hooks

    text
    openclaw hooks

    Manage agent hooks (event-driven automations for commands like

    text
    /new
    ,
    text
    /reset
    , and gateway startup).

    Running

    text
    openclaw hooks
    with no subcommand is equivalent to
    text
    openclaw hooks list
    .

    Related:

    • Hooks: Hooks
    • Plugin hooks: Plugin hooks

    List all hooks

    bash
    openclaw hooks list

    List all discovered hooks from workspace, managed, extra, and bundled directories. Gateway startup does not load internal hook handlers until at least one internal hook is configured.

    Options:

    • text
      --eligible
      : Show only eligible hooks (requirements met)
    • text
      --json
      : Output as JSON
    • text
      -v, --verbose
      : Show detailed information including missing requirements

    Example output:

    text
    Hooks (4/4 ready) Ready: 🚀 boot-md ✓ - Run BOOT.md on gateway startup 📎 bootstrap-extra-files ✓ - Inject extra workspace bootstrap files during agent bootstrap 📝 command-logger ✓ - Log all command events to a centralized audit file 💾 session-memory ✓ - Save session context to memory when /new or /reset command is issued

    Example (verbose):

    bash
    openclaw hooks list --verbose

    Shows missing requirements for ineligible hooks.

    Example (JSON):

    bash
    openclaw hooks list --json

    Returns structured JSON for programmatic use.

    Get hook information

    bash
    openclaw hooks info <name>

    Show detailed information about a specific hook.

    Arguments:

    • text
      <name>
      : Hook name or hook key (e.g.,
      text
      session-memory
      )

    Options:

    • text
      --json
      : Output as JSON

    Example:

    bash
    openclaw hooks info session-memory

    Output:

    text
    💾 session-memory ✓ Ready Save session context to memory when /new or /reset command is issued Details: Source: openclaw-bundled Path: /path/to/openclaw/hooks/bundled/session-memory/HOOK.md Handler: /path/to/openclaw/hooks/bundled/session-memory/handler.ts Homepage: https://docs.openclaw.ai/automation/hooks#session-memory Events: command:new, command:reset Requirements: Config: ✓ workspace.dir

    Check hooks eligibility

    bash
    openclaw hooks check

    Show summary of hook eligibility status (how many are ready vs. not ready).

    Options:

    • text
      --json
      : Output as JSON

    Example output:

    text
    Hooks Status Total hooks: 4 Ready: 4 Not ready: 0

    Enable a Hook

    bash
    openclaw hooks enable <name>

    Enable a specific hook by adding it to your config (

    text
    ~/.openclaw/openclaw.json
    by default).

    Note: Workspace hooks are disabled by default until enabled here or in config. Hooks managed by plugins show

    text
    plugin:<id>
    in
    text
    openclaw hooks list
    and can’t be enabled/disabled here. Enable/disable the plugin instead.

    Arguments:

    • text
      <name>
      : Hook name (e.g.,
      text
      session-memory
      )

    Example:

    bash
    openclaw hooks enable session-memory

    Output:

    text
    ✓ Enabled hook: 💾 session-memory

    What it does:

    • Checks if hook exists and is eligible
    • Updates
      text
      hooks.internal.entries.<name>.enabled = true
      in your config
    • Saves config to disk

    If the hook came from

    text
    <workspace>/hooks/
    , this opt-in step is required before the Gateway will load it.

    After enabling:

    • Restart the gateway so hooks reload (menu bar app restart on macOS, or restart your gateway process in dev).

    Disable a Hook

    bash
    openclaw hooks disable <name>

    Disable a specific hook by updating your config.

    Arguments:

    • text
      <name>
      : Hook name (e.g.,
      text
      command-logger
      )

    Example:

    bash
    openclaw hooks disable command-logger

    Output:

    text
    ⏸ Disabled hook: 📝 command-logger

    After disabling:

    • Restart the gateway so hooks reload

    Notes

    • text
      openclaw hooks list --json
      ,
      text
      info --json
      , and
      text
      check --json
      write structured JSON directly to stdout.
    • Plugin-managed hooks cannot be enabled or disabled here; enable or disable the owning plugin instead.

    Install hook packs

    bash
    openclaw plugins install <package> # ClawHub first, then npm openclaw plugins install npm:<package> # npm only openclaw plugins install <package> --pin # pin version openclaw plugins install <path> # local path

    Install hook packs through the unified plugins installer.

    text
    openclaw hooks install
    still works as a compatibility alias, but it prints a deprecation warning and forwards to
    text
    openclaw plugins install
    .

    Npm specs are registry-only (package name + optional exact version or dist-tag). Git/URL/file specs and semver ranges are rejected. Dependency installs run project-local with

    text
    --ignore-scripts
    for safety, even when your shell has global npm install settings.

    Bare specs and

    text
    @latest
    stay on the stable track. If npm resolves either of those to a prerelease, OpenClaw stops and asks you to opt in explicitly with a prerelease tag such as
    text
    @beta
    /
    text
    @rc
    or an exact prerelease version.

    What it does:

    • Copies the hook pack into
      text
      ~/.openclaw/hooks/<id>
    • Enables the installed hooks in
      text
      hooks.internal.entries.*
    • Records the install under
      text
      hooks.internal.installs

    Options:

    • text
      -l, --link
      : Link a local directory instead of copying (adds it to
      text
      hooks.internal.load.extraDirs
      )
    • text
      --pin
      : Record npm installs as exact resolved
      text
      name@version
      in
      text
      hooks.internal.installs

    Supported archives:

    text
    .zip
    ,
    text
    .tgz
    ,
    text
    .tar.gz
    ,
    text
    .tar

    Examples:

    bash
    # Local directory openclaw plugins install ./my-hook-pack # Local archive openclaw plugins install ./my-hook-pack.zip # NPM package openclaw plugins install @openclaw/my-hook-pack # Link a local directory without copying openclaw plugins install -l ./my-hook-pack

    Linked hook packs are treated as managed hooks from an operator-configured directory, not as workspace hooks.

    Update hook packs

    bash
    openclaw plugins update <id> openclaw plugins update --all

    Update tracked npm-based hook packs through the unified plugins updater.

    text
    openclaw hooks update
    still works as a compatibility alias, but it prints a deprecation warning and forwards to
    text
    openclaw plugins update
    .

    Options:

    • text
      --all
      : Update all tracked hook packs
    • text
      --dry-run
      : Show what would change without writing

    When a stored integrity hash exists and the fetched artifact hash changes, OpenClaw prints a warning and asks for confirmation before proceeding. Use global

    text
    --yes
    to bypass prompts in CI/non-interactive runs.

    Bundled hooks

    session-memory

    Saves session context to memory when you issue

    text
    /new
    or
    text
    /reset
    .

    Enable:

    bash
    openclaw hooks enable session-memory

    Output:

    text
    ~/.openclaw/workspace/memory/YYYY-MM-DD-slug.md

    See: session-memory documentation

    bootstrap-extra-files

    Injects additional bootstrap files (for example monorepo-local

    text
    AGENTS.md
    /
    text
    TOOLS.md
    ) during
    text
    agent:bootstrap
    .

    Enable:

    bash
    openclaw hooks enable bootstrap-extra-files

    See: bootstrap-extra-files documentation

    command-logger

    Logs all command events to a centralized audit file.

    Enable:

    bash
    openclaw hooks enable command-logger

    Output:

    text
    ~/.openclaw/logs/commands.log

    View logs:

    bash
    # Recent commands tail -n 20 ~/.openclaw/logs/commands.log # Pretty-print cat ~/.openclaw/logs/commands.log | jq . # Filter by action grep '"action":"new"' ~/.openclaw/logs/commands.log | jq .

    See: command-logger documentation

    boot-md

    Runs

    text
    BOOT.md
    when the gateway starts (after channels start).

    Events:

    text
    gateway:startup

    Enable:

    bash
    openclaw hooks enable boot-md

    See: boot-md documentation

    Related

    • CLI reference
    • Automation hooks

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine