Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/KCNyu/clawocknpx agentmods add skills/kcnyu/clawock/openclaw-upgradeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade)<a href="https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/openclaw-upgrade/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/kcnyu/clawock/openclaw-upgrade"><img src="https://agentmods.dev/badge/skills/kcnyu/clawock/openclaw-upgrade.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 92 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00110 | $0.01983 |
| Opus 5.5 | $0.00044 | $0.00793 |
| Sonnet 5.5 | $0.00022 | $0.00397 |
| Haiku 4.5 | $0.00011 | $0.00198 |
Grade A, and why
openclaw-upgrade scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 124 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenClaw Safe Upgrade
Kcn runs a live automated trading system on OpenClaw. An upgrade that loses crons, breaks embeddings, or orphans an in-flight cron is a production incident. This is the battle-tested flow (5.28→6.1→6.5→6.6→6.8). The current host runbook is /root/.shared-memory/project-openclaw-upgrade-runbook.md; historical version traps are in the archive it links. Read these only on this host, never copy them into the public repository.
0. Check + decide
openclaw --versionvsnpm view openclaw version(latest). Pull the changelog (npm pack openclaw@<v>→package/CHANGELOG.md) and judge relevance — don't upgrade reflexively.- Read the host runbook above for the target version's traps; use the installed version's changelog/source when the runbook has no entry.
1. 🔴 Never restart the gateway while a cron is in-flight
Use the structured runtime field, not a text grep:
openclaw cron list --json \
| jq -e '[.jobs[] | select(.state.runningAtMs != null)] | length == 0'
If this is not true, wait. A SIGTERM mid-run can orphan the cron into
permanent running. Use --no-restart and pick a quiet window between slots
(bash ops/host/check_crons.sh --timeline).
2. Update (built-in updater, since 6.x)
openclaw update --tag <version> --no-restart --yes
This auto-reinstalls/links managed plugins (weixin, llama-cpp, codex) — no manual pnpm add, no systemd edits, no restore-llama-embeddings.sh needed. (Pre-6.x manual flow is in the memory file.)
3. 🔴 Reapply all upgrade-sensitive local patches before restart
The updater replaces the installed dist/ tree. From the live workspace run:
bash ops/host/reapply_openclaw_patches.sh
The versioned patch kit owns the entire dist edit set. Its ordered inventory and
per-bundle postconditions are in ops/host/openclaw-patches/manifest.json; source
adapters live beside it (the two Python dreaming adapters remain under ops/host/).
The historical scripts under /root/tools/openclaw/current/ are not upgrade inputs.
Do not edit or invoke them to update the managed kit.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · -2 lines f2526b0958f8
- 6d ago Changed · +8 lines 24b9f3a33f92
- 7d ago Changed · +5 lines 8d5539e9ef33
- 19d ago Changed · +5 lines 852bcb827de2
- 21d ago Changed · +1 lines 8f307902018a
- 1mo ago Changed · +10 lines 26cd1183773a
- 2mo ago First seen · 97 lines · 110 tokens per session scan A 7afa8ca30775
openclaw-upgrade is a skill published in the GitHub repository KCNyu/clawock (23 stars, last pushed today), licensed MIT. It adds 110 tokens to every session and 1,983 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
openclaw-upgrade compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| openclaw-upgradeKCNyu/clawock | Skill | 23 | today | MIT | A | 110 | Claude Code, Codex |
| penguin-pluginPrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 81 | Claude Code, Codex |
| company-employeePrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| company-ceoPrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 56 | Claude Code, Codex |
| a2uiPrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 203 | Claude Code, Codex |
| agent-initializationPrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 79 | Claude Code, Codex |
| ace-rsi-toolkitPrism-Shadow/penguin-harness | Skill | 3.2k | today | Apache-2.0 | A | 69 | Claude Code, Codex |