0g-compute
Use cheap, TEE-verified AI models from the 0G Compute Network as OpenClaw providers. Discover available models and compare pricing vs OpenRouter, verify provider integrity via hardware attestation (Intel TDX), manage your 0G wallet and sub-accounts, and configure models in OpenClaw with one workflow. Supports DeepSeek, GLM-5, Qwen, and other models available on the 0G marketplace.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/in-liberty420/0g-compute0G Compute Network
Interface with the 0G Compute Network — a decentralized AI inference marketplace with TEE-verified model integrity.
Prerequisites
0g-compute-cliinstalled:npm i -g @0glabs/0g-serving-broker- Note: npm package name is
@0glabs/0g-serving-broker(the old@0glabs/0g-compute-clipackage name no longer resolves), but the binary command is still0g-compute-cli.
- Note: npm package name is
- 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
Core Workflows
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.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-in-liberty420-0g-compute": {
"enabled": true,
"auto_update": true
}
}
}Related Skills
kraken-pro
Manage Kraken exchange accounts — portfolio, market data, trading, earn/staking, ledger export. REST API via python-kraken-sdk. Use when the user wants to check crypto portfolio, get prices, place/cancel orders, manage staking, export ledger for taxes, deposit/withdraw funds, or interact with Kraken in any way.
sec-filing-watcher
Monitor SEC EDGAR for new filings and get Telegram/Slack summaries via Clawdbot. Use when setting up SEC filing alerts, adding/removing tickers to monitor, configuring form types, starting/stopping the watcher, or troubleshooting filing notifications.
1password-sa
Securely inject secrets from 1Password into agent workflows. Uses service accounts with op run/.env.tpl as the primary pattern, op read as fallback. Includes hardened security rules, input validation, and troubleshooting for auth/permission failures. Use when accessing API keys, credentials, or any 1Password secret.
solana-easy-swap
Swap any Solana token from chat. Say 'swap 1 SOL for USDC' and it handles everything — quoting, signing, sending, confirming. No API keys, no wallet extensions, no setup beyond a keypair. Powered by Jupiter. Use when a user wants to swap, trade, exchange, buy, or sell Solana SPL tokens, SOL, USDC, memecoins, or any token pair on Solana.