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

    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.

    ACP

    Run the Agent Client Protocol (ACP) bridge that talks to an OpenClaw Gateway.

    This command speaks ACP over stdio for IDEs and forwards prompts to the Gateway over WebSocket. It keeps ACP sessions mapped to Gateway session keys.

    text
    openclaw acp
    is a Gateway-backed ACP bridge, not a full ACP-native editor runtime. It focuses on session routing, prompt delivery, and basic streaming updates.

    If you want an external MCP client to talk directly to OpenClaw channel conversations instead of hosting an ACP harness session, use

    text
    openclaw mcp serve
    instead.

    What this is not

    This page is often confused with ACP harness sessions.

    text
    openclaw acp
    means:

    • OpenClaw acts as an ACP server
    • an IDE or ACP client connects to OpenClaw
    • OpenClaw forwards that work into a Gateway session

    This is different from ACP Agents, where OpenClaw runs an external harness such as Codex or Claude Code through

    text
    acpx
    .

    Quick rule:

    • editor/client wants to talk ACP to OpenClaw: use
      text
      openclaw acp
    • OpenClaw should launch Codex/Claude/Gemini as an ACP harness: use
      text
      /acp spawn
      and ACP Agents

    Compatibility Matrix

    ACP areaStatusNotes
    text
    initialize
    ,
    text
    newSession
    ,
    text
    prompt
    ,
    text
    cancel
    ImplementedCore bridge flow over stdio to Gateway chat/send + abort.
    text
    listSessions
    , slash commands
    ImplementedSession list works against Gateway session state; commands are advertised via
    text
    available_commands_update
    .
    text
    loadSession
    PartialRebinds the ACP session to a Gateway session key and replays stored user/assistant text history. Tool/system history is not reconstructed yet.
    Prompt content (
    text
    text
    , embedded
    text
    resource
    , images)
    PartialText/resources are flattened into chat input; images become Gateway attachments.
    Session modesPartial
    text
    session/set_mode
    is supported and the bridge exposes initial Gateway-backed session controls for thought level, tool verbosity, reasoning, usage detail, and elevated actions. Broader ACP-native mode/config surfaces are still out of scope.
    Session info and usage updatesPartialThe bridge emits
    text
    session_info_update
    and best-effort
    text
    usage_update
    notifications from cached Gateway session snapshots. Usage is approximate and only sent when Gateway token totals are marked fresh.
    Tool streamingPartial
    text
    tool_call
    /
    text
    tool_call_update
    events include raw I/O, text content, and best-effort file locations when Gateway tool args/results expose them. Embedded terminals and richer diff-native output are still not exposed.
    Per-session MCP servers (
    text
    mcpServers
    )
    UnsupportedBridge mode rejects per-session MCP server requests. Configure MCP on the OpenClaw gateway or agent instead.
    Client filesystem methods (
    text
    fs/read_text_file
    ,
    text
    fs/write_text_file
    )
    UnsupportedThe bridge does not call ACP client filesystem methods.
    Client terminal methods (
    text
    terminal/*
    )
    UnsupportedThe bridge does not create ACP client terminals or stream terminal ids through tool calls.
    Session plans / thought streamingUnsupportedThe bridge currently emits output text and tool status, not ACP plan or thought updates.

    Known Limitations

    • text
      loadSession
      replays stored user and assistant text history, but it does not reconstruct historic tool calls, system notices, or richer ACP-native event types.
    • If multiple ACP clients share the same Gateway session key, event and cancel routing are best-effort rather than strictly isolated per client. Prefer the default isolated
      text
      acp:<uuid>
      sessions when you need clean editor-local turns.
    • Gateway stop states are translated into ACP stop reasons, but that mapping is less expressive than a fully ACP-native runtime.
    • Initial session controls currently surface a focused subset of Gateway knobs: thought level, tool verbosity, reasoning, usage detail, and elevated actions. Model selection and exec-host controls are not yet exposed as ACP config options.
    • text
      session_info_update
      and
      text
      usage_update
      are derived from Gateway session snapshots, not live ACP-native runtime accounting. Usage is approximate, carries no cost data, and is only emitted when the Gateway marks total token data as fresh.
    • Tool follow-along data is best-effort. The bridge can surface file paths that appear in known tool args/results, but it does not yet emit ACP terminals or structured file diffs.

    Usage

    bash
    openclaw acp # Remote Gateway openclaw acp --url wss://gateway-host:18789 --token <token> # Remote Gateway (token from file) openclaw acp --url wss://gateway-host:18789 --token-file ~/.openclaw/gateway.token # Attach to an existing session key openclaw acp --session agent:main:main # Attach by label (must already exist) openclaw acp --session-label "support inbox" # Reset the session key before the first prompt openclaw acp --session agent:main:main --reset-session

    ACP client (debug)

    Use the built-in ACP client to sanity-check the bridge without an IDE. It spawns the ACP bridge and lets you type prompts interactively.

    bash
    openclaw acp client # Point the spawned bridge at a remote Gateway openclaw acp client --server-args --url wss://gateway-host:18789 --token-file ~/.openclaw/gateway.token # Override the server command (default: openclaw) openclaw acp client --server "node" --server-args openclaw.mjs acp --url ws://127.0.0.1:19001

    Permission model (client debug mode):

    • Auto-approval is allowlist-based and only applies to trusted core tool IDs.
    • text
      read
      auto-approval is scoped to the current working directory (
      text
      --cwd
      when set).
    • ACP only auto-approves narrow readonly classes: scoped
      text
      read
      calls under the active cwd plus readonly search tools (
      text
      search
      ,
      text
      web_search
      ,
      text
      memory_search
      ). Unknown/non-core tools, out-of-scope reads, exec-capable tools, control-plane tools, mutating tools, and interactive flows always require explicit prompt approval.
    • Server-provided
      text
      toolCall.kind
      is treated as untrusted metadata (not an authorization source).
    • This ACP bridge policy is separate from ACPX harness permissions. If you run OpenClaw through the
      text
      acpx
      backend,
      text
      plugins.entries.acpx.config.permissionMode=approve-all
      is the break-glass “yolo” switch for that harness session.

    How to use this

    Use ACP when an IDE (or other client) speaks Agent Client Protocol and you want it to drive an OpenClaw Gateway session.

    1. Ensure the Gateway is running (local or remote).
    2. Configure the Gateway target (config or flags).
    3. Point your IDE to run
      text
      openclaw acp
      over stdio.

    Example config (persisted):

    bash
    openclaw config set gateway.remote.url wss://gateway-host:18789 openclaw config set gateway.remote.token <token>

    Example direct run (no config write):

    bash
    openclaw acp --url wss://gateway-host:18789 --token <token> # preferred for local process safety openclaw acp --url wss://gateway-host:18789 --token-file ~/.openclaw/gateway.token

    Selecting agents

    ACP does not pick agents directly. It routes by the Gateway session key.

    Use agent-scoped session keys to target a specific agent:

    bash
    openclaw acp --session agent:main:main openclaw acp --session agent:design:main openclaw acp --session agent:qa:bug-123

    Each ACP session maps to a single Gateway session key. One agent can have many sessions; ACP defaults to an isolated

    text
    acp:<uuid>
    session unless you override the key or label.

    Per-session

    text
    mcpServers
    are not supported in bridge mode. If an ACP client sends them during
    text
    newSession
    or
    text
    loadSession
    , the bridge returns a clear error instead of silently ignoring them.

    If you want ACPX-backed sessions to see OpenClaw plugin tools or selected built-in tools such as

    text
    cron
    , enable the gateway-side ACPX MCP bridges instead of trying to pass per-session
    text
    mcpServers
    . See ACP Agents and OpenClaw tools MCP bridge.

    Use from
    text
    acpx
    (Codex, Claude, other ACP clients)

    If you want a coding agent such as Codex or Claude Code to talk to your OpenClaw bot over ACP, use

    text
    acpx
    with its built-in
    text
    openclaw
    target.

    Typical flow:

    1. Run the Gateway and make sure the ACP bridge can reach it.
    2. Point
      text
      acpx openclaw
      at
      text
      openclaw acp
      .
    3. Target the OpenClaw session key you want the coding agent to use.

    Examples:

    bash
    # One-shot request into your default OpenClaw ACP session acpx openclaw exec "Summarize the active OpenClaw session state." # Persistent named session for follow-up turns acpx openclaw sessions ensure --name codex-bridge acpx openclaw -s codex-bridge --cwd /path/to/repo \ "Ask my OpenClaw work agent for recent context relevant to this repo."

    If you want

    text
    acpx openclaw
    to target a specific Gateway and session key every time, override the
    text
    openclaw
    agent command in
    text
    ~/.acpx/config.json
    :

    json
    { "agents": { "openclaw": { "command": "env OPENCLAW_HIDE_BANNER=1 OPENCLAW_SUPPRESS_NOTES=1 openclaw acp --url ws://127.0.0.1:18789 --token-file ~/.openclaw/gateway.token --session agent:main:main" } } }

    For a repo-local OpenClaw checkout, use the direct CLI entrypoint instead of the dev runner so the ACP stream stays clean. For example:

    bash
    env OPENCLAW_HIDE_BANNER=1 OPENCLAW_SUPPRESS_NOTES=1 node openclaw.mjs acp ...

    This is the easiest way to let Codex, Claude Code, or another ACP-aware client pull contextual information from an OpenClaw agent without scraping a terminal.

    Zed editor setup

    Add a custom ACP agent in

    text
    ~/.config/zed/settings.json
    (or use Zed’s Settings UI):

    json
    { "agent_servers": { "OpenClaw ACP": { "type": "custom", "command": "openclaw", "args": ["acp"], "env": {} } } }

    To target a specific Gateway or agent:

    json
    { "agent_servers": { "OpenClaw ACP": { "type": "custom", "command": "openclaw", "args": [ "acp", "--url", "wss://gateway-host:18789", "--token", "<token>", "--session", "agent:design:main" ], "env": {} } } }

    In Zed, open the Agent panel and select “OpenClaw ACP” to start a thread.

    Session mapping

    By default, ACP sessions get an isolated Gateway session key with an

    text
    acp:
    prefix. To reuse a known session, pass a session key or label:

    • text
      --session <key>
      : use a specific Gateway session key.
    • text
      --session-label <label>
      : resolve an existing session by label.
    • text
      --reset-session
      : mint a fresh session id for that key (same key, new transcript).

    If your ACP client supports metadata, you can override per session:

    json
    { "_meta": { "sessionKey": "agent:main:main", "sessionLabel": "support inbox", "resetSession": true } }

    Learn more about session keys at /concepts/session.

    Options

    • text
      --url <url>
      : Gateway WebSocket URL (defaults to gateway.remote.url when configured).
    • text
      --token <token>
      : Gateway auth token.
    • text
      --token-file <path>
      : read Gateway auth token from file.
    • text
      --password <password>
      : Gateway auth password.
    • text
      --password-file <path>
      : read Gateway auth password from file.
    • text
      --session <key>
      : default session key.
    • text
      --session-label <label>
      : default session label to resolve.
    • text
      --require-existing
      : fail if the session key/label does not exist.
    • text
      --reset-session
      : reset the session key before first use.
    • text
      --no-prefix-cwd
      : do not prefix prompts with the working directory.
    • text
      --provenance <off|meta|meta+receipt>
      : include ACP provenance metadata or receipts.
    • text
      --verbose, -v
      : verbose logging to stderr.

    Security note:

    • text
      --token
      and
      text
      --password
      can be visible in local process listings on some systems.
    • Prefer
      text
      --token-file
      /
      text
      --password-file
      or environment variables (
      text
      OPENCLAW_GATEWAY_TOKEN
      ,
      text
      OPENCLAW_GATEWAY_PASSWORD
      ).
    • Gateway auth resolution follows the shared contract used by other Gateway clients:
      • local mode: env (
        text
        OPENCLAW_GATEWAY_*
        ) ->
        text
        gateway.auth.*
        ->
        text
        gateway.remote.*
        fallback only when
        text
        gateway.auth.*
        is unset (configured-but-unresolved local SecretRefs fail closed)
      • remote mode:
        text
        gateway.remote.*
        with env/config fallback per remote precedence rules
      • text
        --url
        is override-safe and does not reuse implicit config/env credentials; pass explicit
        text
        --token
        /
        text
        --password
        (or file variants)
    • ACP runtime backend child processes receive
      text
      OPENCLAW_SHELL=acp
      , which can be used for context-specific shell/profile rules.
    • text
      openclaw acp client
      sets
      text
      OPENCLAW_SHELL=acp-client
      on the spawned bridge process.

    text
    acp client
    options

    • text
      --cwd <dir>
      : working directory for the ACP session.
    • text
      --server <command>
      : ACP server command (default:
      text
      openclaw
      ).
    • text
      --server-args <args...>
      : extra arguments passed to the ACP server.
    • text
      --server-verbose
      : enable verbose logging on the ACP server.
    • text
      --verbose, -v
      : verbose client logging.

    Related

    • CLI reference
    • ACP agents

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine