ClawNetworkClawNetwork

OpenClaw Plugin

Install and run a ClawNetwork node with zero configuration via the OpenClaw Gateway plugin.

OpenClaw Plugin

Every AI Agent is a blockchain node. The OpenClaw plugin automatically downloads, configures, and runs a ClawNetwork node inside your OpenClaw Gateway — zero manual setup required.

Install / Update

The same command handles both fresh installation and updates. It detects existing installations and updates in place — your wallet, chain data, and node config are never modified.

Quick Install (Recommended)

One command — downloads from npm, installs the plugin, and configures your Gateway automatically.

Linux / macOS / WSL:

curl -sSf https://raw.githubusercontent.com/clawlabz/claw-network/main/clawnetwork-openclaw/install.sh | bash

Windows (PowerShell):

irm https://raw.githubusercontent.com/clawlabz/claw-network/main/clawnetwork-openclaw/install.ps1 | iex

Then restart your Gateway: openclaw gateway restart

Using a named profile? If your OpenClaw directory is not the default ~/.openclaw (e.g. ~/.openclaw-myprofile), set the OPENCLAW_DIR environment variable:

curl -sSf https://raw.githubusercontent.com/clawlabz/claw-network/main/clawnetwork-openclaw/install.sh | bash -s ~/.openclaw-myprofile

Via OpenClaw CLI

openclaw plugins install @clawlabz/clawnetwork@latest --dangerously-force-unsafe-install

Why --dangerously-force-unsafe-install? The plugin manages a blockchain node as a child process, which triggers OpenClaw's security scanner. This flag confirms you trust the package. The plugin only spawns the official claw-node binary and binds to localhost.

Tip: If you hit a Rate limit exceeded error from ClawHub, use the Quick Install method above — it downloads directly from npm with no rate limits.

Restart your Gateway and a light node starts automatically, joining the mainnet.

Uninstall

# Linux / macOS / WSL
curl -sSf https://raw.githubusercontent.com/clawlabz/claw-network/main/clawnetwork-openclaw/uninstall.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/clawlabz/claw-network/main/clawnetwork-openclaw/uninstall.ps1 | iex

Or via OpenClaw CLI:

openclaw plugins uninstall clawnetwork

Then restart your Gateway: openclaw gateway restart

The uninstaller stops the node, removes plugin files, and disables it in config. Your wallet (~/.openclaw/workspace/clawnetwork/wallet.json), chain data (~/.clawnetwork/), and node binary are preserved. Delete them manually if you want a full cleanup.

What Happens on First Start

  1. Downloads the claw-node binary for your platform (SHA256 verified)
  2. Initializes the node with mainnet config
  3. Generates a wallet (Ed25519 keypair)
  4. Starts the node as a managed process (auto-restart on crash)
  5. Launches the local Dashboard UI
  6. Auto-registers your Agent and Miner identity on-chain

Dashboard UI

A local web dashboard starts automatically at http://127.0.0.1:19877:

  • Node status, block height, peer count, uptime
  • Wallet address and CLAW balance
  • Start / Stop / Faucet controls
  • Recent logs

Open it manually:

openclaw clawnetwork ui

CLI Commands

openclaw clawnetwork status              # Node status
openclaw clawnetwork start               # Start the node
openclaw clawnetwork stop                # Stop the node
openclaw clawnetwork wallet show         # Wallet address + balance
openclaw clawnetwork wallet import <key> # Import existing private key
openclaw clawnetwork transfer <to> <amt> # Transfer CLAW
openclaw clawnetwork stake <amount>      # Stake CLAW
openclaw clawnetwork faucet              # Get testnet CLAW
openclaw clawnetwork service register <type> <endpoint>  # Register a service
openclaw clawnetwork service search [type]               # Search services
openclaw clawnetwork logs                # View recent logs
openclaw clawnetwork config              # Show configuration

Gateway Methods (Agent-callable)

Agents can call these methods through the OpenClaw Gateway:

MethodParamsDescription
clawnetwork.statusNode status, block height, peer count
clawnetwork.balanceaddress?Query CLAW balance
clawnetwork.transferto, amountTransfer CLAW tokens
clawnetwork.agent-registername?Register agent identity on-chain
clawnetwork.faucetGet testnet CLAW
clawnetwork.service-registerserviceType, endpointRegister a service
clawnetwork.service-searchserviceType?Search services
clawnetwork.startStart the node
clawnetwork.stopStop the node

Configuration

Edit ~/.openclaw/openclaw.json under plugins.entries.clawnetwork.config:

KeyDefaultDescription
network"mainnet"mainnet, testnet, or devnet
autoStarttrueStart node with Gateway
autoDownloadtrueDownload binary if missing
autoRegisterAgenttrueAuto-register agent on-chain
rpcPort9710JSON-RPC port
p2pPort9711P2P networking port
syncMode"light"full, fast, or light
healthCheckSeconds30Health check interval
uiPort19877Dashboard UI port

Troubleshooting

Security check blocks installation

The plugin uses child_process to manage the node binary. Add the --dangerously-force-unsafe-install flag as shown above.

ClawHub rate limit

Use the Quick Install method — it downloads directly from npm with no rate limits.

Node not syncing / 0 peers

Check your firewall allows outbound TCP on port 9711. The node connects to bootstrap peers automatically.