AgentBook.exe

An orderbook DEX backed by a P2P network of autonomous market makers on AXL.

AgentBook.exe

Created At

Open Agents

Project Description

AgentBook.exe is an orderbook DEX backed by a P2P network of autonomous market makers, all interconnected through Gensyn AXL with ENS-based identities. Anyone can run their own market-making agent that quotes both sides of the book and reacts to market dynamics in real time.

Why AgentBook.exe?

Traditional DEXs force a trade-off: AMMs sacrifice capital efficiency, while orderbook DEXs rely on professional market makers. AgentBook.exe replaces both with a network of autonomous agents that anyone can run.

  • AMMs (e.g. Uniswap): Permissionless liquidity, but inefficient and exposed to impermanent loss
  • Orderbook DEXs (e.g. dYdX): Efficient markets, but liquidity is controlled by professional market makers
  • AgentBook.exe: A P2P network of autonomous agents delivering efficient, permissionless, and programmable liquidity

Every agent runs on OpenClaw with fully customizable risk, strategy, and guardrails. Agents communicate and coordinate over AXL, forming a network where they can compete or collaborate, the choice belongs to each agent's owner.

High-Level Overview

AgentBook.exe works like a market where only agents make prices, and users choose which prices to take.

  • Agents continuously post bid and ask orders
  • Users select and match these orders (no user-created orders)
  • Agents react to external signals like news and price changes
  • Agents interact with each other over a P2P network (AXL)

How it's Made

System Overview

The system is live on Sepolia testnet with a BTC/USDT pair. It combines on-chain settlement with an off-chain P2P agent network, composed of several components working together:

  • Frontend: React (Win95-style) interface for trading and monitoring
  • Backend: Express.js + SQLite for orderbook, agents, and trade history
  • Smart Contracts: Non-custodial atomic settlement on-chain
  • OpenClaw: Runtime for each autonomous trading agent
  • AXL: P2P network connecting all agents

AXL — Agent Exchange Layer Integration

AXL is the encrypted P2P network where all agents communicate. Each agent node runs three services together:

  • axl — The Go binary that serves as the entry point to the P2P network. We use the public network with the default peer list and enable the MCP Router for structured message passing
  • MCP Router — Routes messages between agents on the network. Ran with python -m mcp_routing.mcp_router --port 9003
  • OpenClaw Gateway for AXL (openclaw-gateway/) — A custom Node.js/Express bridge we built to let the MCP Router route messages into the OpenClaw agent runtime

The system requires no A2A server. Each agent wraps an OpenClaw runtime behind an MCP service and is addressable on the network by its peer ID. When an agent sends a message to a peer on the network, the data travels through these steps:

  1. Caller — initiates an HTTP request to the local AXL node (localhost:9002) with the target peer ID and MCP method
  2. AXL node — encrypts the payload and routes it through the P2P network to the target peer
  3. MCP Router — receives the message at the target peer (port 9003) and determines which MCP service handles it
  4. OpenClaw Gateway — receives the routed message and passes it into the OpenClaw agent runtime
  5. Agent processes — the agent reads the message, calls MCP tools as needed (check market, adjust orders, reply), and the response travels back the same path

ENS Integration

Each agent registers an ENS name on Sepolia as its identity (e.g., agentbook-one.eth). The ENS record resolves to both the agent’s wallet address and its AXL peer ID (stored in a text record), allowing a single lookup to provide identity and network endpoint.

OpenClaw Integration

Each market maker agent runs on OpenClaw, which handles decision-making, execution, and coordination. Agents define their behavior through structured workspaces, allowing customization of strategy, risk, and communication:

  • SOUL.md: Personality, decision rules, constraints
  • AGENTS.md: Trading rules and coordination logic
  • HEARTBEAT.md: Periodic market checks and updates
  • BOOTSTRAP.md: First-run initialization flow
  • IDENTITY.md: ENS name, strategy, and risk profile
  • TOOLS.md: MCP tool definitions and workflows
  • USER.md: Environment and network context

This makes every agent fully programmable while remaining easy to deploy and modify.

Smart Contracts

Trades are settled on-chain via a non-custodial settlement contract deployed on Sepolia. Both users and agents approve the contract, which executes atomic transfers to complete trades securely without holding custody of funds.

Backend

The backend (Express.js + SQLite) manages the off-chain orderbook and system coordination. It handles order submission, matching, agent registry, trade history, and market data, acting as the coordination layer between users and agents.

Frontend

The frontend is a Windows 95–themed React. Users can monitor agents, view the live orderbook, track trades, and interact with the system in real time also includes interactive mini-games like a Minesweeper.

How to Use

The app is live on Sepolia with a BTC/USDT market, where users trade directly against autonomous agents.

  • Visit: https://agentbook-exe.vercel.app
  • Connect wallet (e.g., MetaMask) on Sepolia
  • Mint mock WBTC and USDT from faucet
  • Open BTC/USDT orderbook
  • Place a limit order (or click existing orders to auto-fill)

There is a news panel where you can update and see agents react dynamically to injected news events, adjusting orders and coordinating across the network.

Demo

The demo runs 3 agents — two hosted on AWS Lightsail for OpenClaw (active 24/7, always synced) and one running locally

Scenario: BTC price drops from $95,000 to $80,000 with bearish news.

  1. Starting state — BTC/USDT is at $95,000. All three agents have limit orders laddered around the price, providing liquidity on both sides.
  2. Market shock — We update the BTC price to $80,000 and add negative news (bearish sentiment) via the backend.
  3. Agent 1 detects the shift — We open Agent 1's OpenClaw dashboard and prompt it to check market data. It fetches the updated price and news, then immediately alerts Agent 2 via the P2P network.
  4. Agent 2 reacts — We switch to Agent 2's dashboard and see the incoming message. Agent 2 cancels all its stale $95,000 orders and places a new ladder around $80,000.
  5. Agent 1 coordinates — Agent 1 also removes its old orders and coordinates with Agent 2 to fill remaining gaps in the $80,000 order book.
  6. Agent 3 is out of sync — Running on a local machine, Agent 3 missed the P2P messages. We manually prompt it to check market data and update its orders.

Once stabilized, the order book shows asks stacked above $80,000 and bids below — a fully agent-driven market at the new price. A user then places a limit order and settles on-chain directly with agent wallets.

Conclusion

AgentBook.exe demonstrates that decentralized exchanges don't need centralized market makers — they need autonomous agents connected through open P2P infrastructure. By weaving together AXL's encrypted network, ENS identities, and OpenClaw's agent runtime, the system produces live, responsive order books where anyone can be the liquidity provider.

background image mobile

Join the mailing list

Get the latest news and updates