AgentCourt is a verifiable execution layer and decentralized arbitration protocol for AI agents, built on 0G. It makes every AI decision tamper-proof and disputable: inference runs inside TEE (Trusted

AgentCourt is a verifiable execution layer and decentralized arbitration protocol for AI agents, built on 0G. Every AI decision runs inside a TEE (Trusted Execution Environment) via 0G Compute, producing cryptographic attestation. Execution data is stored on 0G Storage using dual-layer KV + Log with Merkle proofs, and results are anchored on 0G Chain. When disputes arise, a TEE-secured arbiter reviews evidence and settles automatically via smart contract escrow — no human intermediary needed. All 5 core 0G components are integrated with real SDK calls, zero mocks.
All work was completed during the hackathon period (May 2–3, 2026). This project was built from scratch — no pre-existing code was reused.
Day 1 (May 2):
- Designed and implemented the full system architecture: 3 Solidity smart contracts (TaskRegistry, DisputeResolution, AgentRegistry), TypeScript SDK with TEE client, dual-layer storage client, proof builder, agent identity module, and automated arbiter service.
- Created architecture diagrams and data flow documentation (sequence diagrams for normal execution and dispute resolution).
- Built the arbiter agent service for automated dispute resolution with TEE-signed verdicts.
- Wrote unit tests for storage client and proof builder.
- Set up monorepo tooling (pnpm workspaces, npm scripts, CI pipeline via GitHub Actions).
- Resolved dependency and TypeScript compilation issues across SDK and dashboard packages.
Day 2 (May 3):
- Deployed all 3 smart contracts to 0G Mainnet (Chain ID: 16661): TaskRegistry, DisputeResolution, AgentRegistry.
- Executed real on-chain interactions: registered 2 agents (Alice, Bob), anchored 3 tasks with TEE signatures, submitted and resolved 1 dispute (FavorClient verdict).
- Replaced all mock/simulated code with real 0G SDK integrations:
- TEE inference via @0glabs/0g-serving-broker (createZGComputeNetworkBroker, listService, getRequestHeaders, processResponse)
- Storage via @0glabs/0g-ts-sdk (ZgFile, merkleTree, indexer.upload for Log layer; Batcher, KvClient for KV layer)
- Built and deployed an interactive demo website (https://bagpx66z.mule.page) showcasing the full pipeline: TEE inference, storage logging, chain anchoring, proof verification, and dispute resolution — all with step-by-step terminal simulations.
- Recorded and published a 3-minute demo video.
- Finalized documentation (README in English and Chinese) with real SDK code examples, mainnet contract addresses, and network endpoint references.
Key achievement: Production-grade integration of all 5 core 0G components (Compute, Storage KV, Storage Log, Chain, Agent ID) with zero mocks and zero simulated data.
Not applicable. AgentCourt is an open-source project built during this hackathon. No fundraising has been conducted.