Install
openclaw skills install 0g-computeUse 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.
openclaw skills install 0g-computeInterface with the 0G Compute Network — a decentralized AI inference marketplace with TEE-verified model integrity.
0g-compute-cli installed: npm i -g @0glabs/0g-serving-broker
@0glabs/0g-serving-broker (the old @0glabs/0g-compute-cli package name no longer resolves), but the binary command is still 0g-compute-cli.read -s OG_PK; 0g-compute-cli login --private-key "$OG_PK"; unset OG_PK0g-compute-cli setup-network# 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).
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:
# 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.
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.
Compare 0G pricing against OpenRouter for the same models:
scripts/0g-price-compare.sh
No API keys needed — uses public endpoints:
/api/v1/models for model pricingShows side-by-side USD/1M tokens with savings percentage. Set OG_TOKEN_PRICE_USD env var to override CoinGecko price.
# Login status & wallet
0g-compute-cli status
# Current network (mainnet/testnet)
0g-compute-cli show-network
inference verify on new providers before use~/.0g-compute-cli/config.json — never expose this file