0gkit playground
Run a 0G action, see the receipt, and copy working code in CLI, TypeScript, curl, or MCP form. Attestation verification runs fully in your browser — no key, no network.
1 · Storage — upload
Store bytes on 0G Storage. Live upload needs a funded signer key; the copy-code below runs anywhere.
# Storage put reads a file's bytes; write your text first.
printf '%s' 'hello 0G' > payload.txt
npx -y @foundryprotocol/0gkit-cli storage put payload.txt --network galileo2 · Compute — inference
Run a chat completion against a 0G compute provider. Live run needs a broker key + provider.
npx -y @foundryprotocol/0gkit-cli infer \
-m 'Summarise what 0gkit does in one sentence.' \
--provider 0x<provider-address> \
--network galileo3 · Attestation — verify
Verify a signed TEE attestation envelope. Pure crypto — this one runs live, right here.
# attest verify reads a SignedEnvelope JSON file.
cat > envelope.json <<'JSON'
{
"envelope": {
"kind": "foundry/eval-result/v1",
"forge": "0x1111111111111111111111111111111111111111",
"scores": [
0.91,
0.88
],
"baseline": 0.5,
"teeAttestation": "0xabcdef",
"coordinator": "0x2222222222222222222222222222222222222222",
"timestamp": 1700000000
},
"digest": "0x142351198d844288a542fb4fb95850e0796bcdec69d810d3bfeda8e312aadc7d",
"signature": "0xe3d37f9ff85df57cc5a17426d403a6eb96581fed959cb89127321de5d671b215260cc785e410118a7dcbecf2e3e12f0c2afdb8eed96eb5ee3cb7af23f97ef1cf1c"
}
JSON
npx -y @foundryprotocol/0gkit-cli attest verify envelope.json --signer 0x70997970C51812dc3A010C7d01b50e0d17dc79C8