Security
What clawops protects, what it does not, and what leaves your network.
clawops provisions cloud infrastructure and hands an agent the keys to it. This page states the boundaries: what is protected, what is not, and what leaves your network.
Credentials never enter clawops
This is an invariant, not a default. ~/.clawops/config.json holds a reference to where a
credential lives. AWS_PROFILE, gcloud ADC, AZURE_CLIENT_ID, never the credential. Pulumi
inherits cloud credentials from your process environment; clawops does not pass them through its
own configuration.
Your own secrets (API keys, bot tokens) live in ~/.clawops/secrets/ at mode 0600, and plans
and config carry $secret:<NAME> references rather than values. See Secrets.
Network posture
Deny-all by default. Security groups, firewall rules and NSGs start closed. A plan has to name
the CIDRs that may reach SSH, and auto resolves your own address into a /32 rather than
opening the internet.
The gateway is not exposed. It publishes on 127.0.0.1; reach it with clawops tunnel.
Publishing it to the network is an explicit plan-time choice, and it serves plaintext HTTP, put
TLS in front of it yourself. There is no TLS or certificate automation.
SSH host keys are verified against a known_hosts file. There is no "accept anything" mode.
clawops destroy forgets the instance's key so a recycled address does not fail verification
later.
What leaves your network
From the deployed host:
| Destination | When |
|---|---|
download.docker.com, distro mirrors | first bootstrap only |
ghcr.io | bootstrap and every gateway update |
clawhub.ai | during apply, installing model-provider plugins |
registry.npmjs.org | during apply, when config names a channel |
169.254.169.254 | AWS with Bedrock only: IMDSv2 region lookup |
nodejs.org | clawops agent install, unless the pinned Node runtime is already there; checked against a pinned checksum |
From your machine: your cloud provider's APIs and your state backend during stack operations, and
ifconfig.me only when you use auto to resolve your public IP.
clawhub.ai is needed at deploy time
Model-provider plugins are installed during apply, not at boot. In an egress-restricted
environment this is the destination people miss, and the failure appears as a gateway that
starts and then exits.
Agents driving clawops
Every MCP tool carries explicit safety annotations, read-only, destructive, idempotent,
open-world, so an agent can tell a query from an action. Destructive tools require confirmation
unless yes: true is passed.
Three modes:
clawops mcp serve --read-only # queries only
clawops mcp serve --no-destructive # changes, but nothing irreversible
clawops mcp serve # everything--read-only stops clawops making changes. It does not sandbox the agent's other tools, and
it has no effect on anything the agent can reach outside clawops.
Confirmation does not stop an agent. An agent can answer a confirmation, or pass yes: true,
itself. For an agent reachable from a chat channel, that makes every mode above a choice of what
it may do, not a check on whether it should.
A host agent never acts (2.4). clawops agent install runs clawops on the gateway host in a
fourth mode, for one OpenClaw agent that only you can message. Its tools read the host it runs
on, with no SSH, Pulumi state or cloud credentials. A destructive tool you allowed returns the
clawops command for you to run on your machine; yes: true is ignored; destroying its own
stack is refused outright. It re-checks on every call that only you can reach it. See
Operations.
Fleet peers only read (2.5). A host agent installed with --serve-peers answers other host
agents over your tailnet, with no token: it asks tailscaled who is calling and serves only a node
carrying the tag. Peers get the read tools, about that host only. A host agent with --peer
forwards only reads, needs --strict, and sends each query as a dedicated user that an nftables
table alone lets out to the peer port, so neither the gateway container nor root can. A change
naming a peer is refused with the command for you to run. The calling host logs which peer a read went to, and the peer logs who asked. See
Fleet.
Wiring clawops into a gateway reaches every agent on it, unless each one denies
clawops__*. See MCP.
The host's own cloud identity
clawops adds no credentials to a deployed host, but a cloud host can carry an identity that any process on it can use:
| Cloud | Identity on the host |
|---|---|
| AWS | an instance role with SSM's managed-instance policy, plus bedrock:InvokeModel when Bedrock is enabled |
| Azure | a system-assigned managed identity, which reads the stack's Key Vault secrets when Key Vault is enabled |
| GCP | none since 2.4; before, the default compute service account with cloud-platform |
Logs and the audit trail
Every MCP tool call is logged with its name, sanitised arguments, duration and result.
Redaction covers Authorization, *token*, *secret*, *key* (except keyName and
keyPath), password and connectionString.
Not redacted: resource ids, ARNs, regions, instance types, stack names and file paths.
Threats considered
The threat model covers credential leakage through logs, an agent invoking a destructive tool without consent, plan tampering between review and apply, state-backend compromise, token forwarding in MCP HTTP mode, supply-chain compromise and SSH key reuse, each with the mitigation in place and its limits.