Skip to content
agents.store
opsoperations

openclaw-ops

Day-two operations for a fleet of self-hosted OpenClaw gateway instances on one Docker host. Discovers every instance from the live Docker state instead of hard-coded paths, classifies it ok / degraded / down / alien, and drives the repair work: health and liveness reporting, provider-auth triage (expired, emptied and shadowed OAuth profiles, shared-credential token sink), config surgery with a snapshot and an executable rollback, memory and embedding repair, shared skills and plugins consolidation, secret-delivery audit by key name only, security audit, version-drift and channel-aware upgrades, and reference-instance cloning. Mutations are dry-run behind an eight-block plan, need --yes, and need a typed confirmation when irreversible. Secrets are reported as fingerprint, presence and expiry — never as values. No MCP server and no required environment variables: the one optional variable, OPENCLAW_OPS_CONFIG, is an escape hatch for the fleet-config path, and deployment specifics live in that operator-owned config outside the repository. Also carries the workspace persona guides (AGENTS.md, SOUL.md, USER.md, IDENTITY.md, standing orders, bootstrap, memory, session analysis) taken over from the retired openclaw-configurator.

v1.3.0Updated

  • openclaw
  • fleet
  • operations
  • docker
  • docker-compose
  • self-hosted
  • gateway
  • diagnostics
  • health-check
  • oauth
  • provider-auth
  • secrets
  • infisical
  • upgrades
  • version-drift
  • memory
  • embeddings
  • security-audit
  • dry-run
  • workspace
  • persona
  • agents-store

Install

Pick your agent for the steps.

Install on Claude Code

  1. 1.Add the marketplace

    /plugin marketplace add Agents-Store/claude-plugins
  2. 2.Install the plugin

    /plugin install openclaw-ops@agents-store-claude-plugins

    Type it inside Claude Code.

Claude Code install docs

What is inside

