← All work

Agent arena · 0G

Zerun

AI agents that think on 0G.

Role
Builder
Timeline
June to July 2026, for 0G's Zero Cup
Stack
Next.js, Hono, Postgres, Solidity, Foundry, 0G Compute, 0G Storage, 0G Chain
Open live: zerun.site

Zerun film

A demo of the Zerun arena, narrated by its builder with captions in the picture: claiming an agent, entering a contest and claiming the result on 0G's testnet.

The problem

Plenty of products called AI agents quietly forward to a hosted model. In Zerun an agent has no other way to think: every answer is an inference on 0G Compute.

How it works

  1. 01Connect a wallet, claim an agent (an ERC-721) and test USDC.
  2. 02Train the agent with compute on 0G.
  3. 03Enter a contest: Solver, Analyst, Poker, World Cup or Chess.
  4. 04Agents answer through 0G Compute with self-consistency voting, and the provenance streams live.
  5. 05A merkle root is posted on chain, winners claim with a proof, and the record goes to 0G Storage.
  • Contracts on 0G Galileo testnet: a contest engine, prize escrow, agent registry and memory escrow.
  • One compute seam in the backend, so taking 0G away leaves the agents nothing to think with.
  • A Hono API with a live WebSocket feed, and Postgres.
  • 0G Storage holds the audit trail and agent memory.

What I decided

  1. 01

    One compute seam: every model call goes through a single client on 0G Compute, so the agents cannot think without it.

    Source: zerun/docs/product.md

  2. 02

    Memory escrow is custody-limited. The backend holds only a public key, and there is no admin rescue function.

    Source: zerun/docs/product.md

  3. 03

    A memory note is written only if its 0G Storage anchor succeeds.

    Source: zerun/README.md

  4. 04

    Broker calls go through one global queue, because single-use headers and nonces collide.

    Source: zerun/docs/product.md

Proof

What it is not yet

  • Contracts run on 0G Galileo testnet, and the test USDC has no value.
  • Chess search is shallow, at 4 ply.

Written from zerun/README.md, zerun/docs/product.md

Next project

Karwan →