Does OpenClaw sandbox and approve agent commands for a company?
OpenClaw includes built-in controls for everything an agent may run or touch: sandbox scope, workspace access, exec approval modes, elevated execution and per-agent tool allow and deny lists. The open-source release is the only edition named in the project's public materials, and the README states there is no paid tier. The controls exist, but sandboxing is opt-in, so a fresh deployment does not isolate command execution until someone turns it on. The project also assumes one trusted boundary per gateway, which means these settings protect against mistakes and scope creep, not against hostile users sharing one gateway.
The approval decision therefore belongs to the organization, not the tool. Before a rollout, the security owner should decide which exec security mode is acceptable for each agent: deny, allowlist or full. Setting deny and removing node pairing disables remote execution entirely, which is the simplest starting point for a pilot. If allowlist is chosen, someone must own the list of permitted commands and review it as tasks change. The organization should also decide who may enable tools.elevated, which runs exec outside the sandbox, and keep tools.elevated.allowFrom restricted to named operators.
Confirm the remaining choices in your own environment before approving use. Set the sandbox scope (agent, session or shared) and workspace access (none, ro or rw) for each agent, and check that Docker bind sources are not pointed at sensitive paths. Then deny gateway, cron, sessions_spawn and sessions_send on any surface that receives untrusted input, as the tool permissions documentation suggests. Reviewers can work through the OpenClaw tool permissions documentation and the OpenClaw prompt injection documentation to test these settings against the scenarios they must approve.
Permission controls by availability and where they apply
This table compares each OpenClaw permission control by its documented default, whether it is opt-in or active from the start, and whether it depends on an outside component such as Docker. Use it to see which controls must be turned on or confirmed before a staff member runs an agent on company hardware. The main takeaway is that several of the strongest controls are not on by default, so the reviewer should verify each setting in the actual gateway configuration.
| Control | Default setting and status | Outside component needed |
|---|---|---|
| Docker sandbox scope (agents.defaults.sandbox.scope) | Defaults to agent. Session gives stricter per-session isolation, and shared uses one container or workspace. | Yes, Docker for the sandbox container |
| Sandbox workspace access (workspaceAccess) | Defaults to none. ro mounts the agent workspace read-only at /agent, rw mounts it read and write at /workspace. | Yes, Docker for the sandbox container |
| Sandboxing overall | Opt-in according to the prompt injection docs, so confirm it is enabled for each agent. | Yes, Docker for the sandbox container |
| Exec approval mode: deny | Blocks exec when set as the security mode. Setting deny and removing node pairing disables remote execution. | No |
| Exec approval mode: allowlist | Named security mode. Confirm the default mode and the allowlist contents in your own configuration. | No |
| Exec approval mode: full | Named security mode. Confirm the default mode in your own configuration and treat it as the least restrictive option. | No |
| Node pairing removal | Removing node pairing, combined with security set to deny, disables remote execution. | No |
| tools.elevated | Escape hatch that runs exec outside the sandbox. Keep tools.elevated.allowFrom tight. Confirm the default state. | Depends on sandbox use, Docker when the sandbox is in place |
| Per-agent tools.allow and tools.deny | Set under agents.entries.<agentId>.tools. Docs suggest denying gateway, cron, sessions_spawn and sessions_send on untrusted surfaces. | No |
| Docker bind source checks | Bind sources are checked after symlink resolution against a denylist including /etc, /proc, /var/run and home credential paths such as .ssh. | Yes, Docker for the sandbox container |
How sandbox scope and exec approvals decide what runs
Four controls decide what an OpenClaw agent can run and read, and they apply in a fixed order. First, the sandbox scope (agents.defaults.sandbox.scope) decides how containers are shared: agent is the default, session gives stricter per-session isolation, and shared uses a single container or workspace for everything. Second, workspace access decides what the container sees. It defaults to none, ro mounts the agent workspace read-only at /agent, and rw mounts it read and write at /workspace. Third, the exec security mode decides whether a command runs at all: deny, allowlist or full. Fourth, elevated mode (tools.elevated) is an escape hatch that runs exec outside the sandbox. Each layer narrows or widens the one before it, so a review should walk the chain in that order rather than trust any single setting.
Sandboxing is opt-in, so an operator should first confirm that the sandbox is enabled for every agent that handles external input, then record the scope and workspace mode for each. Docker bind sources are checked after symlink resolution against a denylist that includes /etc, /proc, /var/run and home credential paths such as .ssh. That check is a useful backstop, but it is not a substitute for a mount plan. Ask the operator to list every bind source in the agent configuration and confirm that none points at a credential store, a shared data volume or a host directory the agent does not need. Confirm the exact denylist entries against the current docs before you rely on them, since the list may change between releases.
Elevated mode and remote execution deserve the most scrutiny. Setting exec security to deny and removing node pairing disables remote execution, which is the simplest way to stop an agent running commands on other machines. Keep tools.elevated.allowFrom tight, because any identity on that list can run commands outside the sandbox. Before approving a rollout, ask the team to show which combination of scope, workspace mode, exec mode and elevated settings each agent uses, and to name the people allowed to elevate. Per-agent tool lists, covered in the next section, provide a further limit on what each agent can call.
Decisions the organization must make before approving OpenClaw
Before staff run OpenClaw, the operator must set how far the agent can reach: which sandbox scope it runs in, what it can write, what commands it may execute, and which tools stay off for untrusted surfaces. Each choice below changes the blast radius of a single agent action, so record the decision and the setting that enforces it.
Sandbox scope: agent, session or shared
The agents.defaults.sandbox.scope setting controls how Docker sandboxes are shared. It defaults to agent, session gives stricter per-session isolation, and shared uses a single container or workspace for everything. Choose the narrowest scope that still fits the workflow, and confirm in your own test environment that one session cannot read another session's files. Remember that sandboxing is opt-in, so a deployment without it runs tools on the host.
Workspace access level
The workspaceAccess setting decides whether the sandbox sees the agent workspace at all. It defaults to none, ro mounts the workspace read-only at /agent, and rw mounts it read and write at /workspace. Read-only access is the safer default for analysis tasks, while write access should be approved only for agents that need to change files. Confirm which mode each agent uses, because the setting is per agent.
Exec approval mode and allowlist
Exec approval security modes are deny, allowlist and full. Setting security to deny, together with removing node pairing, disables remote execution entirely. Allowlist mode limits commands to the entries the operator approves, so review each entry for commands that can write files, fetch remote content or spawn other processes. Full mode should not be approved for staff use without a documented exception.
Elevated mode and allowFrom
The tools.elevated setting is an escape hatch that runs exec outside the sandbox. Decide whether any agent needs it at all, and if so, keep tools.elevated.allowFrom limited to named operators. Every identity on that list can run commands on the gateway host outside the sandbox, so treat changes to it as access grants that need a named owner and a review date.
Tools denied on untrusted surfaces
Per-agent tools.allow and tools.deny lists sit under agents.entries.<agentId>.tools. The docs suggest denying gateway, cron, sessions_spawn and sessions_send on untrusted surfaces, such as group chats or inbound channels where strangers can send messages. Map each channel to the tools it may use, and test that a message from an untrusted sender cannot trigger a denied tool.
Separate gateways for mixed trust
OpenClaw assumes one trusted boundary per gateway and states it is not designed as a boundary between adversarial users on one gateway. If staff with different trust levels or different data access will use OpenClaw, the docs recommend separate gateways and credentials, ideally on separate OS users or hosts. Decide this before rollout, since splitting a shared gateway later means moving credentials and sessions.
OpenClaw security policyHow the permission model changes by deployment situation
A single team running OpenClaw on one gateway matches the project's stated model most closely: the gateway is one trusted boundary, and every operator is inside it. In this setup the main questions are how much the agent can reach on the host and whether the defaults are tightened for that host. Sandboxing is opt-in according to the project's prompt injection docs, so the team has to turn it on deliberately rather than assume it is active.
- Sandbox scope:
agents.defaults.sandbox.scopedefaults toagent. Confirm whethersessionorsharedfits the team's workflow before the first use. - Workspace access:
workspaceAccessdefaults tonone. Chooseroorrwonly for the workspace the team actually needs. - Exec security mode: Start from
denyorallowlistand move tofullonly with a written reason. - Elevated mode: Keep
tools.elevated.allowFromto the named people who need it, since elevated mode runs exec outside the sandbox. - Tool lists: Use per-agent
tools.allowandtools.denyunderagents.entries.<agentId>.toolsto limit each agent to its job.
Before go-live, check each of these values in the live config file and record who approved them.
When several teams or groups of staff share an OpenClaw environment, the trust model changes. The project's security docs assume one trusted boundary per gateway and recommend separate gateways and credentials for mixed-trust deployments, ideally on separate OS users or hosts. The permission settings inside one gateway therefore cannot be the only separation between teams, and the organization has to decide where the boundaries sit.
- Separate gateways: Give each trust group its own gateway, credentials and, where possible, its own OS user or host.
- Per-agent tool lists: Deny
gateway,cron,sessions_spawnandsessions_sendon any agent that receives input from less trusted users. - Plugin review: Plugins run in-process with the gateway's privileges, so only approved plugins should be loaded into any shared gateway.
- Bind mounts: Docker sandbox bind sources are checked after symlink resolution against a denylist, but reviewers should still confirm which host paths each sandbox can reach.
- Ownership of the boundary: Record which team owns each gateway, its credentials and its approval policy.
Confirm with the project's docs and your own tests that each separation holds before onboarding a second team to the same host.
Many staff will reach OpenClaw through chat channels such as Slack, Teams, Telegram or WhatsApp rather than through a terminal. Messages from those channels can carry instructions written by people outside the team or content copied from web pages and email. The project's prompt injection docs treat the model as untrusted input handling, so the permission settings must limit what a message can cause the agent to do, whatever the sender asks for.
- Untrusted surfaces: Treat group chats and open channels as untrusted surfaces and deny
gateway,cron,sessions_spawnandsessions_sendfor agents that serve them. - Exec approvals: Set the exec security mode to
denyfor channel-facing agents unless a specific command set is approved in an allowlist. - Elevated mode: Keep
tools.elevated.allowFromempty or limited to named operators, never to channel participants. - Remote execution: Setting security to
denyand removing node pairing disables remote execution, which is a simple control for channel-only use. - Sandbox defaults: Confirm that the workspace mount for these agents is
noneunless a read-only mount is required.
Test these rules with messages from an account that has no operator role, since the channel path is where unexpected instructions usually arrive.
In regulated environments, or on hosts with no outbound route, the permission model has to match the organization's own access control and change management. OpenClaw is local-first and runs on the user's own hardware, so the organization keeps responsibility for the host, its network path and its records. The project's security policy describes OpenClaw as infrastructure for trusted operators, which means the controls that matter most sit outside the agent: operating system permissions, network rules and evidence collection.
- Host isolation: Run the gateway under a dedicated OS user with no access to credential stores, and confirm that Docker bind sources exclude paths such as
/etc,/proc,/var/runand home credential directories like.ssh. - Network egress: Decide which destinations the host can reach. The agent's allowlists do not replace firewall rules.
- Documented exec policy: Keep the exec approval mode, allowlist contents and elevated settings in version-controlled configuration with named owners and review dates.
- Incident path: Define how a blocked or unexpected exec is reported and reviewed, using the project's incident response guidance as a starting point.
- Compliance evidence: Preserve the configuration history so assessors can see what the settings were at each date.
Ask your compliance and security teams to confirm which of these controls their frameworks require before any staff use the host.
Order of work to set permissions before production use
This sequence takes an OpenClaw gateway from its default settings to a tested permission posture, so each control is set on purpose and checked before any staff member relies on the agent. The output is a documented configuration that a security reviewer can trace step by step.
Fix the trust boundary and gateway layout
Before touching agent settings, decide who the operators are and how many trust levels share one gateway. The OpenClaw security docs assume one trusted boundary per gateway, so mixed-trust groups should run separate gateways with separate credentials, ideally on separate OS users or hosts. Your platform or security team owns this decision and writes it down. It is done when every gateway has a single, named trust level and an owner who accepts it.
Set sandbox scope and workspace access
Choose the sandbox scope for each gateway. The default is agent, session gives stricter per-session isolation, and shared uses a single container or workspace. Then set workspace access, where the default is none, ro mounts the agent workspace read-only at /agent, and rw mounts it read and write at /workspace. Remember that sandboxing is opt-in, so confirm it is enabled rather than assuming it. It is done when a reviewer can point to the scope and access value in the configuration and to a test showing the agent cannot read paths outside its mount.
Set exec mode to deny or allowlist
Choose an exec approval security mode. The docs name deny, allowlist and full, and full is the mode that should not reach production without a documented reason. Start with deny if the agent needs no command execution, or allowlist if specific commands are required. If remote execution is not needed, setting security to deny and removing node pairing disables it. Your team should own the allowlist entries and review each one. It is done when the chosen mode is recorded and a test command outside the allowlist is refused.
Restrict elevated mode
The docs describe tools.elevated as an escape hatch that runs exec outside the sandbox. Leave it off unless a specific, approved use case requires it, and when it is needed, keep tools.elevated.allowFrom tight, naming only the identities that may invoke it. Security leadership should approve any exception in writing. It is done when elevated mode is either disabled or limited to a named identity list, and the list is reviewed on a set schedule your organization defines.
Build per-agent allow and deny lists
Define tools.allow and tools.deny under agents.entries.<agentId>.tools for each agent, so every agent has only the tools its job requires. The docs suggest denying gateway, cron, sessions_spawn and sessions_send on untrusted surfaces, so apply those denials to any agent that receives messages from outside your organization. Keep the lists in version control so changes are reviewed. It is done when each agent has a written tool list and a reviewer has confirmed the denials for untrusted channels.
Test with prompt injection and untrusted channel scenarios
Run controlled tests in a non-production gateway. Send messages containing instructions that attempt to make the agent read files, run commands or call denied tools, and confirm that sandbox limits, exec modes and tool denials hold. Include messages arriving through the chat channels you plan to connect. The OpenClaw prompt injection docs are the reference for the attack patterns to test. Record each scenario, the expected result and the actual result. It is done when every test has a documented outcome and any failure has a fix and a retest on record before the gateway goes live.
Decision path from an agent request to an executed command
A request arrives on a chat channel and reaches the agent, which must pass the per-agent tools.allow and tools.deny lists before any command is considered. Allowed exec calls then face the exec security mode (deny, allowlist or full). Commands that run are placed inside the Docker sandbox, where workspace access and bind source checks limit what they can touch. Only the tools.elevated escape hatch can run exec outside the sandbox, and it is limited by tools.elevated.allowFrom, so review that list first.
How a request is checked before a command runs on the gateway host.
Evidence a security reviewer asks for and where it comes from
This table lists the evidence a reviewer should collect for OpenClaw's sandbox, exec approvals, elevated mode and tool lists, and where each item lives on the gateway host. Read each row as a question to answer from the actual configuration, not from memory or defaults. The main takeaway is that defaults are not evidence: a reviewer needs the effective values from the running gateway.
| Evidence item | What to capture | Where it comes from |
|---|---|---|
| Sandbox scope | Configured value of scope (agent, session or shared) and whether sandboxing is enabled at all | agents.defaults.sandbox.scope in the gateway configuration; sandboxing is opt-in |
| Workspace access | Whether the agent workspace is mounted none, read-only at /agent or read-write at /workspace, per agent | workspaceAccess setting in the sandbox configuration of each agent |
| Exec security mode | Active mode (deny, allowlist or full) and whether node pairing is removed | Exec approval settings in the gateway configuration and the paired node list |
| Exec allowlist contents | Each permitted command or pattern, with the owner who approved it and the review date | Exec allowlist entries in the gateway configuration; confirm against the approval record your team keeps |
| Elevated allowFrom list | Every sender identity allowed to run exec outside the sandbox | tools.elevated.allowFrom in the gateway configuration |
| Per-agent tool lists | Effective tools.allow and tools.deny for each agent, including gateway, cron, sessions_spawn and sessions_send | agents.entries.<agentId>.tools in the gateway configuration |
| Gateway and channel inventory | Each gateway instance, its host, OS user, and each connected chat channel and credential owner | Gateway configuration, channel settings and your deployment records; confirm with the operator |
| Security audit output | Dated output of the built-in security audit, with findings triaged and fixes recorded | Output of the openclaw security audit command run on the gateway host |
Questions buyers ask before approving OpenClaw permissions
Are OpenClaw exec approvals enforced per user?
No. Exec approvals are not a per-user boundary. OpenClaw's docs assume one trusted boundary per gateway, and the security policy says the project is not designed to separate adversarial users sharing one gateway. The exec security modes (deny, allowlist and full) control what the agent may run, but they are set by the gateway operator, so they do not give each staff member an isolated permission set. For mixed-trust teams, the docs recommend separate gateways and credentials, ideally on separate OS users or hosts. Before relying on approvals to separate colleagues, test the behavior in your own environment and confirm it with the OpenClaw tool and agent permissions documentation.
Is sandboxing turned on by default in OpenClaw?
No. The OpenClaw prompt injection docs describe sandboxing as opt-in, so you must enable and verify it on each gateway. When it is on, agents.defaults.sandbox.scope defaults to agent, with session for stricter per-session isolation and shared for a single container or workspace. workspaceAccess defaults to none. Setting it to ro mounts the agent workspace read-only at /agent, and rw mounts it read and write at /workspace, so rw widens what the agent can change. Docker bind sources are checked after symlink resolution against a denylist that includes /etc, /proc, /var/run and home credential paths such as .ssh. Confirm the effective settings with the security audit before approval.
What does elevated mode risk in OpenClaw?
Elevated mode is the main way an agent can leave its sandbox. The OpenClaw docs describe tools.elevated as an escape hatch that runs exec outside the sandbox, so commands it covers run with the gateway host's privileges instead of the container's limits. Plugins already run in-process with gateway privileges, so a permissive elevated setting widens the blast radius from the agent to the whole host. The docs advise keeping tools.elevated.allowFrom tight. For reviewers, the practical controls are to leave elevated mode off unless a named use case needs it, list only specific identities in allowFrom, pair it with an exec mode that is not full, and review changes to these keys as part of configuration management.
How much effort do these controls take and what drives it?
The software itself has no license fee, because OpenClaw is MIT licensed and its README states there is no paid tier, hosted service or token. The cost is therefore staff time and infrastructure, plus any outside help you buy. One-time work includes designing gateway and credential separation, setting sandbox scope and workspace access, writing the allowlists and testing them. Recurring work includes reviewing configuration after upgrades, keeping the Node.js runtime on a supported patch level, and monitoring exec activity. The main drivers are the number of trust groups (each may need its own gateway, credentials and OS user or host), the number of agents and tools, which chat channels are exposed, and whether any workspace is mounted read and write. Ask any provider for a quote built from a written scope with defined deliverables.
Can our team configure these permissions without outside help?
A small team with one trust boundary and a clear owner for the gateway host may be able to do it internally, since the OpenClaw security docs are organized by topic, including tool and agent permissions, prompt injection and an operator incident response page. The harder parts are separating mixed-trust groups, hardening the host, testing that allowlists and denies behave as configured, and documenting evidence for reviewers. DeployOpen plans, implements, hardens, tests and documents self-hosted platforms inside your own infrastructure, and it also runs security testing that covers AI agents. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. DeployOpen does not issue audit reports or certifications.
What do the MIT license and no paid tier mean for support?
They mean no vendor support contract comes with the software. The README says OpenClaw has no paid tier, hosted service or token, so the project does not sell a service level agreement that the supplied materials describe. Your team owns patching, upgrades and monitoring. Vulnerabilities in core should be reported through a private GitHub security advisory on the openclaw/openclaw repository, and the policy states there is no paid bug bounty. The README recommends Node.js 24.22.1 or later on the 24.x line, or 26.12.1 or later, for security. Confirm with the project which community support channels exist before you depend on them. If you need ongoing help, DeployOpen offers retainers for support, upgrades and continuous testing, priced from a written scope.
What a reviewer should confirm with the project and their own environment
The sources supplied for this topic describe what the sandbox, exec approval and tool settings are, but they do not say whether an organization can enforce those settings centrally across every gateway and staff member. A reviewer should confirm with the OpenClaw project whether any paid edition, managed configuration or policy layer exists that locks agents.defaults.sandbox.scope, workspaceAccess, exec security modes or tools.elevated.allowFrom for all operators. Because the project describes itself as a local-first tool for trusted operators, a reviewer should not assume that a file on one host is enforced anywhere else. Ask the project directly, and record the answer as part of the approval decision.
Verification has to happen on each gateway host, and the reviewer should run it there. Read the effective configuration on the host, confirm that the sandbox is turned on (the prompt injection docs describe sandboxing as opt-in), and check that workspaceAccess is none or ro for any agent that reads untrusted content. Confirm that exec security is deny or allowlist where remote execution is not needed, that tools.elevated is either absent or limited to named senders, and that high-risk tools such as gateway, cron, sessions_spawn and sessions_send are denied on any surface that receives outside messages. Test the bind-source denylist by attempting a mount of a credential path and confirming it is refused. Keep the results as dated evidence.
Two adjacent areas are not settled by this page. Whether approvals or policy can be required and checked centrally, and what drift detection gives, belongs to the OpenClaw policy and governance controls topic. Whether the built-in security audit reports on these same settings, and in what order to triage them, belongs to the OpenClaw security risks and built-in security audit topic. Read those before setting a final baseline, and confirm the results with the project's own security documentation at OpenClaw security docs.
How DeployOpen tests and hardens OpenClaw permissions in your environment
DeployOpen plans and deploys OpenClaw inside your own infrastructure, then tests and hardens the sandbox scope, workspace access, exec approval modes, elevated mode and per-agent tool lists against a written scope. Each engagement is fixed-scope, so the permissions you approve are the ones we configure, test and document.
How we scope
- We agree in writing which agents, gateways and hosts fall under the permissions review before work starts.
- We record the intended sandbox scope, workspace access level and whether any workspace must be writable.
- We list which chat channels, tools and exec modes staff expect, so denied capabilities are named explicitly.
How we build
- We configure Docker sandbox scope and workspace mounts, checking bind sources against sensitive host paths.
- We set exec approval modes and allowlists, and confirm whether remote execution is disabled where required.
- We restrict elevated mode and per-agent tool allow and deny lists, including gateway, cron and session tools on untrusted surfaces.
How we hand over
- We test each control against the documented behavior and record results, including attempts to escape the sandbox.
- We deliver configuration files, a permissions register and runbook notes so your team can review changes.
- We document the trust boundary assumptions, including that one gateway serves one trusted boundary, so approvers see the limits.
How we support
- Ongoing support, upgrades and continuous testing are available as a retainer after handover.
- A retainer can cover re-testing permissions after OpenClaw upgrades and after new tools or channels are added.
- Ask for the support scope, response expectations and change process to be written into the quote.