Skills (23)

  • agents-md

    Guide for creating and customizing AGENTS.md — the operating rules, procedures, and behavioral guardrails for an OpenClaw agent. Use this skill whenever the user is working on agent behavior, operating procedures, session startup sequences, memory management policies, group chat rules, safety red lines, tool usage priorities, or standing order references. Even if they just say "the agent should do X differently" or "add a rule for Y", this skill applies because operational rules belong in AGENTS.md. Also use when deciding what belongs in AGENTS.md versus SOUL.md — this skill clarifies the boundary.

  • bootstrap-boot

    Guide for BOOTSTRAP.md (first-run setup ritual) and BOOT.md (gateway restart checklist) in OpenClaw. Use this skill whenever the user is setting up a new agent for the first time, configuring onboarding flows, creating first-run discovery processes, or defining what should happen on gateway restart. Even questions like "what should happen when the agent starts for the first time", "how do I initialize a fresh agent", or "what runs on reboot" need this skill.

  • config-surgery

    Use when an OpenClaw instance config is about to be read, changed, restored, split or explained — a model chain, channel, tool, plugin, skill, session or memory setting, a secret reference, an include, a gateway that refuses to start after an edit, a config the process appears to ignore, a change that looks applied and has no effect, an edit that removes lines, a stray backup or rejected sidecar file next to the config, or the question of what needs a restart.

  • docs-research

    Use when anything about OpenClaw is about to be stated or recommended that could have changed — a config key, a CLI flag or subcommand spelling, an auth method, a release channel, a current version, a model name, whether a feature exists or is deprecated — and whenever a claim needs a citation, two sources disagree, an instance's own documentation looks older than the project's, or the situation is offline and it must be decided what may still be said without a live source.

  • examples

    Use when a whole OpenClaw fleet job is in view rather than a single answer — first contact with an unknown host, a fleet that lost its provider login, an upgrade with an unclear rollback, a new instance to stand up and prove isolated — or when the question is what the end-to-end sequence of this plugin looks like and which command owns which step. Only for OpenClaw fleets, not for generic infrastructure walkthroughs.

  • fleet-diagnostics

    Use when an OpenClaw instance is misbehaving or suspected of it — health green but nothing is happening, a container restarting or unhealthy, an empty or ignored config, models returning unauthorized or reporting logged out, tokens that are present but empty, schedules failing or firing twice or stalling, memory search dead or paused or a state database growing without limit, keys missing inside the container, shared skills that look installed and do nothing, a version that does not match its siblings, or a port published where it should not be. Also use when a report, audit or repair needs a stable finding id.

  • fleet-model

    Use when work touches an OpenClaw gateway instance or several of them on one host — inventory, status, health, logs, provider auth, config, secrets, memory, shared skills, upgrades, cloning — or when an instance is named or selected, or when the alternative would be a hand-written docker exec, a guessed path, or a remembered version or model name.

  • heartbeat-md

    OpenClaw heartbeats, the periodic background check, now an ordinary automation job (schedule, quiet hours, model, session, delivery per job; checklist in its scratch); `agents.defaults.heartbeat` and HEARTBEAT.md are retired and migrated by Doctor. Use for periodic checks, quiet hours, heartbeat costs, standing orders the heartbeat checks, or a leftover HEARTBEAT.md. Not for writing standing orders (standing-orders), BOOT.md (bootstrap-boot) or automation diagnostics (fleet-diagnostics).

  • identity-md

    Guide for creating IDENTITY.md — the agent's name, creature type, vibe, emoji, and avatar in OpenClaw. Use this skill whenever the user is naming their agent, choosing an emoji or avatar, setting up the agent's visual identity, or asking how agent identity works. Even simple questions like "what should I name my agent", "how do I set the bot emoji", or "change the agent's avatar" need this skill.

  • instance-clone

    Use when a new OpenClaw instance is to be created from an existing one — cloning the reference, standing up a canary or a throwaway test instance, adding an instance for a new workload or tenant, picking a free gateway port for one, deciding what a new instance may share with its source and what it must not — and also when an instance created earlier behaves like its source, answers on the wrong port, has no credentials, or is suspected of not being isolated from the instance it was copied from.

  • instance-upgrade

    Use when an OpenClaw instance or fleet is being upgraded, or when the question is which OpenClaw version to move to — version drift between instances, the current stable release, a release channel or registry dist-tag, an image tag or digest pin, a soak or hold-back window, a gateway that will not start after an update, schedules firing several times per tick, a session that expired after an update, or what a given OpenClaw release added.

  • memory-ops

    Use when OpenClaw memory or its embeddings are involved — embedding calls failing authorization or reporting an invalid token, vector search paused or returning nothing useful, an index-identity warning, a last-index timestamp far in the past, search still poor after the provider was fixed, choosing or changing an embedding provider, model or key, a reindex, or a state database that keeps growing and needs retention or compaction. This skill owns the subscription-session-versus-embedding-key distinction; chat-side credential and OAuth problems are provider-auth.

  • memory-system

    Guide for OpenClaw's memory system — MEMORY.md curation, daily logs, memory flush, and vector search. Use this skill whenever the user asks about how the agent remembers things between sessions, wants to configure memory management, needs to understand daily logs versus long-term memory, or is setting up memory curation processes. Also applies to questions about vector search, memory security in groups, or "how does the agent remember".

  • provider-auth

    Use when model-provider credentials are in question — unauthorized responses, an instance reporting itself logged out, tokens present but empty, an expiry approaching or passed, several instances losing the same account at once, a login that has to be performed, a choice between an API key, provider OAuth and a local CLI backend, billing that moved to metered tokens without a config change, a provider CLI reporting not-logged-in inside its container, or credential directories being shared, split or copied between instances. Embedding and vector-search failures are memory-ops, not this skill.

  • secrets-infisical

    Use when secrets reach an OpenClaw instance through an injection wrapper and something about that is in question — a feature silently off while the config looks right, an instance receiving far fewer keys than its siblings, a plaintext env file inside the state tree, a token or client id sitting in a backup or identity copy, a key that has to be added, rotated, or proven delivered, a machine identity or its project binding, a secret reference in the config, or a restart whose safety depends on every referenced key still resolving.

  • security-audit

    Use when the security posture of an OpenClaw instance or of the whole fleet is in question — a gateway port that may be reachable from outside the host, firewall rules that read correctly but may not apply to published ports, an operator bearer token that may be shared between instances or sitting in a plaintext file, permissions on state, credential or identity trees, a metrics or admin endpoint answering without authentication, a secret found in a backup or an identity copy, a question about who can reach an instance and what that access grants, before exposing an instance to a new network or new people, and after any suspected compromise.

  • session-analysis

    Techniques for analyzing OpenClaw session transcripts (listed through the CLI, exported as a trajectory bundle, then queried with jq) to understand user behavior, tool effectiveness, error patterns, token costs, and active hours. Use this skill whenever the user wants to analyze how their agent is performing, what users are asking, which tools work best, what errors occur, or how to improve the workspace based on real usage data. Also applies to questions like "what do my users ask about", "is my agent working well", or "show me session stats".

  • shared-assets

    Use when skills or plugins are shared across OpenClaw instances on one host — shared trees mounted but empty, the same skill copied into every instance, a shared copy edited with no change in behaviour, an installed asset that never appears in the registered list, a plugin change that did nothing, a load candidate refused over ownership, a suspect install lock, or any request to deduplicate, promote, register, verify or roll out shared skills and plugins.

  • soul-md

    Guide for creating and refining SOUL.md — the agent's personality, values, tone, and boundaries. Use this skill whenever the user is working on who the agent should be, its communication style, persona traits, behavioral boundaries, or domain-specific character. Even requests like "make the agent more friendly", "add a boundary", "change the tone", or "the agent sounds too corporate" need this skill because personality and tone live in SOUL.md, not AGENTS.md.

  • standing-orders

    Design patterns for OpenClaw standing orders — autonomous programs that give an agent permanent operating authority for defined tasks. Use when the user wants an OpenClaw agent to run recurring or scheduled work on its own, such as periodic reports, monitoring or content scheduling, or asks for the execute-verify-report pattern or cron jobs with OpenClaw. Heartbeat tuning belongs to heartbeat-md.

  • tools-md

    Guide for the local tool notes of an OpenClaw agent — environment-specific tool notes, search priorities, device names, and local infrastructure details. On current releases these live in the `## Tools` section of AGENTS.md (the standalone TOOLS.md file is retired); older workspaces still carry TOOLS.md. Use this skill whenever the user is configuring which tools their agent should prefer, adding environment notes, documenting search tool priority orders, or setting up device/API references. Even questions like "which search tool should my agent use first", "how do I tell the agent about my devices", or "add tool notes" need this skill.

  • user-md

    Guide for building USER.md — user profiles, preferences, roles, and communication styles. Use this skill whenever the user is setting up who will interact with the agent, mapping Telegram/Discord user IDs to names, configuring multi-user access, or defining communication preferences. Even questions like "how does the agent know who I am", "add a team member", or "set up user permissions" need this skill.

  • workspace-overview

    OpenClaw workspace architecture and file system overview — directory structure, file loading mechanics, character limits, scan categories (A-J), and subfolder organization patterns. Use this skill whenever the user asks about how the workspace is structured, what files get loaded automatically, character limits, what goes where, or how to organize their workspace. This is the foundational skill for workspace content — use it first when the user is new to OpenClaw or asks broad questions about workspace organization, even before more specific skills like agents-md or soul-md.

