ccc-openclaw

ccc-openclaw is a command for Claude Code from KevinZai/commander. It costs 44 tokens per session (1,096 once invoked), scanned A, original, MIT.

An integration interface for OpenClaw, a platform that manages connected agents, skills, hooks, workflows, and communication channels.

In plain words
What is it for?
Check gateway health, configure the connection, synchronize skills and hooks, and view connected agents and channels.
Why use it?
It lets you inspect and synchronize the OpenClaw gateway from Claude Code instead of managing those integration details separately.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; names the AskUserQuestion tool; mentions Claude Code.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is echo '{}' | CC_OPENCLAW_ENABLED=1 node hooks/openclaw-sync.js.

Good fit Check gateway health, configure the connection, synchronize skills and hooks, and view connected agents and channels.

Compare 6 commands from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/KevinZai/commander
agentmods
npx agentmods add commands/kevinzai/commander/ccc-openclaw

Made for: Claude Code.

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 ccc-openclaw

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/kevinzai/commander/ccc-openclaw"><img src="https://agentmods.dev/badge/commands/kevinzai/commander/ccc-openclaw.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,096 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00044 $0.01096
Opus 5.5 $0.00018 $0.00438
Sonnet 5.5 $0.00009 $0.00219
Haiku 4.5 $0.00004 $0.00110

Measured 23d ago against content hash 6f3d7ad4cc6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ccc-openclaw 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 23d 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.

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.

commands/ccc-openclaw.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/ccc-openclaw — OpenClaw integration

CC Commander · /ccc-openclaw · integrates Commander with an OpenClaw gateway you already run.

Action: $ARGUMENTS (default status).

OpenClaw is an optional third-party agent runtime; the integration is off by default. It is driven by hooks/openclaw-sync.js and these environment variables:

Variable Meaning
CC_OPENCLAW_ENABLED=1 Turns on the SessionStart skill sync
CC_OPENCLAW_URL Gateway base URL (the hook falls back to the gateway's local default)
CC_OPENCLAW_TIMEOUT Request timeout in ms

Start every subcommand by checking command -v openclaw. If the CLI is missing, report that and stop.

status

  1. Run:

    openclaw gateway status
    openclaw status
    echo "sync enabled: ${CC_OPENCLAW_ENABLED:-0}  url: ${CC_OPENCLAW_URL:-default}"
    
  2. Report gateway state and version, connected channels, recent sessions, and whether Commander sync is enabled. Report numbers exactly as the commands print them.

sync

  1. Confirm the gateway answers:

    openclaw health --json
    
  2. Run the sync hook once, enabled for this invocation only:

    echo '{}' | CC_OPENCLAW_ENABLED=1 node hooks/openclaw-sync.js
    

    The hook discovers skills under ~/.claude/skills/ and posts them to the gateway's Commander webhook. It prints a synced count or "Skill sync failed (gateway may not support registry)".

  3. Report the line the hook printed. A failure line means the gateway did not accept the registration; do not retry in a loop.

configure

Ask each setting with AskUserQuestion, one at a time:

  1. Gateway URL:
    • 🟢 Use the gateway's configured URL — leaves CC_OPENCLAW_URL unset.
    • Custom URL — the user types it; set CC_OPENCLAW_URL.
  2. Sync on session start:
    • 🟢 Enable — sets CC_OPENCLAW_ENABLED=1.
    • Disable — leaves it unset.
  3. Event forwarding (Commander events sent to OpenClaw):
    • 🟢 None — nothing is forwarded.
    • Session events only — SessionStart and SessionEnd.
    • Custom — the user lists events.
  4. Mode binding (Commander modes mapped to OpenClaw agents):
    • 🟢 Skip — no binding.
    • Bind now — list agents with openclaw agents list and let the user pick per mode.

Read the full file on GitHub · 121 lines

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. 23d ago Changed · +8 lines · +22 tokens per session 6f3d7ad4cc6b
  2. 2mo ago First seen · 113 lines · 22 tokens per session scan A 9decc18541b6

Subscribe to this mod's changes

ccc-openclaw is a command published in the GitHub repository KevinZai/commander (6 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,096 once invoked, about $0.0002 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-09-04.

Related

ccc-openclaw compared with commands from other repositories

ccc-openclaw next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ccc-openclawKevinZai/commanderCommand6yesterdayMITA44Claude Code
loopskullninja/coco-workflowCommand722d agoMITA28Claude Code
phaseskullninja/coco-workflowCommand722d agoMITA21Claude Code
statusskullninja/coco-workflowCommand722d agoMITA17Claude Code
justone-publishGodsB1025/justoneCommand25mo agoMITA22Claude Code
checklistgithub/spec-kitCommand148kyesterdayMITA13Claude Code
clarifygithub/spec-kitCommand148kyesterdayMITA27Claude Code