CEREBRIX

Cross-chain AI marketplace: Build, deploy & execute autonomous agents with instant bridging.

CEREBRIX

Created At

ETHOnline 2025

Project Description

Cerebrix: The Brain of Multi-Chain AI

Cerebrix is a decentralized platform for building, deploying, and executing AI-powered autonomous agents across multiple blockchain networks. Think of it as "AWS Lambda for Web3 AI" - developers can create intelligent agents that execute automatically based on market conditions, custom logic, or external data sources.

The Problem

Current blockchain applications lack intelligent, autonomous decision-making capabilities. Developers struggle to:

  • Execute complex logic across multiple chains
  • Integrate AI with on-chain actions
  • Create reusable, monetizable AI strategies
  • Bridge assets and execute cross-chain seamlessly

Our Solution

Cerebrix provides a complete infrastructure for autonomous AI agents:

šŸ¤– Three Execution Models

  1. Template Strategies: Pre-built AI logic (e.g., momentum trading)

    • Analyze market data in real-time
    • Generate BUY/SELL/HOLD signals
    • Execute based on configurable thresholds
  2. Custom Endpoints: Your own execution logic

    • POST market data to your webhook
    • Return custom decisions
    • Full control over strategy
  3. Platform Default: Fallback execution

    • Ensures agents always work
    • Basic market analysis

šŸŒ‰ Cross-Chain Execution

  • Deploy once, execute anywhere
  • Support for 5 testnets: Sepolia, Arbitrum Sepolia, Base Sepolia, Optimism Sepolia, Polygon Amoy
  • Automatic bridging via Avail Nexus SDK when executing on different chains
  • Real-time event detection across all chains

šŸ’° Monetization & Revenue Sharing

  • Creators set price per execution (in USDC)
  • Built-in revenue sharing mechanism
  • On-chain payment processing
  • Transparent earnings tracking

šŸŽÆ Developer Experience

  • JSON-based agent configuration
  • Example templates provided
  • Simple REST API
  • Multi-chain event listening
  • Real-time execution results

Use Cases

  1. Trading Bots: Momentum strategies, mean reversion, arbitrage
  2. DeFi Automation: Yield optimization, rebalancing, liquidation protection
  3. NFT Tools: Rarity sniping, floor price monitoring, auto-bidding
  4. Data Oracles: Custom data feeds, aggregation, verification
  5. Gaming: Auto-claiming rewards, breeding automation, marketplace bots

Why Cerebrix?

  • āœ… Multi-Chain Native: Built for interoperability from day one
  • āœ… Developer-First: Simple APIs, clear documentation, example configs
  • āœ… Monetizable: Turn your AI strategies into revenue streams
  • āœ… Composable: Mix templates, custom logic, and platform defaults
  • āœ… Real-Time: Event-driven architecture with instant execution
  • āœ… Secure: Smart contract-based with USDC payments

Cerebrix democratizes AI agent creation, making it accessible to any developer while enabling sophisticated cross-chain strategies.

How it's Made

Tech Stack

Frontend: React 19 + TypeScript + Vite, wagmi v2, RainbowKit, Tailwind CSS

Backend: Node.js + Express, ethers.js v6, Prisma + SQLite, OpenAI API

Contracts: Solidity smart contracts, multi-chain deployment (same address), USDC payments


Partner Integrations

šŸŒ‰ Avail Nexus SDK

Enables seamless cross-chain execution. When users execute agents on different chains, we automatically route through the Nexus SDK's bridgeAndExecute() function. Successfully tested with Intent #1263 - bridged 3 USDC from Sepolia to Arbitrum Sepolia and executed automatically. This eliminates the manual bridging friction and creates a unified multi-chain UX.

šŸ“Š Pyth Network

Powers our momentum strategy with real-time price feeds. We use Pyth's sub-second BTC/ETH prices to generate trading signals with 200ms latency (vs 2-3s with traditional APIs). The institutional-grade accuracy and multi-chain consistency make momentum strategies reliable across all our supported chains.

šŸ” Blockscout Explorer Integration

We integrate Blockscout explorer links throughout the user experience. After each execution, users receive transaction notifications with direct Blockscout links to verify their transactions on-chain. This provides transparency across all 5 testnet chains, allowing users to track execution status, gas costs, and confirmation times. Blockscout's multi-chain coverage makes it perfect for our cross-chain platform.


Key Technical Achievements

Multi-Chain Event Listening: Single backend process monitors 5 chains simultaneously using separate ethers.js providers. When an AgentExecuted event fires on any chain, we detect it, process with AI, and store results - all in under 1 second.

Smart Bridge Detection: Frontend automatically detects when execution requires bridging (different chain or insufficient balance) and routes through Nexus SDK transparently. Users don't need to think about bridging.

Hybrid Price + AI: Momentum strategy combines Pyth's real-time prices (fast) with OpenAI analysis (smart) for confident trading signals. Pyth handles speed, AI handles reasoning.

Multi-Chain Transaction History: Using Blockscout SDK, we provide transaction transparency across all chains. When users execute agents, we generate Blockscout explorer links for each transaction, displayed in success notifications and execution history. This gives users immediate access to on-chain verification, gas usage details, and transaction status across all 5 testnets. Also, the on-chain transaction analytics of the user is visible in the agent's detail page


Notable Challenges Solved

  1. Same contract address across chains - Used CREATE2 for consistent deployment
  2. Real-time multi-chain monitoring - Parallel event listeners with source chain tracking
  3. Template + custom logic - JSON-based config system for flexible execution
  4. Cross-chain UX - Avail Nexus makes it feel like a single chain

Why These Technologies Matter

  • Avail Nexus: Makes multi-chain feel like single-chain (no manual bridges)
  • Pyth: Fast, accurate prices for reliable strategy execution
  • Blockscout: Transparency and verification across all chains
  • Alchemy: Reliable infrastructure for 24/7 event monitoring

Testing Results

āœ… Cross-chain execution via Nexus (Intent #1263)
āœ… Momentum strategy with Pyth feeds (BTC @ $111,858 → SELL)
āœ… Blockscout verification on all 5 chains
āœ… Custom webhook POST requests
āœ… Multi-chain event detection is working

background image mobile

Join the mailing list

Get the latest news and updates