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

    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.

    Tools invoke API

    Tools Invoke (HTTP)

    OpenClaw’s Gateway exposes a simple HTTP endpoint for invoking a single tool directly. It is always enabled and uses Gateway auth plus tool policy. Like the OpenAI-compatible

    text
    /v1/*
    surface, shared-secret bearer auth is treated as trusted operator access for the whole gateway.

    • text
      POST /tools/invoke
    • Same port as the Gateway (WS + HTTP multiplex):
      text
      http://<gateway-host>:<port>/tools/invoke

    Default max payload size is 2 MB.

    Authentication

    Uses the Gateway auth configuration.

    Common HTTP auth paths:

    • shared-secret auth (
      text
      gateway.auth.mode="token"
      or
      text
      "password"
      ):
      text
      Authorization: Bearer <token-or-password>
    • trusted identity-bearing HTTP auth (
      text
      gateway.auth.mode="trusted-proxy"
      ): route through the configured identity-aware proxy and let it inject the required identity headers
    • private-ingress open auth (
      text
      gateway.auth.mode="none"
      ): no auth header required

    Notes:

    • When
      text
      gateway.auth.mode="token"
      , use
      text
      gateway.auth.token
      (or
      text
      OPENCLAW_GATEWAY_TOKEN
      ).
    • When
      text
      gateway.auth.mode="password"
      , use
      text
      gateway.auth.password
      (or
      text
      OPENCLAW_GATEWAY_PASSWORD
      ).
    • When
      text
      gateway.auth.mode="trusted-proxy"
      , the HTTP request must come from a configured trusted proxy source; same-host loopback proxies require explicit
      text
      gateway.auth.trustedProxy.allowLoopback = true
      .
    • If
      text
      gateway.auth.rateLimit
      is configured and too many auth failures occur, the endpoint returns
      text
      429
      with
      text
      Retry-After
      .

    Security boundary (important)

    Treat this endpoint as a full operator-access surface for the gateway instance.

    • HTTP bearer auth here is not a narrow per-user scope model.
    • A valid Gateway token/password for this endpoint should be treated like an owner/operator credential.
    • For shared-secret auth modes (
      text
      token
      and
      text
      password
      ), the endpoint restores the normal full operator defaults even if the caller sends a narrower
      text
      x-openclaw-scopes
      header.
    • Shared-secret auth also treats direct tool invokes on this endpoint as owner-sender turns.
    • Trusted identity-bearing HTTP modes (for example trusted proxy auth or
      text
      gateway.auth.mode="none"
      on a private ingress) honor
      text
      x-openclaw-scopes
      when present and otherwise fall back to the normal operator default scope set.
    • Keep this endpoint on loopback/tailnet/private ingress only; do not expose it directly to the public internet.

    Auth matrix:

    • text
      gateway.auth.mode="token"
      or
      text
      "password"
      +
      text
      Authorization: Bearer ...
      • proves possession of the shared gateway operator secret
      • ignores narrower
        text
        x-openclaw-scopes
      • restores the full default operator scope set:
        text
        operator.admin
        ,
        text
        operator.approvals
        ,
        text
        operator.pairing
        ,
        text
        operator.read
        ,
        text
        operator.talk.secrets
        ,
        text
        operator.write
      • treats direct tool invokes on this endpoint as owner-sender turns
    • trusted identity-bearing HTTP modes (for example trusted proxy auth, or
      text
      gateway.auth.mode="none"
      on private ingress)
      • authenticate some outer trusted identity or deployment boundary
      • honor
        text
        x-openclaw-scopes
        when the header is present
      • fall back to the normal operator default scope set when the header is absent
      • only lose owner semantics when the caller explicitly narrows scopes and omits
        text
        operator.admin

    Request body

    json
    { "tool": "sessions_list", "action": "json", "args": {}, "sessionKey": "main", "dryRun": false }

    Fields:

    • text
      tool
      (string, required): tool name to invoke.
    • text
      action
      (string, optional): mapped into args if the tool schema supports
      text
      action
      and the args payload omitted it.
    • text
      args
      (object, optional): tool-specific arguments.
    • text
      sessionKey
      (string, optional): target session key. If omitted or
      text
      "main"
      , the Gateway uses the configured main session key (honors
      text
      session.mainKey
      and default agent, or
      text
      global
      in global scope).
    • text
      dryRun
      (boolean, optional): reserved for future use; currently ignored.

    Policy + routing behavior

    Tool availability is filtered through the same policy chain used by Gateway agents:

    • text
      tools.profile
      /
      text
      tools.byProvider.profile
    • text
      tools.allow
      /
      text
      tools.byProvider.allow
    • text
      agents.<id>.tools.allow
      /
      text
      agents.<id>.tools.byProvider.allow
    • group policies (if the session key maps to a group or channel)
    • subagent policy (when invoking with a subagent session key)

    If a tool is not allowed by policy, the endpoint returns 404.

    Important boundary notes:

    • Exec approvals are operator guardrails, not a separate authorization boundary for this HTTP endpoint. If a tool is reachable here via Gateway auth + tool policy,
      text
      /tools/invoke
      does not add an extra per-call approval prompt.
    • Do not share Gateway bearer credentials with untrusted callers. If you need separation across trust boundaries, run separate gateways (and ideally separate OS users/hosts).

    Gateway HTTP also applies a hard deny list by default (even if session policy allows the tool):

    • text
      exec
      — direct command execution (RCE surface)
    • text
      spawn
      — arbitrary child process creation (RCE surface)
    • text
      shell
      — shell command execution (RCE surface)
    • text
      fs_write
      — arbitrary file mutation on the host
    • text
      fs_delete
      — arbitrary file deletion on the host
    • text
      fs_move
      — arbitrary file move/rename on the host
    • text
      apply_patch
      — patch application can rewrite arbitrary files
    • text
      sessions_spawn
      — session orchestration; spawning agents remotely is RCE
    • text
      sessions_send
      — cross-session message injection
    • text
      cron
      — persistent automation control plane
    • text
      gateway
      — gateway control plane; prevents reconfiguration via HTTP
    • text
      nodes
      — node command relay can reach system.run on paired hosts
    • text
      whatsapp_login
      — interactive setup requiring terminal QR scan; hangs on HTTP

    You can customize this deny list via

    text
    gateway.tools
    :

    json5
    { gateway: { tools: { // Additional tools to block over HTTP /tools/invoke deny: ["browser"], // Remove tools from the default deny list allow: ["gateway"], }, }, }

    To help group policies resolve context, you can optionally set:

    • text
      x-openclaw-message-channel: <channel>
      (example:
      text
      slack
      ,
      text
      telegram
      )
    • text
      x-openclaw-account-id: <accountId>
      (when multiple accounts exist)

    Responses

    • text
      200
      →
      text
      { ok: true, result }
    • text
      400
      →
      text
      { ok: false, error: { type, message } }
      (invalid request or tool input error)
    • text
      401
      → unauthorized
    • text
      429
      → auth rate-limited (
      text
      Retry-After
      set)
    • text
      404
      → tool not available (not found or not allowlisted)
    • text
      405
      → method not allowed
    • text
      500
      →
      text
      { ok: false, error: { type, message } }
      (unexpected tool execution error; sanitized message)

    Example

    bash
    curl -sS http://127.0.0.1:18789/tools/invoke \ -H 'Authorization: Bearer secret' \ -H 'Content-Type: application/json' \ -d '{ "tool": "sessions_list", "action": "json", "args": {} }'

    Related

    • Gateway protocol
    • Tools and plugins

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine