Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

coc-nodecoc 节点

Agent Skill

coc-node 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

4,137

周安装

169

GitHub Stars

公开资料未说明

下载量

1,338
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:coc-node(coc 节点)
来源仓库:https://github.com/ngplateform/coc-node
安装命令:
openclaw skills install coc-node
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install coc-node

简介

coc-node 用于操作 COC 区块链节点,包括验证器、全节点与网关的管理。

  • 支持节点的安装、启动、监控与删除等全流程操作。
  • 通过 clawhub 安装,安装命令为 openclaw skills install coc-node。
  • 使用前需确认权限范围、维护状态及是否涉及联网、命令执行或文件读写操作。
  • coc-node 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
coc-node
description
Operate COC (ChainOfClaw) blockchain nodes — install, start, stop, monitor, and remove validator, fullnode, archive, gateway, and dev nodes. Use when the user wants to run a COC node, inspect the status of a running node (block height, peer count, BFT state), view node logs, edit node-config.json, or probe RPC endpoints. Also covers preparing a machine to provide ≥ 256 MiB of P2P storage to the COC network. Smooth out-of-box experience (1.2.0+): read-only commands (list / status / coc-rpc-query against an installed node) work immediately after openclaw plugins install with zero config; the activation banner reports data dir, storage quota, tracked nodes, and coc repo status so the operator sees at a glance what works now and what (if anything) needs config to unlock install/start. Data dir auto-resolves to a writable path along the same chain @chainofclaw/claw-mem and @chainofclaw/soul use (config.dataDir → $COC_NODE_DATA_DIR → $CLAW_MEM_DATA_DIR/coc-node → $OPENCLAW_STATE_DIR/coc-node → ~/.claw-mem/coc-node); legacy ~/.chainofclaw/nodes.json from pre-1.2.0 installs is detected as a fallback. Fail-fast actionable EACCES at activation rather than silent breakage mid-command. Starting / installing a node additionally requires a local clone of the COC source repo (set $COC_REPO_PATH or bootstrap.cocRepoPath); the activation banner tells you whether one was auto-detected.
version
1.2.0
metadata
openclaw
homepage
https://www.npmjs.com/package/@chainofclaw/node
primaryEnv
CLAW_MEM_DATA_DIR
requires
bins
anyBins
install
package
@chainofclaw/node
version
1.2.0
bins

coc-node — COC blockchain node lifecycle

Operate a COC node on this machine. The skill is backed by the npm package @chainofclaw/node which ships both a standalone coc-node CLI and an OpenClaw plugin (skill id coc-node).

What this skill can do

  • Install a new COC node of any type: validator, fullnode, archive, gateway, or dev
  • Start / stop / restart nodes; follow logs across the node / agent / relayer streams
  • Report status — block height, peer count, BFT activity, process PID, per-service health
  • Edit a node's node-config.json in $EDITOR
  • Probe any COC RPC endpoint safely (whitelisted methods only: eth_blockNumber, eth_getBlockByNumber, net_peerCount, coc_chainStats, coc_getBftStatus, eth_syncing, eth_chainId, …)

Zero-config on install (1.2.0+)

Everything you can do without a COC source repo works immediately after openclaw plugins install — no further setup. The activation banner makes it explicit:

[coc-node] data dir: /home/<you>/.claw-mem/coc-node
[coc-node] storage quota: advertised=256 MiB, reserved=256 MiB, enforce=true
[coc-node] tracked nodes: 0
[coc-node] coc repo: detected at /home/<you>/COC — install/start commands enabled
[coc-node] Loaded — no nodes yet, run `openclaw coc-node node install <name>` to add one
[coc-node] CLI is mounted at `openclaw coc-node ...`. ...

Or, if no COC repo is on this machine:

[coc-node] coc repo: not detected — read-only mode (list / status / coc-rpc-query work; install / start need bootstrap.cocRepoPath or $COC_REPO_PATH pointing at a COC source clone)

That second line is the only thing you need to read to know whether node install / node start will work. Everything else (list, status, log inspection, RPC probes against an already-running node) is unconditionally available.

Data directory

Auto-resolves to a writable path along a chain that's intentionally aligned with @chainofclaw/claw-mem and @chainofclaw/soul so the three plugins share one operator-managed root. Priority (highest first):

  1. config.dataDir (per-instance plugin config)
  2. $COC_NODE_DATA_DIR (coc-node-specific operator override)
  3. $CLAW_MEM_DATA_DIR/coc-node (shared with claw-mem + soul — set this once and all three move together)
  4. $OPENCLAW_STATE_DIR/coc-node (sandbox-managed state dir)
  5. ~/.claw-mem/coc-node (default — shared root with claw-mem + soul)
  6. ~/.chainofclaw (legacy pre-1.2.0 fallback; only picked when nodes.json already exists there)

