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…
от modbender★ 21 звезда на GitHubОб этом скилле
0G 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-compute-cli- Wallet funded with 0G tokens
- Logged in:
0g-compute-cli login --private-key <key> - 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.
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/modelsfor 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 verifyon 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
Установить 0g-compute в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл 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.
Как установить скилл 0g-compute?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл 0g-compute запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic