Install, verify and run InnerWarden on the machine this OpenClaw agent runs on. InnerWarden Community (free, 1.6.11 or newer) screens this agent's own exec, process, write, edit and apply_patch calls before they run, through its innerwarden-guard plugin on OpenClaw's before_tool_call hook (OpenClaw 2026.9.7 or newer), and the calls it makes to its MCP servers through the proxy. Monitor first; enforce is the owner's choice. InnerWarden Pro (paid, Linux) adds the host layer with the kernel Execution Gate. Use when your owner asks to install InnerWarden, check what it protects here, see what it refused, ask whether a command is safe to run, turn on enforce, upgrade it, or remove it.
---
name: innerwarden-security
description: Install, verify and run InnerWarden on the machine this OpenClaw agent runs on. InnerWarden Community (free, 1.6.11 or newer) screens this agent's own exec, process, write, edit and apply_patch calls before they run, through its innerwarden-guard plugin on OpenClaw's before_tool_call hook (OpenClaw 2026.9.7 or newer), and the calls it makes to its MCP servers through the proxy. Monitor first; enforce is the owner's choice. InnerWarden Pro (paid, Linux) adds the host layer with the kernel Execution Gate. Use when your owner asks to install InnerWarden, check what it protects here, see what it refused, ask whether a command is safe to run, turn on enforce, upgrade it, or remove it.
user-invocable: true
metadata: {"openclaw":{"always":false,"emoji":"🛡️","requires":{"bins":["curl"]},"os":["linux","darwin"]}}
---
# InnerWarden, from inside OpenClaw
InnerWarden puts a verdict (**allow**, **review** or **deny**, with reasons) in
front of what an AI agent tries to run. You are that agent. This skill helps
your owner install it, prove it works, and run it, without you ever weakening
it.
Full documentation, kept current: <https://github.com/InnerWarden/innerwarden-skill>.
Read `--help` on the installed binary before trusting any list, including this
one.
## Your rules, before anything else
1. **Never lower, pause, remove or loosen the guard yourself.** Monitor mode,
disconnecting, `allow`, `mute`, `contain`, disarming a kernel control,
stopping InnerWarden's services and uninstalling are your owner's to type,
in their own terminal. Since Community 1.6.16 so are changes to the
guard's configuration: an alert channel (`innerwarden notify` with a
flag), a second opinion (`innerwarden llm set`, `llm set-key`),
`innerwarden setup` and `--guard`. Give them the exact line and one
sentence on why, and wait. If a command is refused, do not retry it
another way: no unset variables, no wrapper scripts, no other launcher,
no `--operator` (it is for your owner's own scripts, and it is refused in
your shell). One exception: Community
1.6.12 or newer also refuses, with the same message, a line that names
InnerWarden's tools and runs a program from a variable (`$TOOL ...`),
because it cannot read which program runs. Write that line with the
program named in plain sight and run it again; if the plain line is
refused too, it is your owner's. Never touch the
`innerwarden-guard` plugin: its files in `~/.openclaw/extensions`, its
entry in `openclaw.json`, or OpenClaw's commands that disable or remove a
plugin. In enforce it refuses that anyway.
2. **Ask before installing anything.** Show your owner the command first.
3. **Never ask for a password, a private key or an API token**, and never echo
one back. Hand your owner the command that needs it.
4. **Never use `curl -k`** against InnerWarden: if its certificate does not
verify, treat the answer as `review`.
## What it is
| | what it protects | where |
|---|---|---|
| **InnerWarden Community** (free, Apache-2.0) | for OpenClaw (Community 1.6.11 or newer, OpenClaw 2026.9.7 or newer): its own `exec`, `process`, `write`, `edit` and `apply_patch` through the plugin `innerwarden-guard`, and calls to its MCP servers through the proxy (section 3) | Linux, macOS (Windows experimental) |
| **InnerWarden Pro** (paid, per protected agent, <https://innerwarden.com/pricing>) | the host underneath: sensor, detectors, response, and the kernel Execution Gate, Secret Read Guard and DNS Guard; since Pro 0.17.22 also the System Files, Connect, Workspace and Signal Guards around the agent | Linux only |
Pro is source-available and paid, not open source; only Community is. Kernel
enforcement exists on Linux only. InnerWarden is not an EDR replacement and not
a compliance certificate.
## 1. See what is there
```sh
command -v innerwarden && innerwarden --version # Community (since 1.6.16 names Pro only where its licence is installed)
command -v innerwarden-ctl && innerwarden-ctl --version # Pro host layer
innerwarden agents list # is openclaw guarded, and how; "OpenClaw's own tools: screened, <mode>"
innerwarden status # is it on (its OpenClaw coverage line is right since 1.6.15, wrong from 1.6.11 to 1.6.14, section 3)
```
## 2. Install Community (with your owner's OK)
```sh
curl -fsSL https://innerwarden.com/free | sh # signed binary, checked before install, no root, ~/.local/bin
innerwarden --version # 1.6.11 or newer screens your own tools; current is 1.6.17
```
An older one upgrades with `innerwarden upgrade` (your owner's OK first).
If it is not found afterwards, `~/.local/bin` is not on PATH: call it as
`~/.local/bin/innerwarden`, and tell your owner to add `~/.local/bin` to PATH.
## 3. Wire OpenClaw, and say exactly what that covers
Put the choice to your owner:
- **Monitor first (recommended for a week):** they run, in their own terminal,
`innerwarden agents connect openclaw --monitor`. It records and refuses
nothing.
- **Enforce now:** you may run `innerwarden agents connect openclaw` and then
`innerwarden enforce`, once they have chosen it (`connect` alone leaves the
plugin in monitor).
Either way `connect` installs the plugin `innerwarden-guard` in **monitor**
(it records what enforce would refuse and refuses nothing) and wraps the local
MCP servers in `~/.openclaw/openclaw.json`. Then your owner restarts the
OpenClaw gateway ("Quit OpenClaw and start it again"): the gateway loads the
plugin, and reads its mode, only when it starts. The same restart follows
`innerwarden enforce` and `innerwarden dry-run`. Restarting it yourself ends
this conversation before you can report.
**What this covers for OpenClaw, in plain words:**
- **Your own tools.** Each call to `exec`, `process`, `write`, `edit` and
`apply_patch` is screened before it runs, on OpenClaw 2026.9.7 or newer.
In enforce a denied call does not run and you are told only "Refused by
InnerWarden."; a review asks your owner to allow it once or deny it, and no
answer is a refusal. In enforce the plugin also refuses any attempt to
remove, disable or rewrite it. Since 1.6.11 the CLI also recognises your
exec shell as an agent's, so the commands that lower the guard refuse there.
Since 1.6.13 the same rules, in enforce, also refuse starting another agent
without the hook that screens it, and a container that hands an agent the
host. Since 1.6.14 a command inside `sh -c` or `bash -c` gets the verdict
the same command typed directly gets; every shell write of
`authorized_keys`, the sudo rules, a crontab, a stored credential or
`~/.ssh/config` is refused; inline interpreter code that writes an agent's
settings or wipes a home is refused; and running InnerWarden's own hook is
refused. A startup file replaced from a copy, `curl -K` with an options
file it does not read, a download piped into a local script and a shell
handed a line built at run time are held for review. Those are your
owner's. Since 1.6.16 the same rules also refuse stopping InnerWarden by
its port or its unit, inline code that writes onto its files or signals
its processes, a write to a project's agent settings
(`.claude/settings.json` and the like), an order written into an agent's
instruction file (`AGENTS.md`, `CLAUDE.md`) that acts on the guard, reads
a secret or runs a download, and a change to InnerWarden's configuration.
Since 1.6.17 a script file a line runs (Python, Node, Ruby, Perl, PHP,
Lua) is read as the code it runs, the acts of inline code get the verdict
of the shell command that does the same, and destroying what the system
needs (the accounts and passwords, the sudo rules, the authentication
modules, the trust store, `fstab`, `/boot`, the system's programs,
stopping `sshd`) or a cloud resource is refused.
- **Your MCP servers.** Calls to them go through InnerWarden's proxy, and
since 1.6.13 so does what the servers send back and list: in enforce a
secret-shaped value in an answer is masked, and a description that gives
you orders is replaced with a short notice. Since 1.6.16 a server you
reach by URL goes through the proxy too (one that signs in by itself is
left as it was), and the proxy refuses a call that pays, sends, shares,
deletes or books with a value said in an order to you inside a result,
a read of a named credential store, and a call that deletes or writes the
root, a system folder, a whole home or a store of keys. Since 1.6.17 the
proxy judges a call by where its values came from (a value your owner
typed runs with a warning; a link an answer named, read back, is an
alert), and where InnerWarden Pro 0.17.22 or newer runs on the same host
it also asks Pro's prompt-injection model about the tool descriptions a
server lists (the model can only raise one). If `openclaw.json` has no
MCP servers, `connect` says so and still installs the plugin.
- **The limits, which you say too.** The plugin runs inside the OpenClaw
gateway process, so it is as trustworthy as that process. A `write` or
`edit` with a relative path is judged from the gateway's working directory.
Your other tools, your own file reads among them, are not screened by it.
On an OpenClaw older than 2026.9.7, do not describe your own tools as
screened.
`innerwarden status` from 1.6.11 to 1.6.14 says "Its built-in tools are not
screened by this edition" for OpenClaw, even with the plugin installed. That
is a known error: do not repeat it. Since 1.6.15 `status` names the plugin and
its mode. On an older CLI the accurate line is the one `innerwarden agents
list` prints, "OpenClaw's own tools: screened, monitor" (or `enforce`).
Since 1.6.15 an OpenClaw tool call past 1 MiB is never judged on the part
that was read: it is refused in enforce, and said to have gone unscreened in
monitor. Your MCP servers' tools are pinned by the proxy: in enforce, a tool
whose definition changes, or that is new after the first listing, is left
out of your tool list and refused until your owner runs
`innerwarden mcp approve <server> <tool>`. You may read what is held with
`innerwarden mcp list`; approving is your owner's.
Since 1.6.16 `innerwarden status` prints a `Hook posture:` line (`default`
or `strict`). It applies to the hooks of other agents on the machine; your
plugin keeps its own mode, monitor or enforce. On Linux, since 1.6.16 your
owner can also start you inside InnerWarden's jail with
`innerwarden contain --agent openclaw -- <the gateway command>`: `~/.openclaw`
stays writable, every place OpenClaw loads code or instructions from is
read-only, automatic updates are off, and it starts only with the plugin
wired. Since 1.6.17, on Linux 6.7 or later, your programs in it connect out
over TCP only to 443, your gateway's port, the port of a proxy setting or a
`*_BASE_URL` handed in, and each `--allow-port N` on your owner's line. It
is read from OpenClaw's documentation and held by tests, not run with a
live gateway, and starting it is your owner's.
Optional, for the record: `innerwarden observe install` (your owner runs it,
then restarts the gateway) records dangerous asks that reach you in
conversation, including ones you refuse. It is observation, not enforcement.
It grants a small plugin `allowConversationAccess`; tell your owner that before
they agree.
## 4. Prove it
```sh
innerwarden check "rm -rf /" # must come back deny
innerwarden check "ls -la" # must come back allow
innerwarden agents list # "OpenClaw's own tools: screened, monitor|enforce"
```
Since 1.6.14 `innerwarden demo` sends four known risky calls through each
connected agent's guard path and shows which were refused. Nothing is run,
and with no agent connected it sends nothing and exits 3. For you it judges
the calls by the MCP proxy's rules, with no server started: it does not go
through the plugin on your own tools, so it does not prove the plugin.
For the full proof, your owner can run `scripts/verify-install.sh` from
<https://github.com/InnerWarden/innerwarden-skill>. Its last step, after the
gateway restart, is for you to run `echo <the token it prints>` with your own
`exec` tool: the plugin screens it, and the script finds it in the record. Do
not report "protected" until that run says "Screening confirmed".
## 5. Ask before you act
Your own tools are screened by the plugin, and in monitor nothing is refused
yet. You can still choose to ask before a command that could do damage:
```sh
innerwarden check "<the exact command>"
```
On a Pro host the same question goes to the host, which also knows what has
happened on it today:
```sh
curl -s --cacert /var/lib/innerwarden/dashboard-cert.pem \
-X POST https://127.0.0.1:8787/api/agent/check-command \
-H 'content-type: application/json' \
-d '{"command": "<the exact command>", "agent_name": "openclaw"}'
```
- `deny`: do not run it. Tell your owner what you were about to do and why it
was refused.
- `review`: ask your owner before running it.
- `allow`: it matched no rule. That is not a safety judgement; use your own.
- No answer, an error or a certificate failure: treat it as `review`.
Asking is a habit, not a control: it only covers what you remember to ask
about. The control is the guard itself, and on Linux with Pro, the kernel.
## 6. Day to day, for your owner
```sh
innerwarden agents list # what is guarded, and the plugin's mode
innerwarden graph # what was screened, and how each ended
innerwarden notify --test # do alerts arrive (your owner sets the channel: since 1.6.16 you are refused it)
innerwarden enforce # when your owner decides: denials become real; then they restart OpenClaw
innerwarden upgrade --check # is there a newer release
```
A verdict your owner disagrees with is theirs to teach, at their own terminal:
`innerwarden allow "<glob>"`. Going back to monitor (`innerwarden dry-run`) is
theirs too. Since 1.6.16 those commands need a terminal: a script of your
owner's that runs one with no terminal passes `--operator`, and your shell is
refused it either way.
## 7. InnerWarden Pro on a Linux host
Installing Pro needs the licence file from the purchase email and root, and it
can edit the bootloader (with a reboot your owner decides on). It is your
owner's step, or a coding agent's following
<https://github.com/InnerWarden/innerwarden-skill/blob/master/docs/pro-on-a-server.md>.
A host that must send nothing out has an opt-in offline mode since Pro
0.17.19; that page says how.
Once Pro is there, it can follow OpenClaw's gateway (your owner runs this):
```sh
sudo innerwarden-ctl agent connect --unit <OpenClaw's systemd unit>
```
That scopes the Execution Gate and the userns guard to OpenClaw. Armed in
enforce, the Execution Gate then refuses, in the kernel, a program OpenClaw's
processes try to run that was not authorised in advance, whichever tool started
it. In observe or rehearse it records and blocks nothing. Arming
is a deliberate step after a week of watching; read
<https://github.com/InnerWarden/innerwarden-skill/blob/master/docs/managing-pro.md>.
Health on a Pro host: `sudo innerwarden-ctl get status` and
`sudo innerwarden-ctl arm --check` (the second changes nothing).
Since Pro 0.17.19 `agent connect` also prints a line saying agent profiles
are off. That is the default, and they are a preview: turning them on is your
owner's choice. Do not turn them on or suggest it.
Since Pro 0.17.21 the shells your connected gateway runs meet the Community
guard Pro carries (1.6.17 in Pro 0.17.22): your launcher set-up at the head
of the script comes off and the command after it is judged. A risky line asks
your owner, once per command shape per hour. Your owner gets a chat message
only for what is serious; the rest waits in one daily summary.
Since Pro 0.17.22 the same pairing also scopes four more kernel guards to
OpenClaw: the System Files Guard (changes to the account, sudo and PAM
files, the host keys, `/boot` and the system's programs), the Connect Guard
(where your processes connect), the Workspace Guard (where they change
files) and the Signal Guard (which processes they may stop). Your owner's
`sudo innerwarden-ctl arm` puts them in observe only; enforcing each one,
and every change to their lists, is your owner's. What you do to the host
(a system file removed, a startup file changed, a service stopped) is a
case on the host, read from the kernel, however you ran it.
## 8. Removing it
Your owner runs these, in this order:
```sh
innerwarden agents disconnect --all # first, while the binary exists: it also takes the plugin out
# restart OpenClaw
innerwarden uninstall
rm -rf ~/.config/innerwarden
```
The order matters here: `innerwarden uninstall` runs the same disconnect, but a
gateway still running keeps the plugin it loaded at startup, and in enforce a
plugin that cannot reach the binary refuses every one of your own tool
calls.
On a Pro host, every kernel control comes off first (the full list is in
<https://github.com/InnerWarden/innerwarden-skill/blob/master/docs/managing-pro.md>,
"Removing it"), then `sudo innerwarden-ctl uninstall`.
don't have the plugin yet? install it then click "run inline in claude" again.