GuidesSecurity

How to run OpenClaw's security audit (and read the results)

OpenClaw ships a built-in security audit. When to run it, what --deep and --fix do, and how to make sense of the findings.

July 17, 2026Updated October 9, 2026The Everpod team
The short answer

OpenClaw ships a built-in checkup: openclaw security audit. Run it with --deep after initial setup and again after any config or networking change. It inspects your real, running setup (exposure, access policies, permissions, risky flags) and reports findings by severity. Fix the criticals, understand the warnings, and rerun until the output holds no surprises.

Running it

openclaw security audit          # standard checkup
openclaw security audit --deep   # + probes the live Gateway
openclaw security audit --fix    # applies safe remediations
openclaw security audit --json   # machine-readable output
Copied

--deep is the one to make a habit of: beyond reading your config, it probes the running Gateway, so it can catch the gap between what you think is configured and what’s actually live. Drift between config and runtime is one of the specific things the audit looks for. If OpenClaw runs in Docker, run the command inside the container (for example with docker compose exec), so it audits the environment the Gateway actually lives in.

--fix applies the safe subset of remediations automatically: tightening the permissions on state, config and credential files, and flipping open group policies to allowlists. It won’t rotate tokens or keys, disable tools, change how the Gateway is bound or exposed, or remove plugins and skills, so it cleans up the mechanical findings in one move and leaves the design choices to you.

What it checks

Reading the results like an operator

Findings arrive with a severity and a structured check ID (things like gateway.trusted_proxies_missing). Three habits turn the output from noise into an actual security practice:

What a healthy result looks like

Not necessarily zero findings: a real setup often carries a couple of understood, documented notes. Healthy means: no criticals you haven’t fixed, no warnings you can’t explain in one sentence, and no drift between the config you wrote and the Gateway that’s running. It is a perfectly achievable bar for a careful self-hoster.

Give your AI agents a permanent cloud computer.

We set it up and secure it, so all you do is use them. Run Claude Code, Codex or any agent you use, more at once than your laptop can hold, and keep them working when it’s closed. Or have OpenClaw set up and run for you.

See the developer pod

From $24/mo · your own plan or API key

Get your OpenClaw agent

$29/mo, cancel anytime · model usage included