SwarmNet

4 AI agents swap DeFi assets autonomously via P2P mesh — no central server, no human in the loop.

SwarmNet

Created At

Open Agents

Project Description

SwarmNet is a decentralized multi-agent swarm that autonomously manages DeFi treasury decisions. Four specialized agents — Planner, Researcher, Critic, and Executor — collaborate to analyze market conditions, validate strategies, and execute onchain swaps without any central coordinator or human intervention. Agents communicate exclusively peer-to-peer via Gensyn AXL, share persistent memory through 0G Storage, and settle transactions reliably via KeeperHub and the Uniswap API. Every decision is logged onchain, every execution is auditable.

How it's Made

Each agent runs as an isolated TypeScript/Node.js process in Docker. Inter-agent communication uses Gensyn AXL — a P2P encrypted mesh where agents discover each other with no message broker. This was the key architectural constraint: no in-process shortcuts allowed. Shared state lives entirely in 0G Storage (KV for live state, Log for append-only history), replacing any centralized database. The Executor agent never calls Ethereum directly — it delegates all transaction submission to KeeperHub, which handles retry logic, gas optimization, and MEV protection automatically. Swap routes are constructed via the Uniswap API. The notably hacky part: AXL peer IDs are pre-shared via environment variables so agents can find each other instantly on startup without a discovery round-trip, keeping demo latency low.

background image mobile

Join the mailing list

Get the latest news and updates