# openclaw · Confinement

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [openclaw](https://ai-agents-review.com/runtime/openclaw.md)
- Column: [Confinement](https://ai-agents-review.com/column/confinement.md) (Execution controls)
- Mark: 0→3 [opt: sandbox.mode docker] s
- Default deployment: 0
- Best supported configuration: 3 (opt: sandbox.mode docker)
- Page: https://ai-agents-review.com/cell/openclaw/confinement

## Rationale

Default off. Docker sandbox confines exec and file tools (sandboxed read/write/edit, src/agents/core-coding-tools.ts:19-21), network none; auxiliary-process confinement unresolved

## Rubric criteria for this column

- 0: No restriction: tools run as the user with no approval or policy by default
- 1: Policy or approval layer only (allowlists, approval prompts, reviewer model). No OS boundary
- 2: An OS/container boundary exists but is opt-in, **or** is default-on only for a subset of effect paths, leaving the main shell/file tools unconfined
- 3: Default-on OS-enforced boundary for the main shell and file effects (filesystem writes restricted)
- 4: Level 3, plus network restricted by default **and** children and auxiliary processes (MCP stdio, hooks, cron) confined at least as tightly

## Review finding

No OS boundary by default: `sandbox.mode` is off, and exec runs on the Gateway host with security `full` and ask `off`. File tools are not workspace-limited unless `tools.fs.workspaceOnly` is set. `before_tool_call` hooks fail closed. [opt: sandbox docker/podman/ssh; Docker defaults are network `none`, read-only root, cap-drop ALL]. A sandboxed parent cannot spawn an unsandboxed child. [X78][X79][X80][X81][X82][X83][X84]

## Evidence cited by the mark

- [X78] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/sandbox/config.ts#L218-L221 — sandbox mode default off, workspaceAccess none — [S]
- [X79] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/sandbox/config.ts#L96-L106 — [opt docker] readOnlyRoot true, network none, capDrop ALL, pidsLimit 1024 — [S]
- [X80] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/infra/exec-approvals-config.ts#L94-L96 — exec DEFAULT_SECURITY full, DEFAULT_ASK off, ask fallback deny — [S]

## Evidence also cited by the review finding

- [X81] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/core-coding-tools.ts#L278-L296 — workspace root guard only under tools.fs.workspaceOnly or session policy — [S]
- [X82] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/agent-tools.before-tool-call.policy.ts#L247-L268 — before_tool_call hooks can block or require approval (fail-closed) — [S]
- [X83] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/tools/sessions-spawn-visible.ts#L274-L289 — sandboxed parent cannot spawn unsandboxed child — [S]
- [X84] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/docs/gateway/security/trust-model.md#L78-L79 — approvals described as operator guardrails, not hostile multi-tenant isolation — [D]

## Grading record

- Grader A (default / best): 0 / 2
- Grader B (default / best): 0 / 3
- Adjudication: disagreement; coordinator code check. Default off. Docker sandbox confines exec and file tools (sandboxed read/write/edit, src/agents/core-coding-tools.ts:19-21), network none; auxiliary-process confinement unresolved
