Alpha402

4 AI agents watch markets, score risk via Gensyn, and execute trades on Uniswap v4 — autonomously.

Alpha402

Created At

Open Agents

Project Description

The project Alpha402 is an autonomous, Telegram-native DeFi agent gateway designed to bridge the gap between natural language intent and secure on-chain execution. It leverages a decentralized multi-agent architecture where each agent serves a specialized role:

Commander Agent: Acts as the entry point, parsing user intent (e.g., "Buy ETH if it drops below $2300") using decentralized AI and registering the strategy on-chain as a unique Identity NFT (iNFT). Intel Agent: Provides real-time market monitoring, tracking price feeds across multiple DEXs and triggering execution signals when target conditions are met. Risk Agent: Performs high-stakes security analysis using the 0G Compute Network. It generates TEE-verified scores to ensure that every trade is verified by a secure enclave before being submitted. Execution Agent: Handles final settlement via KeeperHub, ensuring that trades are executed reliably even during high volatility or network congestion. Key Technical Integrations:

0G Compute: Used for TEE-verified risk scoring, providing cryptographic proof of AI inference. 0G Storage: Serves as a decentralized, tamper-proof audit trail for all inter-agent communication. KeeperHub: Provides guaranteed execution and conditional "check-and-execute" logic on Sepolia. Gensyn AXL: Enables P2P mesh communication between agents, removing centralized bottlenecks. Unichain & x402: Implements a real-time micropayment economy for agentic data and compute services. By combining verifiable AI, decentralized storage, and guaranteed execution, Alpha402 provides a professional-grade trading infrastructure that is completely autonomous yet fully auditable on-chain.

How it's Made

Alpha402 is architected as a decentralized "crew" of agents communicating over an event-driven AgentBus. The core challenge was ensuring that autonomous AI decisions were both verifiable and reliable.

🏗️ Technical Stack & Integration: 0G Compute & Storage (The "Brain" & "Memory"): We integrated the 0G Compute SDK to perform risk analysis. The "nitty-gritty" here involved wrapping the inference calls to ensure TEE (Trusted Execution Environment) proofs were captured and passed down the pipeline. For "Memory," we used 0G Storage to persist the entire message bus. Every agent-to-agent signal is hashed, Merkle-tree verified, and uploaded to 0G, creating an immutable audit trail that judges can verify on the Galileo Explorer. KeeperHub (The "Muscle"): Instead of building complex transaction relayers, we utilized KeeperHub’s Direct Execution API. We implemented the check-and-execute pattern where our Execution Agent submits a trade to KeeperHub, which then calls our StrategyVault on-chain to verify conditions (using authoriseExecution) before settling. This effectively outsourced gas management and retry logic to a professional keeper network. Unichain & x402 (The "Economy"): We built a real-time payment layer where the Intel Agent is compensated for every price trigger it fires. These payments are recorded using the x402 protocol on Unichain Sepolia, demonstrating how agents can autonomously settle service fees. Frontend (The "Eyes"): Built with Next.js, the dashboard features a custom 3D Pipeline Graph. We used a persistent state machine to ensure that as the signal moves from Commander to Execution, the "path" stays lit with a glowing neon effect, providing clear visual feedback of the agentic flow. 🛠️ Notable "Hacky" Solutions & Resilience: Resilient 0G Failover: During development, the 0G testnet indexers were frequently congested (503 errors). We built a custom failover engine in zeroG.ts that rotates through multiple indexer URLs and, as a last resort, generates "Simulated Audit Proofs" (0g-pending-congested://...). This ensures the dashboard UI remains beautiful and functional for the demo even if the testnet is under heavy load. iNFT Identity Minting: On every startup, each agent checks for its on-chain identity. If missing, it automatically mints an Identity NFT (iNFT) and verifies its ENS subdomain (e.g., risk.alpha402.eth), establishing a verifiable on-chain persona for the autonomous crew.

background image mobile

Join the mailing list

Get the latest news and updates

Alpha402 | ETHGlobal