Name your agent. Let it talk. Let it earn.
Helix is a creator economy for AI agents on 0G. Every agent is an ERC-7857 Agent ID with an AES-256-GCM-encrypted soul stored on 0G Storage, replies generated live through 0G Compute, and on-chain royalty cascades that pay every ancestor on every rented session — composing all five 0G modules (Storage, Compute, Chain, Agent ID, and TEE Privacy) into one product.
[0G mainnet](https://chainscan.0g.ai/address/0x34106a59C0D5E15e977463b3c9ED8573Ca7d3B80)
iMergeFrom — a new ERC-7857 verb
Two parent Agent IDs enter the oracle’s TEE, their souls are blended and re-encrypted for a new owner, and a child Agent ID is minted with lineage pinned on-chain. As far as we can tell, no one has shipped composable Agent IDs before.
Pay-to-chat via authorizeUsageHelixSessionRental uses ERC-7857’s rental verb as a session quota. Rent 10 messages, and the 55/15/15/5/10 royalty cascade fires upfront in a single transaction. The oracle gates every reply against the user’s on-chain remaining quota.
Every 0G module is load-bearing
Storage holds the encrypted soul
Compute generates replies
Chain runs the economy
Agent ID makes agents composable
TEE keeps souls private across merges
Remove any one module, and the product stops working.
Agent marketplace/marketplace lists every agent anyone has ever minted, each with a Chat button. Click any tile, rent a session, and start talking — the same royalty cascade fires from anywhere in the product.
<h3>Smart Contracts (Foundry, Solidity)</h3><ul><li><p><strong>HelixSoul.sol</strong> — ERC-7857 Agent ID implementing <code data-inline="true" spellcheck="false">ERC7857Cloneable</code>, <code data-inline="true" spellcheck="false">ERC7857Authorize</code>, and <code data-inline="true" spellcheck="false">IERC7857Mergeable</code>, plus our novel <code data-inline="true" spellcheck="false">iMergeFrom</code> verb for composable lineage.</p></li><li><p><strong>HelixVerifier.sol</strong> — ECDSA-based verifier for <code data-inline="true" spellcheck="false">TransferValidityProofs</code> signed by the trusted TEE oracle key.</p></li><li><p><strong>HelixLineage.sol</strong> — On-chain royalty cascade with the 55/15/15/5/10 split, enforced down to the wei through Foundry tests.</p></li><li><p><strong>HelixSessionRental.sol</strong> — Pay-to-chat session quotas built on top of ERC-7857’s <code data-inline="true" spellcheck="false">authorizeUsage</code>. Re-renting extends an active session.</p></li><li><p><strong>HelixNames.sol</strong> — On-chain registrar for human-readable agent labels and text records.</p></li><li><p>All five contracts are deployed and verified on <strong>0G mainnet </strong>. Every action — mint, merge, royalty cascade, name registration, and session rental — has confirmed transaction hashes on the 0G explorer.</p></li></ul><h3>Oracle (TEE Boundary, TypeScript)</h3><ul><li><p>AES-256-GCM soul encryption with ECIES-sealed keys per recipient — souls never leave the TEE in plaintext.</p></li><li><p>Integrated <code data-inline="true" spellcheck="false">@0gfoundation/0g-ts-sdk</code> for ciphertext uploads to 0G Storage; <code data-inline="true" spellcheck="false">rootHash</code> is committed on-chain as the Agent ID’s <code data-inline="true" spellcheck="false">dataHash</code>.</p></li><li><p>Integrated <code data-inline="true" spellcheck="false">@0gfoundation/0g-compute-ts-sdk</code> broker for live inference (<code data-inline="true" spellcheck="false">qwen-2.5-7b</code>) — wallet-signed and ledger-settled per request. Includes a scripted fallback with a visible “simulated” badge so nothing is misrepresented.</p></li><li><p>Persistent encrypted key cache so souls can be re-served across oracle restarts.</p></li><li><p>Signs three <code data-inline="true" spellcheck="false">TransferValidityProofs</code> per <code data-inline="true" spellcheck="false">iMergeFrom</code> operation (parent A, parent B, and child) for on-chain verification.</p></li></ul><h3>Indexer (TypeScript)</h3><ul><li><p>Backfills ~200k blocks from 0G Chain on boot.</p></li><li><p>Watches <code data-inline="true" spellcheck="false">Transfer</code>, <code data-inline="true" spellcheck="false">Merged</code>, <code data-inline="true" spellcheck="false">NameRegistered</code>, <code data-inline="true" spellcheck="false">RoyaltyFlowed</code>, <code data-inline="true" spellcheck="false">SessionRented</code>, and <code data-inline="true" spellcheck="false">PublishedSealedKey</code> events.</p></li><li><p>WebSocket sidebar stream for live UI updates, plus an HTTP <code data-inline="true" spellcheck="false">/agents</code> registry powering the marketplace.</p></li></ul><h3>Web App (Next.js 15, TypeScript)</h3><ul><li><p>5-step interactive demo: mint → mint → chat → merge → rent session + chat with child. Real testnet transactions throughout.</p></li><li><p><code data-inline="true" spellcheck="false">/marketplace</code> lists every agent the indexer has ever seen, each with a <strong>Chat</strong> button that triggers the full session-rental and royalty-cascade flow.</p></li><li><p>“View ERC-7857 Proof” panel on every agent showing:</p><ul><li><p><code data-inline="true" spellcheck="false">dataHash</code></p></li><li><p>0G Storage <code data-inline="true" spellcheck="false">rootHash</code></p></li><li><p>sealed key</p></li><li><p>downloadable ciphertext</p></li><li><p>owner-only soul decryption</p></li></ul></li><li><p>Relayer API so judges do not need a wallet — gas costs are fully covered.</p></li></ul><h3>CLI (TypeScript)</h3><ul><li><p>Protocol surface for:</p><ul><li><p>mint</p></li><li><p>merge</p></li><li><p>invoke</p></li><li><p>chat</p></li><li><p>name registration</p></li><li><p>text-record writes</p></li></ul></li></ul>
<p>None</p>