Commands (11)

  • audit

    Full fleet audit in an isolated agent — one prioritised report with a ready repair line under every finding

  • auth

    Provider credential state across the fleet — classify every profile, print the logins a human must run, watch for expiry and account drift

  • clone

    Create a new instance from the reference one — isolation preflight, a genuinely free port, materialisation of compose and state, then the remaining manual steps printed rather than skipped

  • exec

    Run one openclaw CLI call against selected instances through the single audited door

  • features

    Read the release notes across a version range and report which newly added config keys and commands this fleet could adopt — per instance, with a recommendation, a risk class and a reason. Nothing is switched on.

  • init

    First-run wizard — preflight this host, detect the OpenClaw instances on it, write the operator-owned fleet config

  • logs

    Fan out gateway logs across selected instances, redacted, with per-instance headers

  • repair

    The only repair funnel — dispatch one catalog finding id through its eight-block plan, apply on a later turn, verify

  • shared-sync

    Deduplicate skills and plugins across instances, promote the identical ones into the shared trees, register them, remove the local copies that shadow them, and verify on four levels

  • status

    Daily fleet picture — one row per instance, with HEALTH and LIVENESS as two independent verdicts

  • update

    Upgrade instances on a pinned, soaked target — baseline, verified backup, plan, apply, post-checks, schedule dedup

