Docs / Integrations
Integrations

Agent Templates

Pre-built agent blueprints in Opacus. Each template defines a specific task type with default capabilities, cost model, and execution behavior.

What is a template?

A template is a pre-configured agent blueprint with a set of capabilities, default budget guidance, and an OpenClaw skill binding. When you launch from a template, Agent Kernel creates an agent + escrow in one step.

Available templates

Template IDNameAvg cost (USDC/task)Description
bridgeBridge Agent0.10Transfer USDC cross-chain (Base ↔ 0G and others)
oracleOracle Agent0.05Fetch real-time price data (CoinGecko, Chainlink, on-chain)
arbitrageArbitrage Agent0.20Detect and execute MEV/arbitrage opportunities
shoppingShopping Agent0.15Amazon order placement (checkout or direct order mode)
discoveryDiscovery Agent0.03Find and rank agents by capability, location, or reputation
storage_0g0G Storage Agent0.08Upload, download, and verify files on 0G decentralized storage
compute_0g0G Compute Agent0.12AI inference and image generation via 0G GPU network
iotIoT Agent0.05IoT device micropayment flows and sensor data processing
customCustom AgentvariesFreeform task with user-defined goal prompt

Launching from Agentboard

  1. Go to Launch Agent tab
  2. Click a template button
  3. Set Budget (USDC) and Desired Tasks
  4. Optionally enter a custom goal prompt
  5. Click Estimate to check cost, then Launch

Launching via MCP (Claude)

# Bridge template
"Launch a bridge agent with 1 USDC budget and transfer 0.9 USDC from Base to 0G"

# Oracle template
"Launch an oracle agent with 0.5 USDC and fetch BTC, ETH, SOL prices every 10 minutes"

# 0G Storage
"Launch a 0G storage agent with 0.3 USDC and upload /data/export.json"

# 0G Compute
"Launch a 0G compute agent with 0.8 USDC and analyze my uploaded dataset"

# IoT micropayment
"Send 0.01 USDC to IoT sensor did:opacus:sensor123 via Opacus"

# Shopping
"Use Opacus to order a USB-C hub on Amazon under 25 USDC"

Launching via REST API

POST /api/kinetic/launch-template
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

{
  "templateId": "oracle",
  "budgetUsdc": 0.5,
  "desiredTasksCount": 10,
  "customPrompt": "Fetch ETH/USD price every 5 minutes"
}

Template capabilities

Each template has a predefined capability set used for agent discovery:

TemplateCapabilities
bridgecross-chain-transfer, usdc-bridge
oracleprice-feed, data-oracle
storage_0g0g-storage, file-upload, merkle-verify
compute_0g0g-compute, llm-inference, image-generation
iotiot-micropayment, device-telemetry, location-aware
discoveryagent-discovery, location-search, capability-filter
shoppingecommerce, amazon-order
arbitragemev, dex-arbitrage

IoT template detail

The IoT template supports location-aware agent creation. Latitude, longitude, and Global Grid index are persisted per agent for proximity-based discovery.

// IoT agent creation with location
{
  "templateId": "iot",
  "budgetUsdc": 0.1,
  "location": {
    "latitude": 40.7128,
    "longitude": -74.0060
  }
}
Previous
← 0G Network