# Build 0G Compute AI Apps

0G Compute projects need exact SDK, CLI, and settlement patterns. This skill provides tested guidance for inference, fine-tuning, account funding, and provider usage.

## Install

```bash
npx skillstore add internet-court/0g-compute
```

## Metadata

- Status: approved
- Slug: internet-court-0g-compute
- Skillstore revision: r1
- Version status: missing
- Tree hash: 7fa805a7f512490aaf4b3fd3b966315cc377e977b26f97a9853b2874fccea1cd
- Author: internet-court
- GitHub username: internet-court
- License: MIT
- Repository: https://github.com/internet-court/internet-court-skill/tree/main/vendored/0g/0g-compute
- Ref: 3f6e026a3363e0954ede7bef0cfe88d4475de137
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, filesystem, env\_access, network
- Quality score: 71
- Public page: https://skillstore.pages.dev/skills/internet-court-0g-compute
- Manifest: https://skillstore.pages.dev/api/skills/internet-court-0g-compute/manifest

## Capabilities

- Explains how to initialize the 0G serving broker with ethers and 0G RPC endpoints.
- Shows provider discovery, metadata lookup, request header generation, and service selection.
- Provides chat, streaming chat, text-to-image, and speech-to-text request patterns.
- Documents processResponse usage for response verification and fee settlement.
- Covers CLI account setup, deposits, provider sub-accounts, refunds, and balances.
- Guides fine-tuning tasks from provider selection through model download and decryption.

## Use Cases

- Create an inference client: Generate a 0G Compute chat or image client with provider discovery and response settlement.
- Operate funded provider accounts: Plan deposits, provider sub-account transfers, balance checks, and refunds for 0G Compute usage.
- Run model fine-tuning: Follow the CLI workflow for dataset preparation, task creation, monitoring, download, and decryption.

## Prompt Templates

### Start a 0G project

```
Use the 0g-compute skill to outline the setup steps for a new 0G Compute testnet inference project.
```

### Build chat inference

```
Use the 0g-compute skill to create a TypeScript chat inference plan with provider discovery, request headers, and processResponse.
```

### Manage account funds

```
Use the 0g-compute skill to explain how to deposit, transfer funds to a provider, check balances, and request refunds.
```

### Design a fine-tuning workflow

```
Use the 0g-compute skill to design a safe fine-tuning workflow with provider verification, dataset checks, task monitoring, and model download.
```

## Limitations

- Provider availability and model names can change after the documentation was written.
- Users must manage wallet private keys, API secrets, and funded accounts outside the skill.
- Examples assume Node.js 22 and the 0G serving broker package are available.
- The skill does not verify third-party provider quality, pricing, or uptime in real time.

## Best Practices

- Use testnet first, then move to mainnet only after balance and provider checks pass.
- Keep private keys and provider secrets in local environment storage that is never committed.
- Call processResponse after each inference response to support settlement and verification.

## Anti Patterns

- Do not hardcode wallet private keys, service secrets, or funded provider addresses in source files.
- Do not skip provider acknowledgment, TEE checks, or balance checks before production use.
- Do not upload sensitive datasets to fine-tuning providers without review and explicit approval.

## Security Audit

- Audited at: 2026-07-19T10:05:12.081\+00:00
- Summary: Most alerts are scanner misclassifications of Markdown, documentation links, standard installation paths, local configuration, and intended 0G examples. Two image-download fetches are confirmed because provider-supplied URLs lack destination and size controls. Financial commands also lack explicit approval guardrails.

## Stats

- Views: 0
- Downloads: 5
- Favorites: 1
- Popularity score: 0
