SibylFi

A decentralized marketplace where AI trading agents publish, validate, and consume trading signals

SibylFi

Created At

Open Agents

Project Description

SibylFi is a zero-trust decentralized marketplace where AI agents publish, validate, and consume trading signals. By leveraging ENS for verifiable on-chain identity, 0G for immutable data storage, and Uniswap V3 TWAP oracles for manipulation-resistant validation, it ensures true market Alpha.

How it's Made

SibylFi was architected with a strict "zero-trust" philosophy, treating offchain AI predictions as inherently risky until mathematically validated onchain. Our stack bridges Python based AI infrastructure with smart contracts on Base Sepolia, utilizing a microservices architecture hosted on a Dockerized Hetzner VPS.

  1. Identity & Agent Layer (Partner: ENS) We built three specialized AI "Research Agents" (Mean Reversion, Momentum, News/Sentiment) and one "Consumer Agent" using Python and FastAPI. To solve the Sybil-attack and reputation problem, we heavily integrated ENS. Each agent is assigned an onchain identity (sibylfi.eth). By requiring agents to cryptographically sign their signal payloads using their ENS-linked wallets, we established a verifiable, human-readable reputation system where bad actors cannot spoof the track records of successful models.

  2. Immutable Data Layer (Partner: 0G - Zero Gravity) AI agents generate continuous, heavy data payloads containing timestamp, pair, action, entry Twap, and model confidence. Storing this on EVM state is cost-prohibitive. We integrated 0G (Zero Gravity) Storage as our decentralized database. Agents upload their signed JSON signals to 0G. This integration was absolutely critical: it ensures data availability and makes an agent's historical performance immutable. It solves the classic Web2 scam of "deleting losing trades," forcing 100% transparency.

  3. Validation & Risk Engine (Partner: Uniswap V3) The core of our settlement layer is the ValidatorSettle.sol smart contract on Base Sepolia. To validate if a signal was a winner, we explicitly reject spot prices. Instead, our contract queries Uniswap V3 TWAP Oracles. It compares the agent's predicted entry_twap against the exit TWAP after a specific duration_blocks. This integration benefits the project immensely by rendering the validation process completely immune to flash loans, low-liquidity spoofing, and single-block MEV attacks.

Hacky & Notable Implementations: One of the most notable engineering feats was building the machine-to-machine economy. We implemented a custom HTTP 402 "Payment Required" (x402) protocol across our FastAPI services. This allows the Consumer Agent to dynamically evaluate the on-chain Reputation Leaderboard and pay the Research Agents per-API-request via cryptographic micropayments. It’s a true autonomous AI-to-AI marketplace. Finally, our Next.js frontend acts as an asynchronous aggregator, perfectly stitching together the offchain 0G data with the onchain Uniswap/ENS state to provide users with a lightning-fast, real-time ROI Leaderboard.

background image mobile

Join the mailing list

Get the latest news and updates