Caricamento in corso...
Caricamento in corso...
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.
Manage sandbox runtimes for isolated agent execution.
OpenClaw can run agents in isolated sandbox runtimes for security. The
sandboxToday that usually means:
agents.defaults.sandbox.backend = "ssh"agents.defaults.sandbox.backend = "openshell"For
sshremoteopenclaw sandbox recreateopenclaw sandbox explainInspect the effective sandbox mode/scope/workspace access, sandbox tool policy, and elevated gates (with fix-it config key paths).
bashopenclaw sandbox explain openclaw sandbox explain --session agent:main:main openclaw sandbox explain --agent work openclaw sandbox explain --json
openclaw sandbox listList all sandbox runtimes with their status and configuration.
bashopenclaw sandbox list openclaw sandbox list --browser # List only browser containers openclaw sandbox list --json # JSON output
Output includes:
dockeropenshellopenclaw sandbox recreateRemove sandbox runtimes to force recreation with updated config.
bashopenclaw sandbox recreate --all # Recreate all containers openclaw sandbox recreate --session main # Specific session openclaw sandbox recreate --agent mybot # Specific agent openclaw sandbox recreate --browser # Only browser containers openclaw sandbox recreate --all --force # Skip confirmation
Options:
--all--session <key>--agent <id>--browser--forcebash# Pull new image docker pull openclaw-sandbox:latest docker tag openclaw-sandbox:latest openclaw-sandbox:bookworm-slim # Update config to use new image # Edit config: agents.defaults.sandbox.docker.image (or agents.list[].sandbox.docker.image) # Recreate containers openclaw sandbox recreate --all
bash# Edit config: agents.defaults.sandbox.* (or agents.list[].sandbox.*) # Recreate to apply new config openclaw sandbox recreate --all
bash# Edit config: # - agents.defaults.sandbox.backend # - agents.defaults.sandbox.ssh.target # - agents.defaults.sandbox.ssh.workspaceRoot # - agents.defaults.sandbox.ssh.identityFile / certificateFile / knownHostsFile # - agents.defaults.sandbox.ssh.identityData / certificateData / knownHostsData openclaw sandbox recreate --all
For the core
sshbash# Edit config: # - agents.defaults.sandbox.backend # - plugins.entries.openshell.config.from # - plugins.entries.openshell.config.mode # - plugins.entries.openshell.config.policy openclaw sandbox recreate --all
For OpenShell
remotebashopenclaw sandbox recreate --all # or just one agent: openclaw sandbox recreate --agent family
bash# Update only one agent's containers openclaw sandbox recreate --agent alfred
When you update sandbox configuration:
Use
openclaw sandbox recreateSandbox settings live in
~/.openclaw/openclaw.jsonagents.defaults.sandboxagents.list[].sandboxjsonc{ "agents": { "defaults": { "sandbox": { "mode": "all", // off, non-main, all "backend": "docker", // docker, ssh, openshell "scope": "agent", // session, agent, shared "docker": { "image": "openclaw-sandbox:bookworm-slim", "containerPrefix": "openclaw-sbx-", // ... more Docker options }, "prune": { "idleHours": 24, // Auto-prune after 24h idle "maxAgeDays": 7, // Auto-prune after 7 days }, }, }, }, }
© 2024 TaskFlow Mirror
Powered by TaskFlow Sync Engine