OpenClaw Security: What to Configure Before You Trust It
What OpenClaw's own documentation says about default posture, the trust model, sandboxing, exposure and incident response, turned into a practical checklist for a self-hosted agent.
A self-hosted agent that can run commands, read files, drive a browser and message people is powerful, and any such agent deserves the same care you would give a new employee with broad access. This checklist is built from OpenClaw's own security guidance. It is not an independent audit, and we did not test the product's defences.
What are the defaults?
- On a regular host install the Gateway binds to loopback.
- Most chat channels reply to unknown DM senders with a pairing code; you approve with
openclaw pairing approve <channel> <code>. - Group access is allowlisted, usually behind a mention gate.
- Container images default to an exposed bind, so they need authentication.
- Some workspace channels trust workspace membership by default; each channel page states its own defaults.
- Sandboxing is not on by default: tools run on the host for the main session unless you configure it (README).
What trust model does OpenClaw assume?
The docs say: one trust boundary per Gateway. Assume a single operator, or a team whose members trust each other. OpenClaw is not a hostile multi-tenant boundary. If users may be adversarial to each other, run separate Gateways with separate credentials, ideally on separate OS users or hosts. Also note that agents with message-tool access can send across conversations and providers by default; use cross-provider messaging restrictions if you need to confine them.
What should I do before relying on it?
- Run the auditRun
openclaw security auditand fix findings in the order it suggests. Dangerous or insecure flags are tracked by the audit. - Start from a hardened baselineKeep the Gateway local, paired and tool-restricted. Add capability deliberately, not by default.
- Set allowlists and DM policiesDecide who may message the agent. In multi-user setups, isolate sessions.
- Restrict tools and sandboxReview control-plane tools, node execution (
system.run), plugins and sandboxing. Use per-agent access profiles in multi-agent setups, and read-only modes or read-only workspaces where they fit. Full access without a sandbox should be an explicit choice. - Treat inbound content as untrustedMessages, web pages, files and emails can carry instructions aimed at the model (prompt injection). The README tells you to treat inbound messages as untrusted input. Keep bypass flags off in production.
- Guard secretsThe docs link a credential storage map, file-permission guidance, workspace
.envhandling and notes on what logs and transcripts contain. Read them, and keep credentials out of places the agent can read unless it needs them. - Keep it updatedThe getting-started page notes that specific Node versions include security fixes. Staying on current releases is part of the baseline.
- Use a dedicated hostThis is our editorial suggestion, not a docs requirement: run the Gateway on a dedicated machine or VM, not the computer holding your other accounts.
Can I expose the Gateway to the internet?
The docs cover bind address, firewall rules, mDNS discovery, Gateway WebSocket authentication, Tailscale Serve identity headers, reverse-proxy setup and HTTP access to the Control UI. Before exposing the Gateway beyond loopback, follow the exposure runbook, and use trusted-proxy auth if a reverse proxy supplies operator identity. As a general rule, do not put an unauthenticated control interface on the public internet.
What if something goes wrong?
The documentation outlines operator incident response: contain the problem, rotate credentials, audit what happened, and collect evidence. Decide in advance how you would revoke the agent's access to each connected account, so you are not working it out under pressure.
How much should I let it do?
Grow permissions in steps: read-only first, non-sensitive data, then limited writes, with approval for sending messages, spending money or changing records. This is the same controlled-delegation habit we describe in AI skills for beginners. For real-world failures of AI systems, see AI safety incidents and warning signs.
Based on OpenClaw's published documentation read on 3 November 2026. We read a summary of the security page and did not test the product's controls. The docs are the authority; follow their current guidance for your version.
Frequently asked questions
Is OpenClaw secure by default?+
Partly. The docs say it ships with conservative defaults: on a regular host install the Gateway binds to loopback, most chat channels answer unknown DM senders with a pairing code, and group access is allowlisted, usually behind a mention gate. But the README says tools run on the host for the main session unless you configure sandboxing, and container images default to an exposed bind and need authentication.
Can several untrusting people share one Gateway?+
Not safely. The docs say there is one trust boundary per Gateway: assume a single operator or a team whose members trust each other. For mutually adversarial users, use separate Gateways and credentials, ideally separate OS users or hosts.
What command checks my configuration?+
`openclaw security audit`. The docs recommend running it and fixing findings in the order it suggests.
What if I think the Gateway was compromised?+
The docs point to operator incident-response steps: contain, rotate credentials, audit, and collect evidence. Follow the current runbook on docs.openclaw.ai.
Sources
- Gateway security — OpenClaw docs (accessed November 3, 2026). Default posture, trust model, exposure guidance, audit command and incident response. Summary read.
- openclaw/openclaw (README) — GitHub (accessed November 3, 2026). MIT license; about 393.8k stars on the access date; install commands; sandboxing not on by default for the main session.
Related reading
Who writes this?
This piece carries the Technology Desk byline. The site was co-founded by Liyam Flexer, Co-Founder & Investor. Content is managed by Adam Green, Content Manager, with Tal Slavin joining as Writer & Editor. A byline identifies who is responsible for the editorial content; it does not claim the author tested a product. Articles carry an editorial-review status, and those awaiting review say so. Questions or corrections: contact.