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

    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.

    OpenShell

    OpenShell is a managed sandbox backend for OpenClaw. Instead of running Docker containers locally, OpenClaw delegates sandbox lifecycle to the

    text
    openshell
    CLI, which provisions remote environments with SSH-based command execution.

    The OpenShell plugin reuses the same core SSH transport and remote filesystem bridge as the generic SSH backend. It adds OpenShell-specific lifecycle (

    text
    sandbox create/get/delete
    ,
    text
    sandbox ssh-config
    ) and an optional
    text
    mirror
    workspace mode.

    Prerequisites

    • The
      text
      openshell
      CLI installed and on
      text
      PATH
      (or set a custom path via
      text
      plugins.entries.openshell.config.command
      )
    • An OpenShell account with sandbox access
    • OpenClaw Gateway running on the host

    Quick start

    1. Enable the plugin and set the sandbox backend:
    json5
    { agents: { defaults: { sandbox: { mode: "all", backend: "openshell", scope: "session", workspaceAccess: "rw", }, }, }, plugins: { entries: { openshell: { enabled: true, config: { from: "openclaw", mode: "remote", }, }, }, }, }
    1. Restart the Gateway. On the next agent turn, OpenClaw creates an OpenShell sandbox and routes tool execution through it.

    2. Verify:

    bash
    openclaw sandbox list openclaw sandbox explain

    Workspace modes

    This is the most important decision when using OpenShell.

    text
    mirror

    Use

    text
    plugins.entries.openshell.config.mode: "mirror"
    when you want the local workspace to stay canonical.

    Behavior:

    • Before
      text
      exec
      , OpenClaw syncs the local workspace into the OpenShell sandbox.
    • After
      text
      exec
      , OpenClaw syncs the remote workspace back to the local workspace.
    • File tools still operate through the sandbox bridge, but the local workspace remains the source of truth between turns.

    Best for:

    • You edit files locally outside OpenClaw and want those changes visible in the sandbox automatically.
    • You want the OpenShell sandbox to behave as much like the Docker backend as possible.
    • You want the host workspace to reflect sandbox writes after each exec turn.

    Tradeoff: extra sync cost before and after each exec.

    text
    remote

    Use

    text
    plugins.entries.openshell.config.mode: "remote"
    when you want the OpenShell workspace to become canonical.

    Behavior:

    • When the sandbox is first created, OpenClaw seeds the remote workspace from the local workspace once.
    • After that,
      text
      exec
      ,
      text
      read
      ,
      text
      write
      ,
      text
      edit
      , and
      text
      apply_patch
      operate directly against the remote OpenShell workspace.
    • OpenClaw does not sync remote changes back into the local workspace.
    • Prompt-time media reads still work because file and media tools read through the sandbox bridge.

    Best for:

    • The sandbox should live primarily on the remote side.
    • You want lower per-turn sync overhead.
    • You do not want host-local edits to silently overwrite remote sandbox state.

    warning

    If you edit files on the host outside OpenClaw after the initial seed, the remote sandbox does **not** see those changes. Use `openclaw sandbox recreate` to re-seed.

    Choosing a mode

    text
    mirror
    text
    remote
    Canonical workspaceLocal hostRemote OpenShell
    Sync directionBidirectional (each exec)One-time seed
    Per-turn overheadHigher (upload + download)Lower (direct remote ops)
    Local edits visible?Yes, on next execNo, until recreate
    Best forDevelopment workflowsLong-running agents, CI

    Configuration reference

    All OpenShell config lives under

    text
    plugins.entries.openshell.config
    :

    KeyTypeDefaultDescription
    text
    mode
    text
    "mirror"
    or
    text
    "remote"
    text
    "mirror"
    Workspace sync mode
    text
    command
    text
    string
    text
    "openshell"
    Path or name of the
    text
    openshell
    CLI
    text
    from
    text
    string
    text
    "openclaw"
    Sandbox source for first-time create
    text
    gateway
    text
    string
    —OpenShell gateway name (
    text
    --gateway
    )
    text
    gatewayEndpoint
    text
    string
    —OpenShell gateway endpoint URL (
    text
    --gateway-endpoint
    )
    text
    policy
    text
    string
    —OpenShell policy ID for sandbox creation
    text
    providers
    text
    string[]
    text
    []
    Provider names to attach when sandbox is created
    text
    gpu
    text
    boolean
    text
    false
    Request GPU resources
    text
    autoProviders
    text
    boolean
    text
    true
    Pass
    text
    --auto-providers
    during sandbox create
    text
    remoteWorkspaceDir
    text
    string
    text
    "/sandbox"
    Primary writable workspace inside the sandbox
    text
    remoteAgentWorkspaceDir
    text
    string
    text
    "/agent"
    Agent workspace mount path (for read-only access)
    text
    timeoutSeconds
    text
    number
    text
    120
    Timeout for
    text
    openshell
    CLI operations

    Sandbox-level settings (

    text
    mode
    ,
    text
    scope
    ,
    text
    workspaceAccess
    ) are configured under
    text
    agents.defaults.sandbox
    as with any backend. See Sandboxing for the full matrix.

    Examples

    Minimal remote setup

    json5
    { agents: { defaults: { sandbox: { mode: "all", backend: "openshell", }, }, }, plugins: { entries: { openshell: { enabled: true, config: { from: "openclaw", mode: "remote", }, }, }, }, }

    Mirror mode with GPU

    json5
    { agents: { defaults: { sandbox: { mode: "all", backend: "openshell", scope: "agent", workspaceAccess: "rw", }, }, }, plugins: { entries: { openshell: { enabled: true, config: { from: "openclaw", mode: "mirror", gpu: true, providers: ["openai"], timeoutSeconds: 180, }, }, }, }, }

    Per-agent OpenShell with custom gateway

    json5
    { agents: { defaults: { sandbox: { mode: "off" }, }, list: [ { id: "researcher", sandbox: { mode: "all", backend: "openshell", scope: "agent", workspaceAccess: "rw", }, }, ], }, plugins: { entries: { openshell: { enabled: true, config: { from: "openclaw", mode: "remote", gateway: "lab", gatewayEndpoint: "https://lab.example", policy: "strict", }, }, }, }, }

    Lifecycle management

    OpenShell sandboxes are managed through the normal sandbox CLI:

    bash
    # List all sandbox runtimes (Docker + OpenShell) openclaw sandbox list # Inspect effective policy openclaw sandbox explain # Recreate (deletes remote workspace, re-seeds on next use) openclaw sandbox recreate --all

    For

    text
    remote
    mode, recreate is especially important: it deletes the canonical remote workspace for that scope. The next use seeds a fresh remote workspace from the local workspace.

    For

    text
    mirror
    mode, recreate mainly resets the remote execution environment because the local workspace remains canonical.

    When to recreate

    Recreate after changing any of these:

    • text
      agents.defaults.sandbox.backend
    • text
      plugins.entries.openshell.config.from
    • text
      plugins.entries.openshell.config.mode
    • text
      plugins.entries.openshell.config.policy
    bash
    openclaw sandbox recreate --all

    Security hardening

    OpenShell pins the workspace root fd and rechecks sandbox identity before each read, so symlink swaps or a remounted workspace cannot redirect reads out of the intended remote workspace.

    Current limitations

    • Sandbox browser is not supported on the OpenShell backend.
    • text
      sandbox.docker.binds
      does not apply to OpenShell.
    • Docker-specific runtime knobs under
      text
      sandbox.docker.*
      apply only to the Docker backend.

    How it works

    1. OpenClaw calls
      text
      openshell sandbox create
      (with
      text
      --from
      ,
      text
      --gateway
      ,
      text
      --policy
      ,
      text
      --providers
      ,
      text
      --gpu
      flags as configured).
    2. OpenClaw calls
      text
      openshell sandbox ssh-config <name>
      to get SSH connection details for the sandbox.
    3. Core writes the SSH config to a temp file and opens an SSH session using the same remote filesystem bridge as the generic SSH backend.
    4. In
      text
      mirror
      mode: sync local to remote before exec, run, sync back after exec.
    5. In
      text
      remote
      mode: seed once on create, then operate directly on the remote workspace.

    Related

    • Sandboxing -- modes, scopes, and backend comparison
    • Sandbox vs Tool Policy vs Elevated -- debugging blocked tools
    • Multi-Agent Sandbox and Tools -- per-agent overrides
    • Sandbox CLI --
      text
      openclaw sandbox
      commands

    © 2024 TaskFlow Mirror

    Powered by TaskFlow Sync Engine