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:55

    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.

    Configuration

    OpenClaw reads an optional JSON5 config from

    text
    ~/.openclaw/openclaw.json
    . The active config path must be a regular file. Symlinked
    text
    openclaw.json
    layouts are unsupported for OpenClaw-owned writes; an atomic write may replace the path instead of preserving the symlink. If you keep config outside the default state directory, point
    text
    OPENCLAW_CONFIG_PATH
    directly at the real file.

    If the file is missing, OpenClaw uses safe defaults. Common reasons to add a config:

    • Connect channels and control who can message the bot
    • Set models, tools, sandboxing, or automation (cron, hooks)
    • Tune sessions, media, networking, or UI

    See the full reference for every available field.

    Agents and automation should use

    text
    config.schema.lookup
    for exact field-level docs before editing config. Use this page for task-oriented guidance and Configuration reference for the broader field map and defaults.

    tip

    **New to configuration?** Start with `openclaw onboard` for interactive setup, or check out the [Configuration Examples](/gateway/configuration-examples) guide for complete copy-paste configs.

    Minimal config

    json5
    // ~/.openclaw/openclaw.json { agents: { defaults: { workspace: "~/.openclaw/workspace" } }, channels: { whatsapp: { allowFrom: ["+15555550123"] } }, }

    Editing config

    ```bash} openclaw onboard # full onboarding flow openclaw configure # config wizard ``` ```bash} openclaw config get agents.defaults.workspace openclaw config set agents.defaults.heartbeat.every "2h" openclaw config unset plugins.entries.brave.config.webSearch.apiKey ``` Open [http://127.0.0.1:18789](http://127.0.0.1:18789) and use the **Config** tab. The Control UI renders a form from the live config schema, including field `title` / `description` docs metadata plus plugin and channel schemas when available, with a **Raw JSON** editor as an escape hatch. For drill-down UIs and other tooling, the gateway also exposes `config.schema.lookup` to fetch one path-scoped schema node plus immediate child summaries. Edit `~/.openclaw/openclaw.json` directly. The Gateway watches the file and applies changes automatically (see [hot reload](#config-hot-reload)).

    Strict validation

    warning

    OpenClaw only accepts configurations that fully match the schema. Unknown keys, malformed types, or invalid values cause the Gateway to **refuse to start**. The only root-level exception is `$schema` (string), so editors can attach JSON Schema metadata.

    text
    openclaw config schema
    prints the canonical JSON Schema used by Control UI and validation.
    text
    config.schema.lookup
    fetches a single path-scoped node plus child summaries for drill-down tooling. Field
    text
    title
    /
    text
    description
    docs metadata carries through nested objects, wildcard (
    text
    *
    ), array-item (
    text
    []
    ), and
    text
    anyOf
    /
    text
    oneOf
    /
    text
    allOf
    branches. Runtime plugin and channel schemas merge in when the manifest registry is loaded.

    When validation fails:

    • The Gateway does not boot
    • Only diagnostic commands work (
      text
      openclaw doctor
      ,
      text
      openclaw logs
      ,
      text
      openclaw health
      ,
      text
      openclaw status
      )
    • Run
      text
      openclaw doctor
      to see exact issues
    • Run
      text
      openclaw doctor --fix
      (or
      text
      --yes
      ) to apply repairs

    The Gateway keeps a trusted last-known-good copy after each successful startup. If

    text
    openclaw.json
    later fails validation (or drops
    text
    gateway.mode
    , shrinks sharply, or has a stray log line prepended), OpenClaw preserves the broken file as
    text
    .clobbered.*
    , restores the last-known-good copy, and logs the recovery reason. The next agent turn also receives a system-event warning so the main agent does not blindly rewrite the restored config. Promotion to last-known-good is skipped when a candidate contains redacted secret placeholders such as
    text
    ***
    . When every validation issue is scoped to
    text
    plugins.entries.<id>...
    , OpenClaw does not perform whole-file recovery. It keeps the current config active and surfaces the plugin-local failure so a plugin schema or host-version mismatch cannot roll back unrelated user settings.

    Common tasks

    Config hot reload

    The Gateway watches

    text
    ~/.openclaw/openclaw.json
    and applies changes automatically — no manual restart needed for most settings.

    Direct file edits are treated as untrusted until they validate. The watcher waits for editor temp-write/rename churn to settle, reads the final file, and rejects invalid external edits by restoring the last-known-good config. OpenClaw-owned config writes use the same schema gate before writing; destructive clobbers such as dropping

    text
    gateway.mode
    or shrinking the file by more than half are rejected and saved as
    text
    .rejected.*
    for inspection.

    Plugin-local validation failures are the exception: if all issues are under

    text
    plugins.entries.<id>...
    , reload keeps the current config and reports the plugin issue instead of restoring
    text
    .last-good
    .

    If you see

    text
    Config auto-restored from last-known-good
    or
    text
    config reload restored last-known-good config
    in logs, inspect the matching
    text
    .clobbered.*
    file next to
    text
    openclaw.json
    , fix the rejected payload, then run
    text
    openclaw config validate
    . See Gateway troubleshooting for the recovery checklist.

    Reload modes

    ModeBehavior
    text
    hybrid
    (default)
    Hot-applies safe changes instantly. Automatically restarts for critical ones.
    text
    hot
    Hot-applies safe changes only. Logs a warning when a restart is needed — you handle it.
    text
    restart
    Restarts the Gateway on any config change, safe or not.
    text
    off
    Disables file watching. Changes take effect on the next manual restart.
    json5
    { gateway: { reload: { mode: "hybrid", debounceMs: 300 }, }, }

    What hot-applies vs what needs a restart

    Most fields hot-apply without downtime. In

    text
    hybrid
    mode, restart-required changes are handled automatically.

    CategoryFieldsRestart needed?
    Channels
    text
    channels.*
    ,
    text
    web
    (WhatsApp) — all built-in and plugin channels
    No
    Agent & models
    text
    agent
    ,
    text
    agents
    ,
    text
    models
    ,
    text
    routing
    No
    Automation
    text
    hooks
    ,
    text
    cron
    ,
    text
    agent.heartbeat
    No
    Sessions & messages
    text
    session
    ,
    text
    messages
    No
    Tools & media
    text
    tools
    ,
    text
    browser
    ,
    text
    skills
    ,
    text
    mcp
    ,
    text
    audio
    ,
    text
    talk
    No
    UI & misc
    text
    ui
    ,
    text
    logging
    ,
    text
    identity
    ,
    text
    bindings
    No
    Gateway server
    text
    gateway.*
    (port, bind, auth, tailscale, TLS, HTTP)
    Yes
    Infrastructure
    text
    discovery
    ,
    text
    canvasHost
    ,
    text
    plugins
    Yes

    note

    `gateway.reload` and `gateway.remote` are exceptions — changing them does **not** trigger a restart.

    Reload planning

    When you edit a source file that is referenced through

    text
    $include
    , OpenClaw plans the reload from the source-authored layout, not the flattened in-memory view. That keeps hot-reload decisions (hot-apply vs restart) predictable even when a single top-level section lives in its own included file such as
    text
    plugins: { $include: "./plugins.json5" }
    . Reload planning fails closed if the source layout is ambiguous.

    Config RPC (programmatic updates)

    For tooling that writes config over the gateway API, prefer this flow:

    • text
      config.schema.lookup
      to inspect one subtree (shallow schema node + child summaries)
    • text
      config.get
      to fetch the current snapshot plus
      text
      hash
    • text
      config.patch
      for partial updates (JSON merge patch: objects merge,
      text
      null
      deletes, arrays replace)
    • text
      config.apply
      only when you intend to replace the entire config
    • text
      update.run
      for explicit self-update plus restart
    • text
      update.status
      to inspect the latest update restart sentinel and verify the running version after a restart

    Agents should treat

    text
    config.schema.lookup
    as the first stop for exact field-level docs and constraints. Use Configuration reference when they need the broader config map, defaults, or links to dedicated subsystem references.

    note

    Control-plane writes (`config.apply`, `config.patch`, `update.run`) are rate-limited to 3 requests per 60 seconds per `deviceId+clientIp`. Restart requests coalesce and then enforce a 30-second cooldown between restart cycles. `update.status` is read-only but admin-scoped because the restart sentinel can include update step summaries and command output tails.

    Example partial patch:

    bash
    openclaw gateway call config.get --params '{}' # capture payload.hash openclaw gateway call config.patch --params '{ "raw": "{ channels: { telegram: { groups: { \"*\": { requireMention: false } } } } }", "baseHash": "<hash>" }'

    Both

    text
    config.apply
    and
    text
    config.patch
    accept
    text
    raw
    ,
    text
    baseHash
    ,
    text
    sessionKey
    ,
    text
    note
    , and
    text
    restartDelayMs
    .
    text
    baseHash
    is required for both methods when a config already exists.

    Environment variables

    OpenClaw reads env vars from the parent process plus:

    • text
      .env
      from the current working directory (if present)
    • text
      ~/.openclaw/.env
      (global fallback)

    Neither file overrides existing env vars. You can also set inline env vars in config:

    json5
    { env: { OPENROUTER_API_KEY: "sk-or-...", vars: { GROQ_API_KEY: "gsk-..." }, }, }

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine