oc-update

oc-update is a command for Claude Code from TheophilusChinomona/claude-openclaw-plugin. It costs 13 tokens per session (477 once invoked), scanned B, original, MIT.

A command that updates OpenClaw, checks its installation, restarts its gateway, and reports the result.

In plain words
What is it for?
Use it to update OpenClaw, run its diagnostic check, restart the gateway service, and confirm its status.
Why use it?
It brings OpenClaw up to date and checks whether the installation and gateway are working correctly.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: built for openclaw.

Part of the openclaw plugin — 31 skills, 22 commands, 4 agents, 3 hooks shipped together

Good fit Use it to update OpenClaw, run its diagnostic check, restart the gateway service, and confirm its status.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/theophiluschinomona/claude-openclaw-plugin/oc-update
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TheophilusChinomona/claude-openclaw-plugin

Made for: Claude Code.

Or install openclaw, the plugin that ships this one along with the rest of its 31 skills, 22 commands, 4 agents, 3 hooks.

Wrote 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.

agentmods badge for oc-update

README.md
[![agentmods](https://agentmods.dev/badge/commands/theophiluschinomona/claude-openclaw-plugin/oc-update/github.svg)](https://agentmods.dev/commands/theophiluschinomona/claude-openclaw-plugin/oc-update)
Your own site
<a href="https://agentmods.dev/commands/theophiluschinomona/claude-openclaw-plugin/oc-update"><img src="https://agentmods.dev/badge/commands/theophiluschinomona/claude-openclaw-plugin/oc-update/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.

agentmods 80×15 button for oc-update

Your own site · 80×15
<a href="https://agentmods.dev/commands/theophiluschinomona/claude-openclaw-plugin/oc-update"><img src="https://agentmods.dev/badge/commands/theophiluschinomona/claude-openclaw-plugin/oc-update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00477
Opus 5 $0.00006 $0.00238
Sonnet 5 $0.00003 $0.00095
Haiku 4.5 $0.00001 $0.00048

Measured 10d ago against content hash 711dc9217e09, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade B, and why

oc-update scanned grade B with 1 finding 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 10d ago.

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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Check if running as correct user (may need sudo for global npm)
plugins/openclaw/commands/oc-update.md · 92 lines

What it actually says

/oc-update Command

Update OpenClaw to the latest version, verify the installation, and restart the gateway.

Execution

  1. Check current version:
openclaw --version
  1. Detect package manager and update:

Check how OpenClaw was installed and update accordingly:

# Check if installed via npm
which npm && npm list -g openclaw 2>/dev/null && echo "NPM_INSTALL"

Then run the appropriate update:

npm (most common):

npm install -g openclaw@latest

Other package managers: Inform the user to use their package manager's update command.

  1. Verify new version:
openclaw --version
  1. Run diagnostics:
openclaw doctor

If doctor reports issues, suggest running openclaw doctor --fix.

  1. Restart gateway:
openclaw gateway restart
  1. Check status:
openclaw status

Output

Report each step's result:

Update Summary:
  Previous version: X.Y.Z
  New version:      A.B.C
  Doctor:           ✓ passed (or X issues found)
  Gateway:          ✓ restarted
  Status:           ✓ running

If Already Up to Date

OpenClaw is already at the latest version (X.Y.Z).
Running diagnostics to verify health...

Still run doctor and status to confirm everything is healthy.

If Update Fails

  • Check if running as correct user (may need sudo for global npm)
  • Check network connectivity
  • Suggest manual update: npm install -g openclaw@latest
  • If gateway won't restart after update: check openclaw logs --tail 50

After Running

  • Suggest running openclaw security audit after updates (new checks may be available)
  • If breaking changes, suggest reviewing the changelog
  • Remind about /oc-backup before major version updates
Changes

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.

  1. 10d ago First seen · 92 lines · 13 tokens per session scan B 711dc9217e09

Subscribe to this mod's changes

oc-update is a command published in the GitHub repository TheophilusChinomona/claude-openclaw-plugin (2 stars, last pushed 5mo ago), licensed MIT. It adds 13 tokens to every session and 477 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.