Agents (2)

  • openclaw-fleet-auditor

    Use this agent for a full read-only sweep of an OpenClaw fleet across every axis — inventory and layout, liveness, config, provider auth, model chain, memory and embeddings, schedules, secret delivery, shared assets, version drift, security exposure — cross-checked against the findings catalog, the upstream-issues catalog and the live documentation, returning one prioritised report with a ready-to-run repair line under each finding. <example> Context: The operator has not looked at the fleet in weeks and wants to know what is wrong before touching anything. user: "Audit the whole fleet and tell me what needs attention." assistant: "I'll use the openclaw-fleet-auditor agent to sweep every axis read-only and come back with one prioritised report." <commentary>The whole-fleet sweep is the agent's core flow: many cheap reads whose intermediate output is noise in the conversation, one document as the result.</commentary> </example> <example> Context: Every instance reports healthy, yet scheduled jobs produce nothing. user: "All the gateways say they're healthy but nothing is actually getting done. Find out why." assistant: "I'll use the openclaw-fleet-auditor agent — health and liveness are computed from disjoint evidence, and a green instance whose log has not moved is exactly what the sweep separates." <commentary>Self-reported health versus observed activity: the disagreement is the finding, and it only appears when both are gathered fleet-wide.</commentary> </example> <example> Context: Before an upgrade wave, the operator wants the pre-existing findings recorded. user: "We're upgrading next week. What's already broken, so we can tell new breakage from old?" assistant: "I'll use the openclaw-fleet-auditor agent to capture the baseline — the pre-upgrade finding set is what makes a post-upgrade regression identifiable." <commentary>Baseline capture: only new findings may block an upgrade, so the baseline has to exist before it.</commentary> </example> <example> Context: The operator asks for a fix while the audit is running. user: "Just fix the expired logins while you're in there." assistant: "The auditor is read-only by construction. I'll finish the sweep, then hand you the repair line for that finding to run through /openclaw-ops:repair." <commentary>The agent never mutates; the --yes gate lives in the command layer, where a human can answer it.</commentary> </example>

  • openclaw-incident-responder

    Use this agent to diagnose ONE broken OpenClaw instance in depth — a container in a crash loop, a gateway that is green but has stopped doing work, a search that stays degraded after its provider was fixed, a schedule that stalls for hours or stopped firing altogether, a gateway left stopped after an upgrade — reading logs iteratively, testing hypotheses against evidence, and localising the cause to a single finding id with one targeted action for a human to run. <example> Context: One container keeps restarting. user: "The gateway for that instance is restarting over and over. Fix it." assistant: "I'll use the openclaw-incident-responder agent to read the first failed start rather than the latest one — restarting a crash loop overwrites the log line that holds the cause." <commentary>Crash loop: zero restart attempts before the cause is known. The agent diagnoses and hands back one targeted action.</commentary> </example> <example> Context: An instance passes every probe and produces nothing. user: "This one says it's healthy, but its log hasn't moved in weeks and no job has run." assistant: "I'll use the openclaw-incident-responder agent — health green with a stale log is the zombie signature, and it is a symptom of an auth, secret or config failure underneath." <commentary>The zombie: every self-report comes from the process that stopped working, so the diagnosis has to come from outside it.</commentary> </example> <example> Context: Memory search is still bad after the embedding key was replaced. user: "We fixed the embedding key days ago and search is still returning nothing useful." assistant: "I'll use the openclaw-incident-responder agent to check whether search is stuck on the fallback model and whether the index identity changed with the key." <commentary>Two distinct causes with one symptom; the agent separates them before anything is restarted or reindexed.</commentary> </example> <example> Context: The user wants the responder to apply the fix. user: "You found it — go ahead and restart it and reindex." assistant: "The responder is read-only. I'll hand you the finding id and the single action to run through the repair command, where the plan and the --yes gate live." <commentary>Diagnosis and mutation are separated on purpose: the agent that formed the hypothesis is the worst judge of whether to act on it unsupervised.</commentary> </example>

Hooks (1)

  • PostToolUse

README

Day-two operations for a fleet of self-hosted OpenClaw gateways running as Docker Compose projects on one host. Inventory, health versus liveness, provider-credential triage, config surgery, secret delivery, memory and embeddings, shared skills and plugins, version drift and upgrades, security exposure, and cloning the reference instance.

The plugin knows the shape of this deployment class and the procedures. It never ships your fleet's names, paths, ports or versions: instances are discovered from live Docker state on every run, and the handful of decisions discovery cannot make live in an operator-owned config file outside this repository.

Technology-level plugin: no MCP server, no required environment variables, no stored credentials. Everything is file-based knowledge plus stdlib Python scripts. One optional variable exists — OPENCLAW_OPS_CONFIG, the first rung of the config ladder — as an escape hatch for pointing a run at a specific fleet config; unset, the ladder resolves the file on its own.

Replaces openclaw-configurator, which is retired: fleet operations are the commands, agents and scripts below, and its workspace persona skills now live here (see Workspace persona skills).

Execution model

Claude Code runs on the host that serves the gateways. There is no SSH layer, no API, no agent inside the container.

Discoverydocker compose ls --all → projects by prefix → gateway container by label → docker inspect for mounts, published port, health, restart count. Paths come from the live mount table, never from constants
The one doorevery OpenClaw CLI call goes through scripts/ocexec.py. A hand-written docker exec bypasses redaction, the risk classification, the standing bans, and the -T that --json depends on
hot modecompose exec -T into the gateway through the secret-injection wrapper — the normal path; secrets never leave the container
cold modea one-off container over the state directory, only while the instance is down, only for the subcommands that are safe on a broken instance
Metrics and tokensscraped from inside the container, so the operator bearer never crosses the host boundary

Requirements

Where it runsa shell on the host itself, with permission on the Docker socket
DockerEngine with Compose v2 (docker compose), projects discoverable via compose ls --all
Pythonpython3, stdlib only — no jq, no Node, nothing to install
Networkoptional, and only for release channels and documentation lookups. With no network the plugin still discovers, diagnoses and reports; it withholds recommendations instead of answering from memory
Write accessone config file, mode 0600, outside this repository

Operating workflow

Step 0 — first contact with the host

/openclaw-ops:init [--detect-only]

Preflights the host (OS, Docker binary, daemon, socket permission — each fatal alone), detects every compose project matching the prefix, and shows the inventory including the rows you do not manage. Then one question covering exactly what detection cannot infer: the reference instance, the canary, what stays unmanaged, and the update policy. Step 5 writes one file, mode 0600.

Nothing found is a diagnosis, not a dead end: zero compose projects means the wrong machine, projects that do not match means re-run with --prefix, everything alien means a deployment class this plugin does not model and will not touch.

Run --detect-only first if you want to look before anything is written.

Step 1 — the daily picture

/openclaw-ops:status

One row per instance: NAME STATE PROFILE ROLE MANAGED PORT VERSION HEALTH LOG-AGE NOTE. Seconds, no in-container calls.

Read HEALTH and LOG-AGE as two independent verdicts. Green health beside a log that has not moved for days is the zombie signature — the disagreement is the result, not a rendering artefact. That pair is what makes Step 2 worth its cost.

Step 2 — the deep battery, on purpose

/openclaw-ops:status --deep

Several in-container reads per instance, so never by reflex. HEALTH (container state, the three endpoints, delivery queues, credential status, memory subsystem) and LIVENESS (log age, last timer fire, last index write) are computed from disjoint evidence. Snapshots persist so the next run shows a delta: what is new, what has been sitting there for six weeks, what you fixed and it stayed fixed.

Every non-info finding prints with its ready-to-run repair line underneath.

Step 3 — the full sweep

/openclaw-ops:audit [selector] [--focus auth|versions|memory|cron|secrets|security|shared|all]

Runs the auditor agent: every axis, read-only, cross-checked against the findings catalog, the upstream-issues catalog and live documentation, returning one prioritised report. The agent has no Write or Edit — it cannot change anything even by accident.

For one instance that is deeply broken, the incident-responder agent goes the other way: iterative log reading, hypotheses against evidence, one finding id and one targeted action.

Step 4 — name the finding

A symptom is not repairable; a finding id is. The fleet-diagnostics skill turns "something is wrong" into an id from its catalog — every id carries severity, detection, fix, verification and mutation class. A symptom with no row gets a catalog row with its documentation citation first, and a repair second. That is what stops a fix from being improvised on production.

Step 5 — repair, through the one funnel

/openclaw-ops:repair <selector> --issue <finding-id>          # plan
/openclaw-ops:repair <selector> --issue <finding-id> --yes    # a LATER turn

Resolve the id to its row, resolve the targets as a mutation (an empty selector, all, an alien, unmanaged or legacy instance are refused by name), re-run the detection so a finding that no longer reproduces is reported resolved rather than repaired, then print the eight-block plan. --yes applies — never in the turn the plan was first shown.

Step 6 — credentials before anything else

/openclaw-ops:auth [selector] [--status] [--print-login]

The most expensive failure class here, and invisible until every schedule on the fleet fails at once. Classifies each profile — healthy, expiring, expired, emptied, absent, orphaned runtime, shadowed — from metadata and fingerprints, never by exercising the credential. Interactive logins are printed for a human to run, not executed. Credential repair is a precondition of upgrading, not a follow-up.

Step 7 — upgrade

/openclaw-ops:update <selector> [--to <version>] [--channel …]

R4 on every instance, every time: the state schema migrates in place, and a failed migration does not undo itself — Doctor's own pre-migration copies are not a full-state backup, and a package rollback cannot undo migrated state. The command resolves the channel through registry dist-tags (the only mechanical fact about where a channel points), enforces the soak window, pins an immutable identifier, captures a pre-upgrade baseline so only new findings block, takes the three-layer backup (the verified layer is backup create --verify) — and rejects an upgrade whose backup has not passed verification rather than warning about it. An installation older than the cut-off upstream states gets its own verdict, bridge-required: it must cross the bridge release first.

Afterwards, three checks that are easy to skip and expensive to miss: delivery queues behind a green rollup, duplicated schedule entries, and a migration that silently rewrote the primary model.

/openclaw-ops:features <selector> [--from <version>]

Reads the release notes across a range and reports, per instance, which newly added config keys and commands this fleet could adopt, with a recommendation and a risk class. Nothing is switched on.

Step 8 — the rest, in the order the fleet usually needs it

/openclaw-ops:shared-sync [selector]     # deduplicate, promote, register, unshadow, verify on four levels
/openclaw-ops:clone <new> [--from <ref>] # isolation preflight, a genuinely free port, manual steps printed
/openclaw-ops:logs [selector]            # fan out, redacted, per-instance headers
/openclaw-ops:exec <selector> -- <args>  # the audited escape hatch

Skills

SkillTriggers on
fleet-modelthe foundation every other skill assumes — shape, selector grammar, exec contract, four states, dry-run convention, symptom routing table
fleet-diagnosticsa symptom, and the catalog that turns it into a finding id; the contract shared by status, audit, repair and the auditor
provider-authlogged out, expired, emptied or shadowed credentials; one account across several instances; choosing between key, OAuth and a local CLI backend
config-surgeryreading, changing, restoring or explaining an instance config; what needs a restart; a stray backup or rejected sidecar
secrets-infisicalsecret delivery through an injection wrapper; a feature silently off; plaintext env files; proving a key is delivered
memory-opsembeddings failing authorization, paused vector search, index identity, reindexing, a state database growing without bound
shared-assetsskills and plugins shared across instances: empty mounts, duplicates, shadows, ownership refusals, install locks
instance-upgradeversion drift, channels and dist-tags, the bridge for old installations, tag versus digest, soak windows, post-upgrade traps
security-auditexposure, firewall chains that do not apply to published ports, token reuse, permissions, trust boundary
instance-clonestanding up a new instance from the reference and proving it isolated
docs-researchbefore any claim that could have changed — flags, keys, versions, model names; and when two sources disagree
examplesfour end-to-end runs on a fictional fleet, threading commands, skills and scripts into one sequence
workspace-overviewhow an instance's state directory and workspace are laid out, which files are injected, character limits, what to scan and what never to scan
agents-mdoperating rules and procedures in AGENTS.md; what belongs there versus SOUL.md; the ## Tools section
soul-mdpersona, tone, values and boundaries in SOUL.md, with industry patterns
user-mduser profiles, preferences, multi-user setups, mapping channel ids to people
identity-mdthe agent's name, creature, vibe, emoji and avatar, including the per-agent config override
tools-mdlocal tool and environment notes (now the ## Tools section of AGENTS.md; the TOOLS.md file is retired)
heartbeat-mdheartbeats: cadence and context weight in config, the checklist in the monitor scratch; the HEARTBEAT.md file is retired
standing-ordersautonomous programs with scope, triggers, approval gates and escalation, paired with automation jobs
bootstrap-bootthe first-run ritual (BOOTSTRAP.md) and the gateway-start checklist (BOOT.md)
memory-systemMEMORY.md curation, daily logs, the pre-compaction memory flush, vector-search settings
session-analysisanalysing session transcripts from a trajectory export to improve workspace files

Workspace persona skills

Workspace persona files (AGENTS.md, SOUL.md, USER.md, IDENTITY.md, standing orders, bootstrap, memory) were moved here from openclaw-configurator in 2026-10, together with the retirement of that plugin; the marketplace renames map moves installed copies to openclaw-ops. They are content-authoring guides, not operating procedures: a change they lead to is an ordinary R2 edit through the same plan, --yes and rollback discipline as any other mutation here. The configurator's post-edit hook (recursive ownership change plus the doctor's automatic-fix mode after every write) was not carried over — both are R4 operations in this plugin and never run as a routine step.

Commands

CommandArguments
/openclaw-ops:init[--detect-only] [--force]
/openclaw-ops:status[selector] [--deep] [--json]
/openclaw-ops:audit[selector] [--focus auth|versions|memory|cron|secrets|security|shared|all]
/openclaw-ops:repair<selector> --issue <finding-id> [--all-findings] [--yes]
/openclaw-ops:auth[selector] [--provider <id>] [--status] [--print-login] [--watch]
/openclaw-ops:update<selector> [--to <version>] [--channel stable|extended-stable|beta|dev] [--yes]
/openclaw-ops:features<selector> [--from <version>]
/openclaw-ops:shared-sync[selector] [--adopt-duplicates] [--restart] [--yes]
/openclaw-ops:clone<new-instance> [--from <reference>] [--port auto|<n>] [--yes]
/openclaw-ops:logs[selector] [--tail <n>] [--since <dur>] [--grep <re>] [--errors-only]
/openclaw-ops:exec<selector> -- <openclaw args…> [--json] [--timeout <s>]

