# Send 0G Compute to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "0g-compute",
    "name": "0G Compute",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/in-liberty420/0g-compute",
    "canonicalUrl": "https://clawhub.ai/in-liberty420/0g-compute",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/0g-compute",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=0g-compute",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/cli-reference.md",
      "references/openclaw-config.md",
      "scripts/0g-price-compare.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "0g-compute",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-23T19:01:52.337Z",
      "expiresAt": "2026-04-30T19:01:52.337Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=0g-compute",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=0g-compute",
        "contentDisposition": "attachment; filename=\"0g-compute-1.0.2.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "0g-compute"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/0g-compute"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/0g-compute",
    "downloadUrl": "https://openagent3.xyz/downloads/0g-compute",
    "agentUrl": "https://openagent3.xyz/skills/0g-compute/agent",
    "manifestUrl": "https://openagent3.xyz/skills/0g-compute/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/0g-compute/agent.md"
  }
}
```
## Documentation

### 0G Compute Network

Interface with the 0G Compute Network — a decentralized AI inference marketplace with TEE-verified model integrity.

### Prerequisites

0g-compute-cli installed: npm i -g @0glabs/0g-serving-broker

Note: npm package name is @0glabs/0g-serving-broker (the old @0glabs/0g-compute-cli package name no longer resolves), but the binary command is still 0g-compute-cli.


Wallet funded with 0G tokens
Logged in: avoid passing key on the command line when possible (it can be visible in shell history/process list). Prefer reading from a protected prompt/env:

read -s OG_PK; 0g-compute-cli login --private-key "$OG_PK"; unset OG_PK


Network configured: 0g-compute-cli setup-network

### 1. Discover Models

# List all providers with models, prices, verifiability
0g-compute-cli inference list-providers

# Detailed view with health/uptime metrics
0g-compute-cli inference list-providers-detail

# Include providers without valid TEE signer
0g-compute-cli inference list-providers --include-invalid

Filter output by model name, price, health status, and TeeML support (models running in Trusted Execution Environment).

### 2. Verify Provider Integrity

Always verify before trusting a new provider. TEE verification ensures the model runs in a secure enclave with hardware-attested integrity.

# Full TEE attestation check
0g-compute-cli inference verify --provider <address>

# Download raw attestation data
0g-compute-cli inference download-report --provider <address> --output report.json

The verify command checks:

TEE signer address matches contract
Docker Compose hash integrity
DStack TEE (Intel TDX) attestation

### 3. Wallet & Balance

# Account overview
0g-compute-cli get-account

# Per-provider sub-account balance
0g-compute-cli get-sub-account --provider <address> --service inference

# Fund operations
0g-compute-cli deposit --amount <0G>                          # To main account
0g-compute-cli transfer-fund --provider <addr> --amount <0G> --service inference  # To sub-account
0g-compute-cli retrieve-fund --service inference              # From sub-accounts
0g-compute-cli refund --amount <0G>                           # Withdraw to wallet

Important: Inference calls fail if sub-account balance is depleted. Monitor balances regularly.

### 4. Configure OpenClaw Provider

Get API key from a verified provider (interactive — prompts for expiration):

0g-compute-cli inference get-secret --provider <address>

Add to openclaw.json:

"providers": {
  "0g-<model-name>": {
    "baseUrl": "<provider-url>/v1/proxy",
    "apiKey": "<secret>",
    "api": "openai-completions",
    "models": [{ "id": "<model-id>", "name": "<display-name>" }]
  }
}

Register in agents.defaults.models with an alias. Set cost: 0 since billing is on-chain.

See references/openclaw-config.md for complete setup guide.

### 5. Price Comparison (0G vs OpenRouter)

Compare 0G pricing against OpenRouter for the same models:

scripts/0g-price-compare.sh

No API keys needed — uses public endpoints:

CoinGecko for 0G token → USD price
OpenRouter /api/v1/models for model pricing
0G CLI for provider pricing

Shows side-by-side USD/1M tokens with savings percentage. Set OG_TOKEN_PRICE_USD env var to override CoinGecko price.

### 6. Status Check

# Login status & wallet
0g-compute-cli status

# Current network (mainnet/testnet)
0g-compute-cli show-network

### Safety Guidelines

Always run inference verify on new providers before use
Check provider health/uptime before relying on them
Monitor sub-account balances — depleted funds cause inference failures
Private key stored in ~/.0g-compute-cli/config.json — never expose this file

### Reference Documentation

CLI Reference — Complete command reference with all flags and examples
OpenClaw Config — Step-by-step provider setup guide
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: in-liberty420
- Version: 1.0.2
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-23T19:01:52.337Z
- Expires at: 2026-04-30T19:01:52.337Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/0g-compute)
- [Send to Agent page](https://openagent3.xyz/skills/0g-compute/agent)
- [JSON manifest](https://openagent3.xyz/skills/0g-compute/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/0g-compute/agent.md)
- [Download page](https://openagent3.xyz/downloads/0g-compute)