Docs / Core Services
Core Services

OpenClaw Gateway

The task execution runtime that routes Opacus work orders through skill modules to on-chain outcomes and external APIs.

What is OpenClaw?

OpenClaw is a skill-based task execution engine. When Agent Kernel creates a task, it dispatches the work order to OpenClaw. OpenClaw loads the matching skill — a module that knows how to execute a specific type of work (bridge USDC, call an oracle, upload a file) — and runs it.

Think of OpenClaw as the hands of the Opacus system. Agent Kernel is the brain (policy + state), OpenClaw is what actually performs the work.

How it fits in the stack

Kinetic MCP / Agentboard → sends tool call to Agent Kernel
Agent Kernel → creates task + escrow, dispatches work order to OpenClaw
OpenClaw Gateway → loads skill, executes task, posts proof back to Agent Kernel
On-chain / External API → actual transaction or API call happens here

CLI commands

CommandDescription
openclaw startStart the OpenClaw gateway process. Must run at all times for tasks to execute.
openclaw skills reloadHot-reload skill modules without restarting the gateway. Use after adding or updating a skill.
openclaw statusCheck gateway health and loaded skills.
openclaw logsStream execution logs.

Running with PM2

pm2 start "openclaw start" --name openclaw
pm2 logs openclaw

Skills system

Skills are modular execution units. Each skill handles a specific task type. Skills live under .0g-skills/ in the repository root.

.0g-skills/
├── bridge-skill/     ← USDC bridging (Base to 0G)
├── oracle-skill/     ← Price feed queries
├── storage-skill/    ← 0G file upload/download
├── compute-skill/    ← 0G GPU inference
├── shopping-skill/   ← Amazon / e-commerce orders
└── README.md         ← Skill authoring guide

Adding a custom skill

  1. Create a new directory under .0g-skills/
  2. Implement the skill interface (see .0g-skills/README.md)
  3. Run openclaw skills reload
  4. Reference your skill in a custom agent template

Task routing

When Agent Kernel dispatches a task, OpenClaw selects the skill based on templateId:

Template IDOpenClaw SkillWhat it does
bridgebridge-skillTransfer USDC across chains (Base ↔ 0G)
oracleoracle-skillFetch real-time price data from CoinGecko / on-chain oracles
storage_0gstorage-skillUpload or download files on 0G decentralized storage
compute_0gcompute-skillAI inference or image generation on 0G GPU network
shoppingshopping-skillAmazon order placement or checkout flow
customcustom-skillFreeform task with user-defined goal prompt

Proof submission

After a skill completes, OpenClaw posts a proof back to Agent Kernel via:

POST /api/escrows/:escrowId/proof
{
  "outputHash": "0x...",
  "txHash": "0x...",
  "delivered": true
}

Agent Kernel's Escrow V2 state machine then verifies the proof and releases funds to the executor.

Reload after skill changes

openclaw skills reload
📝
You do not need to restart OpenClaw to pick up skill changes — skills reload is enough.
Previous
← Agent Kernel