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

    Secrets

    text
    openclaw secrets

    Use

    text
    openclaw secrets
    to manage SecretRefs and keep the active runtime snapshot healthy.

    Command roles:

    • text
      reload
      : gateway RPC (
      text
      secrets.reload
      ) that re-resolves refs and swaps runtime snapshot only on full success (no config writes).
    • text
      audit
      : read-only scan of configuration/auth/generated-model stores and legacy residues for plaintext, unresolved refs, and precedence drift (exec refs are skipped unless
      text
      --allow-exec
      is set).
    • text
      configure
      : interactive planner for provider setup, target mapping, and preflight (TTY required).
    • text
      apply
      : execute a saved plan (
      text
      --dry-run
      for validation only; dry-run skips exec checks by default, and write mode rejects exec-containing plans unless
      text
      --allow-exec
      is set), then scrub targeted plaintext residues.

    Recommended operator loop:

    bash
    openclaw secrets audit --check openclaw secrets configure openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --dry-run openclaw secrets apply --from /tmp/openclaw-secrets-plan.json openclaw secrets audit --check openclaw secrets reload

    If your plan includes

    text
    exec
    SecretRefs/providers, pass
    text
    --allow-exec
    on both dry-run and write apply commands.

    Exit code note for CI/gates:

    • text
      audit --check
      returns
      text
      1
      on findings.
    • unresolved refs return
      text
      2
      .

    Related:

    • Secrets guide: Secrets Management
    • Credential surface: SecretRef Credential Surface
    • Security guide: Security

    Reload runtime snapshot

    Re-resolve secret refs and atomically swap runtime snapshot.

    bash
    openclaw secrets reload openclaw secrets reload --json openclaw secrets reload --url ws://127.0.0.1:18789 --token <token>

    Notes:

    • Uses gateway RPC method
      text
      secrets.reload
      .
    • If resolution fails, gateway keeps last-known-good snapshot and returns an error (no partial activation).
    • JSON response includes
      text
      warningCount
      .

    Options:

    • text
      --url <url>
    • text
      --token <token>
    • text
      --timeout <ms>
    • text
      --json

    Audit

    Scan OpenClaw state for:

    • plaintext secret storage
    • unresolved refs
    • precedence drift (
      text
      auth-profiles.json
      credentials shadowing
      text
      openclaw.json
      refs)
    • generated
      text
      agents/*/agent/models.json
      residues (provider
      text
      apiKey
      values and sensitive provider headers)
    • legacy residues (legacy auth store entries, OAuth reminders)

    Header residue note:

    • Sensitive provider header detection is name-heuristic based (common auth/credential header names and fragments such as
      text
      authorization
      ,
      text
      x-api-key
      ,
      text
      token
      ,
      text
      secret
      ,
      text
      password
      , and
      text
      credential
      ).
    bash
    openclaw secrets audit openclaw secrets audit --check openclaw secrets audit --json openclaw secrets audit --allow-exec

    Exit behavior:

    • text
      --check
      exits non-zero on findings.
    • unresolved refs exit with higher-priority non-zero code.

    Report shape highlights:

    • text
      status
      :
      text
      clean | findings | unresolved
    • text
      resolution
      :
      text
      refsChecked
      ,
      text
      skippedExecRefs
      ,
      text
      resolvabilityComplete
    • text
      summary
      :
      text
      plaintextCount
      ,
      text
      unresolvedRefCount
      ,
      text
      shadowedRefCount
      ,
      text
      legacyResidueCount
    • finding codes:
      • text
        PLAINTEXT_FOUND
      • text
        REF_UNRESOLVED
      • text
        REF_SHADOWED
      • text
        LEGACY_RESIDUE

    Configure (interactive helper)

    Build provider and SecretRef changes interactively, run preflight, and optionally apply:

    bash
    openclaw secrets configure openclaw secrets configure --plan-out /tmp/openclaw-secrets-plan.json openclaw secrets configure --apply --yes openclaw secrets configure --providers-only openclaw secrets configure --skip-provider-setup openclaw secrets configure --agent ops openclaw secrets configure --json

    Flow:

    • Provider setup first (
      text
      add/edit/remove
      for
      text
      secrets.providers
      aliases).
    • Credential mapping second (select fields and assign
      text
      {source, provider, id}
      refs).
    • Preflight and optional apply last.

    Flags:

    • text
      --providers-only
      : configure
      text
      secrets.providers
      only, skip credential mapping.
    • text
      --skip-provider-setup
      : skip provider setup and map credentials to existing providers.
    • text
      --agent <id>
      : scope
      text
      auth-profiles.json
      target discovery and writes to one agent store.
    • text
      --allow-exec
      : allow exec SecretRef checks during preflight/apply (may execute provider commands).

    Notes:

    • Requires an interactive TTY.
    • You cannot combine
      text
      --providers-only
      with
      text
      --skip-provider-setup
      .
    • text
      configure
      targets secret-bearing fields in
      text
      openclaw.json
      plus
      text
      auth-profiles.json
      for the selected agent scope.
    • text
      configure
      supports creating new
      text
      auth-profiles.json
      mappings directly in the picker flow.
    • Canonical supported surface: SecretRef Credential Surface.
    • It performs preflight resolution before apply.
    • If preflight/apply includes exec refs, keep
      text
      --allow-exec
      set for both steps.
    • Generated plans default to scrub options (
      text
      scrubEnv
      ,
      text
      scrubAuthProfilesForProviderTargets
      ,
      text
      scrubLegacyAuthJson
      all enabled).
    • Apply path is one-way for scrubbed plaintext values.
    • Without
      text
      --apply
      , CLI still prompts
      text
      Apply this plan now?
      after preflight.
    • With
      text
      --apply
      (and no
      text
      --yes
      ), CLI prompts an extra irreversible confirmation.
    • text
      --json
      prints the plan + preflight report, but the command still requires an interactive TTY.

    Exec provider safety note:

    • Homebrew installs often expose symlinked binaries under
      text
      /opt/homebrew/bin/*
      .
    • Set
      text
      allowSymlinkCommand: true
      only when needed for trusted package-manager paths, and pair it with
      text
      trustedDirs
      (for example
      text
      ["/opt/homebrew"]
      ).
    • On Windows, if ACL verification is unavailable for a provider path, OpenClaw fails closed. For trusted paths only, set
      text
      allowInsecurePath: true
      on that provider to bypass path security checks.

    Apply a saved plan

    Apply or preflight a plan generated previously:

    bash
    openclaw secrets apply --from /tmp/openclaw-secrets-plan.json openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --allow-exec openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --dry-run openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --dry-run --allow-exec openclaw secrets apply --from /tmp/openclaw-secrets-plan.json --json

    Exec behavior:

    • text
      --dry-run
      validates preflight without writing files.
    • exec SecretRef checks are skipped by default in dry-run.
    • write mode rejects plans that contain exec SecretRefs/providers unless
      text
      --allow-exec
      is set.
    • Use
      text
      --allow-exec
      to opt in to exec provider checks/execution in either mode.

    Plan contract details (allowed target paths, validation rules, and failure semantics):

    • Secrets Apply Plan Contract

    What

    text
    apply
    may update:

    • text
      openclaw.json
      (SecretRef targets + provider upserts/deletes)
    • text
      auth-profiles.json
      (provider-target scrubbing)
    • legacy
      text
      auth.json
      residues
    • text
      ~/.openclaw/.env
      known secret keys whose values were migrated

    Why no rollback backups

    text
    secrets apply
    intentionally does not write rollback backups containing old plaintext values.

    Safety comes from strict preflight + atomic-ish apply with best-effort in-memory restore on failure.

    Example

    bash
    openclaw secrets audit --check openclaw secrets configure openclaw secrets audit --check

    If

    text
    audit --check
    still reports plaintext findings, update the remaining reported target paths and rerun audit.

    Related

    • CLI reference
    • Secrets management

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine