On-chain AI virtual pet powered by the full 0G stack — identity on 0G Chain, state on 0G KV, memories on 0G Log, soul on 0G Compute. It cannot be deleted.




Gochi is a Tamagotchi-inspired AI virtual pet that lives entirely on the 0G modular stack — the first pet whose existence is cryptographically guaranteed.
When Tamagotchi servers shut down in 2023, millions of virtual pets were erased overnight. Gochi solves this permanently:
🔗 Identity — Minted as an ERC-721 INFT on 0G Galileo Chain. Your pet owns a unique on-chain identity, verifiable on ChainScan at any time.
⚡ Reflexes — Hunger, mood, and energy are stored in 0G Storage KV with sub-50ms round trips. The pet reacts to your actions in real time with no AWS, no centralized database.
🧠 Memory — Every action (feed, play, sleep, chat) is permanently archived to 0G Storage Log as a Merkle-verified document. The root hash is stored on-chain and viewable on StorageScan. These memories can never be deleted.
🤖 Soul — Gochi's personality runs on 0G Compute Router, an OpenAI-compatible API backed by TEE-verified inference. The ZG-Res-Key response header provides cryptographic proof that Gochi's responses came from a genuine compute environment — impossible with centralized providers.
Take 0G out and you'd need Redis + IPFS + Arweave + OpenAI + Ethereum: four SDKs, four billing accounts, zero unified verification. With 0G it's one SDK, one token, four capabilities.
Live at: https://gochi.edycu.dev
Contract: 0x9BDA4cBfda7a7960251A4EE07A7ec0C00239a8cf (0G Galileo, Chain ID 16602)
Week 1 — Foundation
- Deployed ERC-721 INFT contract (Gochi.sol) to 0G Galileo Testnet
- Integrated @0gfoundation/0g-storage-ts-sdk for KV read/write (Batcher + KvClient)
- Built Next.js 16 App Router skeleton with wagmi v3 + viem v2 wallet connection
- Implemented automatic chain switching to 0G Galileo (chainId: 16602) on mint
Week 2 — Core Features
- Integrated 0G Storage Log (Indexer.upload + MemData) for permanent memory archival
- Connected 0G Compute Router for AI chat with TEE verification (ZG-Res-Key header)
- Built PetViewport with animated ghost, stat bars, and real-time KV state updates
- Added Supabase fallback persistence so the demo is always live regardless of testnet status
Week 3 — Polish & Submission
- Redesigned MintFlow: replaced broken carousel with two-panel New Life / Resume layout
- Fixed WalletConnect chain mismatch errors and suppressed analytics console noise
- Created dynamic ERC-721 tokenURI + SVG image endpoint (/api/metadata/[tokenId])
- Added Core Memories panel with Merkle roots and live StorageScan links
- Deployed to Vercel at gochi.edycu.dev with custom domain
- Created pitch deck (self-contained HTML at /pitch), demo video, and full documentation
Bootstrapped — no external funding. Built solo as a hackathon submission.