{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/0g-compute",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=0g-compute",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/cli-reference.md",
      "references/openclaw-config.md",
      "scripts/0g-price-compare.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/0g-compute",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "0G Compute Network",
        "body": "Interface with the 0G Compute Network — a decentralized AI inference marketplace with TEE-verified model integrity."
      },
      {
        "title": "Prerequisites",
        "body": "0g-compute-cli installed: npm i -g @0glabs/0g-serving-broker\n\nNote: 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.\n\n\nWallet funded with 0G tokens\nLogged 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:\n\nread -s OG_PK; 0g-compute-cli login --private-key \"$OG_PK\"; unset OG_PK\n\n\nNetwork configured: 0g-compute-cli setup-network"
      },
      {
        "title": "1. Discover Models",
        "body": "# List all providers with models, prices, verifiability\n0g-compute-cli inference list-providers\n\n# Detailed view with health/uptime metrics\n0g-compute-cli inference list-providers-detail\n\n# Include providers without valid TEE signer\n0g-compute-cli inference list-providers --include-invalid\n\nFilter output by model name, price, health status, and TeeML support (models running in Trusted Execution Environment)."
      },
      {
        "title": "2. Verify Provider Integrity",
        "body": "Always verify before trusting a new provider. TEE verification ensures the model runs in a secure enclave with hardware-attested integrity.\n\n# Full TEE attestation check\n0g-compute-cli inference verify --provider <address>\n\n# Download raw attestation data\n0g-compute-cli inference download-report --provider <address> --output report.json\n\nThe verify command checks:\n\nTEE signer address matches contract\nDocker Compose hash integrity\nDStack TEE (Intel TDX) attestation"
      },
      {
        "title": "3. Wallet & Balance",
        "body": "# Account overview\n0g-compute-cli get-account\n\n# Per-provider sub-account balance\n0g-compute-cli get-sub-account --provider <address> --service inference\n\n# Fund operations\n0g-compute-cli deposit --amount <0G>                          # To main account\n0g-compute-cli transfer-fund --provider <addr> --amount <0G> --service inference  # To sub-account\n0g-compute-cli retrieve-fund --service inference              # From sub-accounts\n0g-compute-cli refund --amount <0G>                           # Withdraw to wallet\n\nImportant: Inference calls fail if sub-account balance is depleted. Monitor balances regularly."
      },
      {
        "title": "4. Configure OpenClaw Provider",
        "body": "Get API key from a verified provider (interactive — prompts for expiration):\n\n0g-compute-cli inference get-secret --provider <address>\n\nAdd to openclaw.json:\n\n\"providers\": {\n  \"0g-<model-name>\": {\n    \"baseUrl\": \"<provider-url>/v1/proxy\",\n    \"apiKey\": \"<secret>\",\n    \"api\": \"openai-completions\",\n    \"models\": [{ \"id\": \"<model-id>\", \"name\": \"<display-name>\" }]\n  }\n}\n\nRegister in agents.defaults.models with an alias. Set cost: 0 since billing is on-chain.\n\nSee references/openclaw-config.md for complete setup guide."
      },
      {
        "title": "5. Price Comparison (0G vs OpenRouter)",
        "body": "Compare 0G pricing against OpenRouter for the same models:\n\nscripts/0g-price-compare.sh\n\nNo API keys needed — uses public endpoints:\n\nCoinGecko for 0G token → USD price\nOpenRouter /api/v1/models for model pricing\n0G CLI for provider pricing\n\nShows side-by-side USD/1M tokens with savings percentage. Set OG_TOKEN_PRICE_USD env var to override CoinGecko price."
      },
      {
        "title": "6. Status Check",
        "body": "# Login status & wallet\n0g-compute-cli status\n\n# Current network (mainnet/testnet)\n0g-compute-cli show-network"
      },
      {
        "title": "Safety Guidelines",
        "body": "Always run inference verify on new providers before use\nCheck provider health/uptime before relying on them\nMonitor sub-account balances — depleted funds cause inference failures\nPrivate key stored in ~/.0g-compute-cli/config.json — never expose this file"
      },
      {
        "title": "Reference Documentation",
        "body": "CLI Reference — Complete command reference with all flags and examples\nOpenClaw Config — Step-by-step provider setup guide"
      }
    ],
    "body": "0G Compute Network\n\nInterface with the 0G Compute Network — a decentralized AI inference marketplace with TEE-verified model integrity.\n\nPrerequisites\n0g-compute-cli installed: npm i -g @0glabs/0g-serving-broker\nNote: 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.\nWallet funded with 0G tokens\nLogged 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:\nread -s OG_PK; 0g-compute-cli login --private-key \"$OG_PK\"; unset OG_PK\nNetwork configured: 0g-compute-cli setup-network\nCore Workflows\n1. Discover Models\n# List all providers with models, prices, verifiability\n0g-compute-cli inference list-providers\n\n# Detailed view with health/uptime metrics\n0g-compute-cli inference list-providers-detail\n\n# Include providers without valid TEE signer\n0g-compute-cli inference list-providers --include-invalid\n\n\nFilter output by model name, price, health status, and TeeML support (models running in Trusted Execution Environment).\n\n2. Verify Provider Integrity\n\nAlways verify before trusting a new provider. TEE verification ensures the model runs in a secure enclave with hardware-attested integrity.\n\n# Full TEE attestation check\n0g-compute-cli inference verify --provider <address>\n\n# Download raw attestation data\n0g-compute-cli inference download-report --provider <address> --output report.json\n\n\nThe verify command checks:\n\nTEE signer address matches contract\nDocker Compose hash integrity\nDStack TEE (Intel TDX) attestation\n3. Wallet & Balance\n# Account overview\n0g-compute-cli get-account\n\n# Per-provider sub-account balance\n0g-compute-cli get-sub-account --provider <address> --service inference\n\n# Fund operations\n0g-compute-cli deposit --amount <0G>                          # To main account\n0g-compute-cli transfer-fund --provider <addr> --amount <0G> --service inference  # To sub-account\n0g-compute-cli retrieve-fund --service inference              # From sub-accounts\n0g-compute-cli refund --amount <0G>                           # Withdraw to wallet\n\n\nImportant: Inference calls fail if sub-account balance is depleted. Monitor balances regularly.\n\n4. Configure OpenClaw Provider\n\nGet API key from a verified provider (interactive — prompts for expiration):\n\n0g-compute-cli inference get-secret --provider <address>\n\n\nAdd to openclaw.json:\n\n\"providers\": {\n  \"0g-<model-name>\": {\n    \"baseUrl\": \"<provider-url>/v1/proxy\",\n    \"apiKey\": \"<secret>\",\n    \"api\": \"openai-completions\",\n    \"models\": [{ \"id\": \"<model-id>\", \"name\": \"<display-name>\" }]\n  }\n}\n\n\nRegister in agents.defaults.models with an alias. Set cost: 0 since billing is on-chain.\n\nSee references/openclaw-config.md for complete setup guide.\n\n5. Price Comparison (0G vs OpenRouter)\n\nCompare 0G pricing against OpenRouter for the same models:\n\nscripts/0g-price-compare.sh\n\n\nNo API keys needed — uses public endpoints:\n\nCoinGecko for 0G token → USD price\nOpenRouter /api/v1/models for model pricing\n0G CLI for provider pricing\n\nShows side-by-side USD/1M tokens with savings percentage. Set OG_TOKEN_PRICE_USD env var to override CoinGecko price.\n\n6. Status Check\n# Login status & wallet\n0g-compute-cli status\n\n# Current network (mainnet/testnet)\n0g-compute-cli show-network\n\nSafety Guidelines\nAlways run inference verify on new providers before use\nCheck provider health/uptime before relying on them\nMonitor sub-account balances — depleted funds cause inference failures\nPrivate key stored in ~/.0g-compute-cli/config.json — never expose this file\nReference Documentation\nCLI Reference — Complete command reference with all flags and examples\nOpenClaw Config — Step-by-step provider setup guide"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/in-liberty420/0g-compute",
    "publisherUrl": "https://clawhub.ai/in-liberty420/0g-compute",
    "owner": "in-liberty420",
    "version": "1.0.2",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}