Fails fast at activation with an actionable EACCES error naming each tried path, rather than silently breaking mid-command. /tmp is intentionally not a fallback.

What needs setup to start a node yourself

Actually starting a node process requires the COC source repository (it spawns node/src/index.ts from there). Tell the skill where the repo is via one of:

  • COC_REPO_PATH environment variable (simplest)
  • bootstrap.cocRepoPath in plugin config
  • Run inside (or anywhere under) the COC repo — auto-discovered via marker files
  • Place a clone at ~/COC — also auto-discovered

Plus ≥ 256 MiB free disk for the P2P storage reservation (mandatory COC network entry requirement).

The activation banner tells you whether the auto-detection succeeded. If COC_REPO_PATH is unset and no clone is at ~/COC, node install and node start fail with a clear error pointing here — list / status / log / RPC commands keep working.

Relationship with claw-mem and coc-soul

The three @chainofclaw/* skills are fully decoupled at the npm-dependency level. Each can be installed independently. They cooperate through shared on-disk conventions, not through code coupling:

SkillOwnsWhat it adds when paired
coc-nodeLocal node lifecycle (install / start / stop / status / RPC probe)Independent of the other two.
claw-mem2dbPersistent agent memory (chat + tool capture, FTS5 search, hybrid recall)Pure agent-side; doesn't touch the chain. coc-node doesn't read or write to its DB.
coc-soulOn-chain DID, IPFS backup, guardian recovery, carrier resurrectionReads claw-mem's SQLite DB (when present) for semantic snapshots. Also independent of coc-node.

Shared dataDir convention. All three default to writing under ~/.claw-mem (or under $CLAW_MEM_DATA_DIR / $OPENCLAW_STATE_DIR), each in a scoped subdirectory:

  • claw-mem → ~/.claw-mem/{claw-mem.db, config.json, ...}
  • coc-soul → ~/.claw-mem/keys/agent.key
  • coc-node → ~/.claw-mem/coc-node/{nodes.json, <node>/...}

So one CLAW_MEM_DATA_DIR=/somewhere/writable env var moves all three. Operators in sandboxed Docker hosts (where ~/.claw-mem is read-only) only have one knob to turn.

How to invoke

Inside OpenClaw (recommended — works automatically after plugins install):

openclaw coc-node node install --type fullnode --network testnet
openclaw coc-node node list
openclaw coc-node node status
openclaw coc-node node logs <name> --follow --all

Standalone bin (only if you ran npm i -g @chainofclaw/node separately):

coc-node node install --type dev --network local --name dev-1 --rpc-port 28780
coc-node node list
openclaw plugins install does NOT install the standalone coc-node binary into your PATH. Use openclaw coc-node ... (with the openclaw prefix), or install the bin globally via npm if you want the bare command.

Typical flows

  1. Spin up a dev node against local hardhatcoc-node node install --type dev --network local then coc-node node start dev-1.
  2. Join testnet as a fullnodecoc-node node install --type fullnode --network testnet --rpc-port 28780 then coc-node node start.
  3. Stand up a validatorcoc-node node install --type validator --network testnet --advertised-bytes 1073741824 (1 GiB storage contribution).
  4. Diagnose a flaky nodecoc-node node status (snapshot) → coc-node node logs --follow (tail) → coc-node node config show (inspect config) → coc-node node restart if needed.
  5. Decommission a nodecoc-node node stop NAME then coc-node node remove NAME --yes (delete data) or coc-node node remove NAME --yes --keep-data.

When NOT to use this skill

  • Deploying COC smart contracts — that's a contracts/ hardhat / script task, not node lifecycle.
  • On-chain identity / backup / recovery — use the coc-soul skill.
  • Agent memory / session capture — use the claw-mem2db skill.

Reference

Detailed references live alongside this file:

  • references/cli.md — every coc-node subcommand with flags and examples
  • references/config.md — complete ~/.claw-mem/coc-node/config.json schema
  • references/node-types.md — validator vs fullnode vs archive vs gateway vs dev tradeoffs
  • references/troubleshooting.md — common failure modes and fixes

Source and issue tracker: <https://github.com/NGPlateform/claw-mem/tree/main/packages/node>.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

76.11%
按下载量换算1,018

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills