oc-setup

oc-setup is a command for Claude Code from TheophilusChinomona/claude-openclaw-plugin. It costs 9 tokens per session (387 once invoked), scanned D, original, MIT.

A guided command for installing and initially configuring OpenClaw, a software tool that can connect an AI agent to messaging channels and other services.

In plain words
What is it for?
For checking prerequisites, installing OpenClaw, running onboarding, optionally connecting a channel such as Telegram, and running diagnostic checks.
Why use it?
It helps check whether OpenClaw is installed, recommends the relevant installation method, and verifies the setup afterward.

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 For checking prerequisites, installing OpenClaw, running onboarding, optionally connecting a channel such as Telegram, and running diagnostic checks.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/theophiluschinomona/claude-openclaw-plugin/oc-setup
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-setup

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/theophiluschinomona/claude-openclaw-plugin/oc-setup"><img src="https://agentmods.dev/badge/commands/theophiluschinomona/claude-openclaw-plugin/oc-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 387 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. 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.00009 $0.00387
Opus 5 $0.00005 $0.00193
Sonnet 5 $0.00002 $0.00077
Haiku 4.5 $0.00001 $0.00039

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

Security

Grade D, and why

oc-setup scanned grade D with 3 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 9d 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.

- For Linux: remind about `sudo loginctl enable-linger $USER` for persistent service

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL https://openclaw.ai/install.sh | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://openclaw.ai/install.sh | bash
plugins/openclaw/commands/oc-setup.md · 74 lines

What it actually says

/oc-setup Command

Guide the user through installing and setting up OpenClaw.

Execution

Step 1: Check if OpenClaw is installed

which openclaw && openclaw --version

Step 2: If not installed, guide installation

Detect the platform:

uname -s

Then recommend the appropriate installer:

macOS / Linux / WSL2:

curl -fsSL https://openclaw.ai/install.sh | bash

Windows (PowerShell):

iwr -useb https://openclaw.ai/install.ps1 | iex

npm (manual):

npm install -g openclaw@latest

Step 3: If installed, check status

openclaw status
openclaw gateway status

Step 4: Run onboarding if needed

If OpenClaw is installed but not configured:

openclaw onboard --install-daemon

Step 5: Optionally set up a channel

Ask the user which channel they want to connect first (Telegram is fastest). Guide them through the channel-specific setup using the openclaw-channels skill knowledge.

Step 6: Verify

openclaw doctor
openclaw channels status --probe

Notes

  • Always check Node.js version: node --version (22+ required)
  • For sharp build errors: SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latest
  • For Linux: remind about sudo loginctl enable-linger $USER for persistent service
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. 9d ago First seen · 74 lines · 9 tokens per session scan D d00d97e90491

Subscribe to this mod's changes

oc-setup is a command published in the GitHub repository TheophilusChinomona/claude-openclaw-plugin (2 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 387 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.