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

    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.

    System prompt

    OpenClaw builds a custom system prompt for every agent run. The prompt is OpenClaw-owned and does not use the pi-coding-agent default prompt.

    The prompt is assembled by OpenClaw and injected into each agent run.

    Provider plugins can contribute cache-aware prompt guidance without replacing the full OpenClaw-owned prompt. The provider runtime can:

    • replace a small set of named core sections (
      text
      interaction_style
      ,
      text
      tool_call_style
      ,
      text
      execution_bias
      )
    • inject a stable prefix above the prompt cache boundary
    • inject a dynamic suffix below the prompt cache boundary

    Use provider-owned contributions for model-family-specific tuning. Keep legacy

    text
    before_prompt_build
    prompt mutation for compatibility or truly global prompt changes, not normal provider behavior.

    The OpenAI GPT-5 family overlay keeps the core execution rule small and adds model-specific guidance for persona latching, concise output, tool discipline, parallel lookup, deliverable coverage, verification, missing context, and terminal-tool hygiene.

    Structure

    The prompt is intentionally compact and uses fixed sections:

    • Tooling: structured-tool source-of-truth reminder plus runtime tool-use guidance.
    • Execution Bias: compact follow-through guidance: act in-turn on actionable requests, continue until done or blocked, recover from weak tool results, check mutable state live, and verify before finalizing.
    • Safety: short guardrail reminder to avoid power-seeking behavior or bypassing oversight.
    • Skills (when available): tells the model how to load skill instructions on demand.
    • OpenClaw Self-Update: how to inspect config safely with
      text
      config.schema.lookup
      , patch config with
      text
      config.patch
      , replace the full config with
      text
      config.apply
      , and run
      text
      update.run
      only on explicit user request. The owner-only
      text
      gateway
      tool also refuses to rewrite
      text
      tools.exec.ask
      /
      text
      tools.exec.security
      , including legacy
      text
      tools.bash.*
      aliases that normalize to those protected exec paths.
    • Workspace: working directory (
      text
      agents.defaults.workspace
      ).
    • Documentation: local path to OpenClaw docs (repo or npm package) and when to read them.
    • Workspace Files (injected): indicates bootstrap files are included below.
    • Sandbox (when enabled): indicates sandboxed runtime, sandbox paths, and whether elevated exec is available.
    • Current Date & Time: user-local time, timezone, and time format.
    • Reply Tags: optional reply tag syntax for supported providers.
    • Heartbeats: heartbeat prompt and ack behavior, when heartbeats are enabled for the default agent.
    • Runtime: host, OS, node, model, repo root (when detected), thinking level (one line).
    • Reasoning: current visibility level + /reasoning toggle hint.

    OpenClaw keeps large stable content, including Project Context, above the internal prompt cache boundary. Volatile channel/session sections such as Control UI embed guidance, Messaging, Voice, Group Chat Context, Reactions, Heartbeats, and Runtime are appended below that boundary so local backends with prefix caches can reuse the stable workspace prefix across channel turns. Tool descriptions should likewise avoid embedding current channel names when the accepted schema already carries that runtime detail.

    The Tooling section also includes runtime guidance for long-running work:

    • use cron for future follow-up (
      text
      check back later
      , reminders, recurring work) instead of
      text
      exec
      sleep loops,
      text
      yieldMs
      delay tricks, or repeated
      text
      process
      polling
    • use
      text
      exec
      /
      text
      process
      only for commands that start now and continue running in the background
    • when automatic completion wake is enabled, start the command once and rely on the push-based wake path when it emits output or fails
    • use
      text
      process
      for logs, status, input, or intervention when you need to inspect a running command
    • if the task is larger, prefer
      text
      sessions_spawn
      ; sub-agent completion is push-based and auto-announces back to the requester
    • do not poll
      text
      subagents list
      /
      text
      sessions_list
      in a loop just to wait for completion

    When the experimental

    text
    update_plan
    tool is enabled, Tooling also tells the model to use it only for non-trivial multi-step work, keep exactly one
    text
    in_progress
    step, and avoid repeating the whole plan after each update.

    Safety guardrails in the system prompt are advisory. They guide model behavior but do not enforce policy. Use tool policy, exec approvals, sandboxing, and channel allowlists for hard enforcement; operators can disable these by design.

    On channels with native approval cards/buttons, the runtime prompt now tells the agent to rely on that native approval UI first. It should only include a manual

    text
    /approve
    command when the tool result says chat approvals are unavailable or manual approval is the only path.

    Prompt modes

    OpenClaw can render smaller system prompts for sub-agents. The runtime sets a

    text
    promptMode
    for each run (not a user-facing config):

    • text
      full
      (default): includes all sections above.
    • text
      minimal
      : used for sub-agents; omits Skills, Memory Recall, OpenClaw Self-Update, Model Aliases, User Identity, Reply Tags, Messaging, Silent Replies, and Heartbeats. Tooling, Safety, Workspace, Sandbox, Current Date & Time (when known), Runtime, and injected context stay available.
    • text
      none
      : returns only the base identity line.

    When

    text
    promptMode=minimal
    , extra injected prompts are labeled Subagent Context instead of Group Chat Context.

    For channel auto-reply runs, OpenClaw can omit the generic Silent Replies section when the direct/group chat context already includes the resolved conversation-specific

    text
    NO_REPLY
    behavior. This avoids repeating token mechanics in both the global system prompt and channel context.

    Workspace bootstrap injection

    Bootstrap files are trimmed and appended under Project Context so the model sees identity and profile context without needing explicit reads:

    • text
      AGENTS.md
    • text
      SOUL.md
    • text
      TOOLS.md
    • text
      IDENTITY.md
    • text
      USER.md
    • text
      HEARTBEAT.md
    • text
      BOOTSTRAP.md
      (only on brand-new workspaces)
    • text
      MEMORY.md
      when present

    All of these files are injected into the context window on every turn unless a file-specific gate applies.

    text
    HEARTBEAT.md
    is omitted on normal runs when heartbeats are disabled for the default agent or
    text
    agents.defaults.heartbeat.includeSystemPromptSection
    is false. Keep injected files concise — especially
    text
    MEMORY.md
    , which can grow over time and lead to unexpectedly high context usage and more frequent compaction.

    note

    `memory/*.md` daily files are **not** part of the normal bootstrap Project Context. On ordinary turns they are accessed on demand via the `memory_search` and `memory_get` tools, so they do not count against the context window unless the model explicitly reads them. Bare `/new` and `/reset` turns are the exception: the runtime can prepend recent daily memory as a one-shot startup-context block for that first turn.

    Large files are truncated with a marker. The max per-file size is controlled by

    text
    agents.defaults.bootstrapMaxChars
    (default: 12000). Total injected bootstrap content across files is capped by
    text
    agents.defaults.bootstrapTotalMaxChars
    (default: 60000). Missing files inject a short missing-file marker. When truncation occurs, OpenClaw can inject a warning block in Project Context; control this with
    text
    agents.defaults.bootstrapPromptTruncationWarning
    (
    text
    off
    ,
    text
    once
    ,
    text
    always
    ; default:
    text
    once
    ).

    Sub-agent sessions only inject

    text
    AGENTS.md
    and
    text
    TOOLS.md
    (other bootstrap files are filtered out to keep the sub-agent context small).

    Internal hooks can intercept this step via

    text
    agent:bootstrap
    to mutate or replace the injected bootstrap files (for example swapping
    text
    SOUL.md
    for an alternate persona).

    If you want to make the agent sound less generic, start with SOUL.md Personality Guide.

    To inspect how much each injected file contributes (raw vs injected, truncation, plus tool schema overhead), use

    text
    /context list
    or
    text
    /context detail
    . See Context.

    Time handling

    The system prompt includes a dedicated Current Date & Time section when the user timezone is known. To keep the prompt cache-stable, it now only includes the time zone (no dynamic clock or time format).

    Use

    text
    session_status
    when the agent needs the current time; the status card includes a timestamp line. The same tool can optionally set a per-session model override (
    text
    model=default
    clears it).

    Configure with:

    • text
      agents.defaults.userTimezone
    • text
      agents.defaults.timeFormat
      (
      text
      auto
      |
      text
      12
      |
      text
      24
      )

    See Date & Time for full behavior details.

    Skills

    When eligible skills exist, OpenClaw injects a compact available skills list (

    text
    formatSkillsForPrompt
    ) that includes the file path for each skill. The prompt instructs the model to use
    text
    read
    to load the SKILL.md at the listed location (workspace, managed, or bundled). If no skills are eligible, the Skills section is omitted.

    Eligibility includes skill metadata gates, runtime environment/config checks, and the effective agent skill allowlist when

    text
    agents.defaults.skills
    or
    text
    agents.list[].skills
    is configured.

    Plugin-bundled skills are eligible only when their owning plugin is enabled. This lets tool plugins expose deeper operating guides without embedding all of that guidance directly in every tool description.

    text
    <available_skills> <skill> <name>...</name> <description>...</description> <location>...</location> </skill> </available_skills>

    This keeps the base prompt small while still enabling targeted skill usage.

    The skills list budget is owned by the skills subsystem:

    • Global default:
      text
      skills.limits.maxSkillsPromptChars
    • Per-agent override:
      text
      agents.list[].skillsLimits.maxSkillsPromptChars

    Generic bounded runtime excerpts use a different surface:

    • text
      agents.defaults.contextLimits.*
    • text
      agents.list[].contextLimits.*

    That split keeps skills sizing separate from runtime read/injection sizing such as

    text
    memory_get
    , live tool results, and post-compaction AGENTS.md refreshes.

    Documentation

    The system prompt includes a Documentation section. When local docs are available, it points to the local OpenClaw docs directory (

    text
    docs/
    in a Git checkout or the bundled npm package docs). If local docs are unavailable, it falls back to https://docs.openclaw.ai.

    The same section also includes the OpenClaw source location. Git checkouts expose the local source root so the agent can inspect code directly. Package installs include the GitHub source URL and tell the agent to review source there whenever the docs are incomplete or stale. The prompt also notes the public docs mirror, community Discord, and ClawHub (https://clawhub.ai) for skills discovery. It tells the model to consult docs first for OpenClaw behavior, commands, configuration, or architecture, and to run

    text
    openclaw status
    itself when possible (asking the user only when it lacks access). For configuration specifically, it points agents to the
    text
    gateway
    tool action
    text
    config.schema.lookup
    for exact field-level docs and constraints, then to
    text
    docs/gateway/configuration.md
    and
    text
    docs/gateway/configuration-reference.md
    for broader guidance.

    Related

    • Agent runtime
    • Agent workspace
    • Context engine

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine

    Real-time Synchronized Documentation

    Last sync: 01/05/2026 07:04:37

    Note: This content is mirrored from docs.openclaw.ai and is subject to their terms and conditions.