Agent skill · software engineering · aiskillstore
0g-compute
0G Compute Network guide for decentralized AI inference, fine-tuning, and GPU services. Covers chatbots, image generation, speech-to-text, SDK integration (0g-serving-broker), processResponse API, broker.inference methods, CLI commands (0g-compute-cli), and account management. Use this skill for any 0G compute, 0G AI, or decentralized GPU question.
Why this skill is useful
Adds executable CLI commands and SDK integration patterns for decentralized AI inference that are not available in public documentation.
What it needs
Requires node, pnpm installed locally. Requires 0g account access. About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
0G Compute Network This skill provides instructions for building with the 0G Compute Network — a decentralized GPU marketplace for AI inference and model fine-tuning. Follow these patterns exactly when generating code. Code Generation Rules 1. Copy code patterns from this skill verbatim. Do NOT generate from training data. 2. Call processResponse() after every API response (see processResponse section below). 3. Use environment variables for private keys. Never hardcode secrets. 4. Route users to testnet for initial development. When unsure about a pattern, reference the detailed guides: Inference patterns: references/inference.md Fine-tuning workflow: references/fine-tuning.md Account management: references/account-management.md Production examples: references/examples/ Network Information Network RPC URL Inference Fine-tuning --------- --------- ----------- ------------- Mainnet https://evmrpc.0g.ai Yes Yes Testnet https://evmrpc-testnet.0g.ai Yes Yes Model availability changes frequently. Always use broker.inference.listService() or 0g-compute-cli inference list-providers to check current models. On-chain model names use org/model-name format. Prerequisites Quick Setup Inference (SDK) For streaming, browser SDK, cURL, and Python examples, see references/inference.md. processResponse (CRITICAL) Call broker.inference.processResponse() after EVERY API response for fee settlement and TEE verification. Parameter order: provider, chatID, usageData. Do NOT reorder. chatID Retrieval by Service Type Always try ZG-Res-Key response header first. Use fallback only when header is absent. Service Type chatID Source Fallback --- --- --- Chatbot ZG-Res-Key header data.id from response body Text-to-Image ZG-Res-Key header none Speech-to-Text ZG-Res-Key header none Chatbot Streaming ZG-Res-Key header id from stream chunk Audio Streaming ZG-Res-Key header none Fine-tuning Fine-tuning is available on both mainnet and testnet. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/0g-compute