npx -y cc-safety-net@latest install --openclaw. It installs CC Safety Net as an OpenClaw plugin through OpenClaw’s own CLI and checks that the plugin loaded. Then restart the OpenClaw Gateway. The plugin checks exec calls and fails closed.
Install CC Safety Net in OpenClaw
1
Check your OpenClaw version
Make sure you run OpenClaw 2026.8.1 or later. Upgrade OpenClaw if you run an older release.
2
Run the installer
3
Restart the OpenClaw Gateway
Restart the Gateway. Do the same after every update or uninstall.
4
Confirm the plugin is active
If
plugins.allow is set in openclaw.json, it must also list cc-safety-net. An allowlist that omits it stops the plugin from loading even when it is enabled.What the OpenClaw install changes
The installer runsopenclaw plugins install on the plugin directory that ships in the npm package, with --force --accept-capabilities. That command also enables the plugin. A plugin you disabled yourself in openclaw.json stays disabled on install and update. Run openclaw plugins enable cc-safety-net to enable it.
How install verifies the OpenClaw plugin loaded
After installing, the installer runsopenclaw plugins inspect cc-safety-net --runtime --json. Any status other than loaded fails the install. A disabled status prints:
Where OpenClaw keeps its configuration
Install anddoctor resolve OpenClaw’s paths the way OpenClaw does, so they find a relocated OpenClaw install.
What the OpenClaw plugin checks
OpenClaw loads CC Safety Net as an in-process plugin. The plugin checks only theexec tool, against the agent’s workspace directory. It does not check OpenClaw’s file tools.
What happens when the OpenClaw check fails
The plugin fails closed. It blocks anexec call when it cannot resolve the agent’s workspace, when workdir resolves outside it, or when the call names an execution host other than auto or gateway, such as sandbox or node. If the plugin throws, OpenClaw blocks the call.
If the plugin fails to load when the Gateway starts, the Gateway keeps running without it and exec runs unchecked. After a restart, confirm the plugin loaded with openclaw plugins inspect cc-safety-net --runtime.
OpenClaw coverage limits
- Other tools. The plugin does not check
apply_patchor OpenClaw’s read, write, and edit file tools. Anexecevent that carries atoolKind, such as Code Mode’s JavaScriptexec, gets no decision. - The configured host default. The plugin reads only the call’s own
host. The plugin checks a call with nohostas a local Gateway call even whentools.exec.hostroutes it tonodeorsandbox. autowith a sandbox. When a sandbox runtime is active, anautocall runs in the sandbox filesystem, but the plugin still checks path rules against the Gateway workspace. Command rules are unaffected.openclaw agent exec. This command never loads the plugin hook registry, so CC Safety Net neither checks nor audits its tool calls. The plugin does check the same call throughopenclaw agent --local.- The Codex-native relay. CC Safety Net makes no claim about Codex-native shell, patch, or MCP calls that OpenClaw relays.
- What
doctorcan see.doctorreads the plugin directory andopenclaw.jsononly. It does not ask a running Gateway whether the plugin loaded. - Windows. OpenClaw’s own CLI installs the plugin, but
doctorlooks for the POSIX state layout and misreports it.
Sessions that run outside the agent workspace
OpenClaw runsexec in the session’s working directory, which is not always the agent workspace. A managed-worktree session runs in its own checkout, by default under <state>/worktrees, and a session created with a cwd runs there. The hook context has no working directory, so the plugin checks every exec call against the agent workspace. In such a session:
- The plugin checks a command with no
workdiragainst the workspace, but the command runs in the session directory. - A relative
workdirresolves against the workspace instead of the session directory. - The plugin blocks an absolute
workdiroutside the workspace, such as the session’s own worktree.
Uninstall CC Safety Net from OpenClaw
Troubleshoot OpenClaw
- Install fails with an unknown-option error for
--accept-capabilities. Your OpenClaw is older than 2026.8.1. Upgrade OpenClaw and run the install again. - Install reports status
disabled. Runopenclaw plugins enable cc-safety-net, then restart the Gateway. - Install or uninstall refuses to run. The
cc-safety-netextension directory holds something other than a managed CC Safety Net plugin. Move or remove that directory and run the command again.