Selector grammar (owned by fleet.py resolve, reimplemented nowhere): empty or managed · all (read-only) · @reference @canary @<role> · a,b · web-* · managed,-b. A mutation must name its targets — empty and all are refused, because a selector that widens as the fleet grows turns a one-instance fix into a fleet-wide incident.

Agents

AgentRole
openclaw-fleet-auditorread-only sweep across every axis → one prioritised report with a repair line per finding
openclaw-incident-responderone broken instance, in depth: crash loop, zombie, stuck search, stalled timer

Neither agent has Write or Edit. Procedures whose steps need human consent — upgrade, clone — are deliberately not delegated: a subagent cannot receive a --yes, and delegating would hide the gate.

Scripts

All Python 3, stdlib only, invoked as python3 "${CLAUDE_PLUGIN_ROOT}/scripts/<name>".

ScriptDoes
fleet.pydiscover · resolve · config --init|--show|--validate|--diff. Cheap, runs constantly
ocexec.pythe single door into the CLI: mode choice, policy refusals, redaction, exit-code meaning
healthcheck.pythe expensive probe battery; HEALTH and LIVENESS from disjoint evidence; snapshots
versions.pywhat runs, what a channel points at, and why a target is not eligible yet — soak, wrong release line, or a bridge hop first
report.pyone canonical document plus the delta against earlier snapshots — new, aged, resolved
clone.pythe deterministic half of cloning: name, free port, isolation preflight, materialisation
catalog-check.pycontract check: every finding id the battery can emit has a catalog row, at the severity that row states
hooks/validate-openclaw-json.pyPostToolUse guard: a config edited into a file the gateway would refuse to load

The fleet config

Operator-owned, outside this repository, mode 0600. Resolution ladder, first hit wins:

$OPENCLAW_OPS_CONFIG  →  ./.openclaw-ops.json  →  ~/.config/openclaw-ops/fleet.json  →  /etc/openclaw-ops/fleet.json

It holds only what discovery cannot infer. Shape (scripts/lib/fleet.example.json, values invented):

FieldMeaning
project_prefix, compose_root, data_root, gateway_servicehow this host names and lays things out
host_fingerprint, host_labelwhich machine the file describes
referencewhat clones copy and what upgrade waves lead with
policy.canary · update_channel · soak_days · stale_log_hours · snapshot_dir · batch_max · loopback_onlythe decisions autodetect cannot make
per instance: manage, role, criticality, aliases, notesscope and blast radius
per instance: secretsprovider, identity file path, project id, environment, expected key count

Never in the file: a secret value. Names, ids and counts only.

Two behaviours worth knowing. A host_fingerprint mismatch forces read-only — the file describes another machine, so every path in it is a guess; re-run init on the new host rather than editing the fingerprint. And init refuses to write inside a git work tree: an ./.openclaw-ops.json beside a repo is the most common way instance names, ports and host paths get committed.

With no config at all, discovery still works and mutations do not.

Safety

A mutation is any operation after which observable state differs from what it would have been. The word status in a command name proves nothing — the credential probe form is a mutation, because it requires a stopped gateway.

ClassGateExamples
R0 readfreeinspect, endpoints, lint, credential check, list subcommands
R1 read with effectas R2credential probe, anything on the agent path, indexing
R2 reversible--yesrestart, config edit, enabling or disabling a schedule
R3 partially reversible--yes + a backup that already existsforced reindex, memory reset or forget, sessions cleanup, database compaction
R4 irreversible--yes + a typed phraseversion upgrade, update cleanup, secret-store write, automatic fix (doctor --fix, security audit --fix), gateway-token change

Every mutation prints eight blocks before it runs: TARGET · PRECHECK · CHANGE · BACKUP · IMPACT · VALIDATE · ROLLBACK · APPLY, plus IRREVERSIBLE · CONFIRM for R3 and R4. PRECHECK shows its failures too. CHANGE carries a deletion count, and a non-zero one in a config is a flag of its own. ROLLBACK is an executable command — prose does not validate.

