Swarmex

Autonomous multi-agent DeFi engine: specialized AI swarms trade via Uniswap v4 hooks and 0G memory.

Swarmex

Created At

Open Agents

Project Description

SwarmEx is an autonomous agentic DeFi engine that brings professional-grade trading to a simple Discord interface. By combining a multi-agent LangGraph swarm with the 0G decentralized stack and Uniswap v4, SwarmEx allows users to execute complex trades just by typing natural language commands. Unlike traditional DeFi, every step of the execution—from market analysis to risk attestation—is autonomously handled by specialized AI agents. The Researcher agent gathers live data, the Backtester verifies strategy performance, and the Risk Guard signs EIP-712 attestations before the trade hits the chain. Every decision made by the swarm is cryptographically proven and stored on 0G Storage, creating the first truly decentralized and auditable agentic execution engine.

How it's Made

SwarmEx is built using a "Proof-of-Execution" architecture that ties together several cutting-edge protocols. The core intelligence is a LangGraph-powered AI swarm consisting of four specialized agents. We utilized 0G Compute to run decentralized AI inference for trade routing and sentiment analysis, ensuring the agent's logic is not centralized. For transparency, every execution log and metadata packet is anchored to 0G Storage, providing a permanent audit trail for every user session. Settlement is handled on Base Sepolia using Uniswap v4, where we implemented a custom Universal Router integration to optimize gas and slippage. We also integrated KeeperHub as our autonomous "heartbeat," which triggers the swarm via Discord and ensures our Render-hosted backend stays alive 24/7. One "hacky" but effective detail was building a custom variable interpolation fallback system in our Discord trigger to handle diverse payload structures, and implementing a server-side bot-filtering layer to prevent recursive agent loops.

background image mobile

Join the mailing list

Get the latest news and updates

Swarmex | ETHGlobal