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
CLI commands
| Command | Description |
|---|---|
openclaw start | Start the OpenClaw gateway process. Must run at all times for tasks to execute. |
openclaw skills reload | Hot-reload skill modules without restarting the gateway. Use after adding or updating a skill. |
openclaw status | Check gateway health and loaded skills. |
openclaw logs | Stream 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
- Create a new directory under
.0g-skills/ - Implement the skill interface (see
.0g-skills/README.md) - Run
openclaw skills reload - Reference your skill in a custom agent template
Task routing
When Agent Kernel dispatches a task, OpenClaw selects the skill based on templateId:
| Template ID | OpenClaw Skill | What it does |
|---|---|---|
bridge | bridge-skill | Transfer USDC across chains (Base ↔ 0G) |
oracle | oracle-skill | Fetch real-time price data from CoinGecko / on-chain oracles |
storage_0g | storage-skill | Upload or download files on 0G decentralized storage |
compute_0g | compute-skill | AI inference or image generation on 0G GPU network |
shopping | shopping-skill | Amazon order placement or checkout flow |
custom | custom-skill | Freeform 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
skills reload is enough.