Plan → Apply
Why cloud deployments go through a reviewable artifact.
Cloud providers do not deploy straight from a command. They emit a plan you read first.
clawops plan --stack production # writes plan.json
# review it, commit it, put it in a PR
clawops apply plan.jsonWhy
A deployment driven by an agent, or by a colleague in a hurry, reaches a cloud account only through an artifact a human can read. The plan is that artifact: JSON, diffable, and committable.
The MCP tools generate plans; they do not apply them without the plan existing first.
What a plan contains
Provider and region, instance type, network rules (which CIDRs may reach SSH and the gateway), the OpenClaw version, and any config overlay. Secrets appear as references, never values.
What it is not
apply is not immutable plan execution. It re-runs the provisioning with the parameters from
the reviewed plan. It does not replay a locked provider-level artifact. Cloud state that changed
between plan and apply is reconciled against live infrastructure, which can produce a
different diff than the one you read.
The plan records the stack version at generation time and compares it at apply time, so drift is detected and surfaced rather than silently applied.
Private-only stacks
Once clawops harden --tailscale has moved a stack onto its tailnet address, you can close its
public SSH and gateway rules with a plan:
clawops plan --stack prod --private-only --out /tmp/private.json
clawops apply /tmp/private.jsonplan and apply both refuse unless this machine can reach the stack over the tailnet at that
moment. To reopen, apply an ordinary plan with --ssh-cidr. Then clawops harden --tailscale-revert takes the host off the tailnet.
Local provider
plan and apply are cloud-only. The local provider bootstraps over SSH with no state backend,
so use clawops up directly.