--yes is never added in the turn a command is first proposed. "The user said go ahead earlier" is not consent for this operation. And --yes alone does not open the exec door either: above R0 the call carries the plan behind it — --plan-id, minted by the command that showed the eight blocks, or the rendered plan itself as --plan <file>. The escape hatch runs one command; it cannot build a plan, so it does not get to skip one. The id is a record, not a string that looks right: minting writes it (command, instance, risk class, plan fingerprint, expiry) and the door refuses an id that was never issued here, has passed its short TTL, names another instance, covers a lower class — or has already been used, because it is burned on use. One plan authorises one mutation.

Credential mutations additionally take a fleet-wide front lock (fleet-auth), because the runtime's own serialisation lock lives inside a single state directory and cannot see a second instance refreshing the same rotating token.

Red lines — --yes is not enough

Upgrading without a backup that passed verification (rejected, not warned) · any fleet-wide mutation · overwriting an existing secret whose fingerprint differs · rotating a gateway token · deleting a plaintext env file before parity is proven · the automatic-fix modes of the linter and the security audit · installing assets with an unread install lock · any mutation on a legacy-layout instance · writing inside a container outside a mounted volume.

Zero retries — repeating is worse than failing

OAuth login and refresh (a retry burns a single-use token and logs out another consumer) · version update (a half-migrated state directory) · skill and plugin install (a damaged lock removes the rest) · restart during a crash loop (destroys the log line holding the cause, buys a longer backoff) · secret write. One failure means stop and inspect.

Batches

Direction decides the rule. Good → changed: fail fast — a mixed fleet is described by no document and covered by no rollback. Broken → attempted repair: continue and report — one failure is no reason to leave five instances broken. Over both, the canary barrier: anything touching more than one instance goes to the least critical one first and stops there for a separate confirmation.

What this plugin never does

  • Never prints a secret value — anywhere, including in examples. Presence, key name, class, size bucket, expiry and a fp: fingerprint answer every question a value could; a fingerprint match proves two values are identical without either entering the transcript, where nothing can be unprinted.
  • Never accepts a key pasted into the chat. It prints the line that reads the value with echo disabled and verifies afterwards by fingerprint. A value already pasted is treated as leaked.
  • Never reads a credential file, env file or identity file whole into context — structure-only reads, names and fingerprints.
  • Never passes the capability-acceptance flag. Upstream deliberately made confirmation flags and automatic fixes unable to approve capabilities; automating that consent would destroy the mechanism. The line is printed for a human.
  • Never hand-writes docker exec.
  • Never mutates an alien, unmanaged or legacy-layout instance.
  • Never mutates against a moving image tag — no recorded immutable identifier, no mutation, because a rollback without one is impossible.
  • Never restarts to diagnose.
  • Never quotes a version, flag spelling or model id from memory. Any model id entering a diff is an echo of that instance's own catalogue.

Limits of testing — read this before trusting a green run

What is verified: the mechanics. Static checks (no absolute paths, no required environment variables, no model-id literals outside example blocks, every mutation path carrying all eight blocks and a non-empty executable rollback) · dry fixtures of captured, scrubbed command output covering profile detection, state classification, diagnosis, redaction, plan rendering and batch-mode choice · a read-only pass over a live fleet · and mutations exercised on a throwaway cloned instance, including a deliberately failed batch to prove the fail-fast path.

What that does not cover, and cannot:

  • Scale and load. A canary is one instance. Load-dependent upstream behaviour — nightly timer stalls, queue backlogs, database growth over months — does not reproduce in a test window. The plugin detects those by keeping history; it cannot rehearse them.
  • Provider-side behaviour. Token rotation, reuse detection, billing failures and cooldowns live at the provider. The rules here come from documented behaviour and observed incidents, not from a reproducible test.
  • Upstream drift. Subcommand spellings, flags and defaults change between versions, and an old instance ships old documentation. That is why the plugin derives capabilities from the running build and fetches before recommending — but a fixture captured today ages.
  • Your fleet's specifics. Every name, port, path and version in the docs and examples is invented. Detection replaces them; nothing in this repository was written knowing your layout.
  • Anything already in git history. The publication gate reads the working tree only. A host, address, identifier or credential that reached a commit is invisible to it, and deleting the line in a later commit does not remove it — the old blob is still fetchable by anyone who clones. A leak that got that far is handled by revoking the value at its source (rotate the token, retire the endpoint), not by editing a file. Treat a green gate as "nothing new is leaving", never as "nothing has left".

Not in scope

Provisioning a host or a fleet from scratch · migrating a legacy-layout instance (refused with its reason — that is its own project) · workloads other than OpenClaw, which appear in the inventory as neighbours and are never touched.