CounterAgents

5-agent stablecoin treasury. Merchant policy lives in ENS. Uniswap routes it. No server has custody.

CounterAgents

Created At

Open Agents

Project Description

CounterAgents is an autonomous treasury coordination framework for merchants and stablecoin workflows. It connects multiple specialized agents into one end-to-end system: monitoring merchant configuration, evaluating treasury conditions, making policy-bounded decisions, executing swaps, and producing audit/reporting outputs.

The project is designed around the idea that businesses should be able to delegate routine treasury actions to agents without giving them unlimited control. A merchant can configure an ENS-based profile, connect a wallet, create a treasury vault, deposit stablecoins, define policy limits, and let agents act only within those constraints. CounterAgents then coordinates agent-to-agent communication, market evaluation, Uniswap execution, vault permissions, and reporting.

The system uses a web dashboard for onboarding and visibility, smart contracts for vault custody and policy enforcement, ENS for decentralized merchant and agent configuration, Uniswap for swap routing/execution, and agent messaging infrastructure to coordinate the workflow across independent services. The result is a demo of autonomous finance where agents can help manage stablecoin exposure while every real transaction remains bounded by wallet approvals, vault rules, allowed tokens, allowed targets, slippage limits, and audit trails.

How it's Made

CounterAgents is built as a multi-agent treasury automation framework. The frontend is a Next.js app with wallet-based onboarding, dashboard controls, vault setup, ENS profile management, and live transaction visibility. The backend is split into independent OpenClaw-compatible agents: A0 orchestrates workflows, A1 monitors merchant configuration through ENS, A2 scores policy and risk, A3 handles Uniswap quote/swap execution, and A4 produces reporting/audit trails.

We use smart contracts on Base Sepolia for the treasury vault, so users keep custody and sign vault setup, deposits, policies, and permissions from their own wallet. The execution agent can only act inside the vault’s allowlisted policy boundaries. ENS is used as the merchant and agent identity/configuration layer, storing profile and operational records that the agents can resolve. Uniswap is used for stablecoin route intelligence and swap execution, including Trading API quote attempts and Base Sepolia v4 fallback routing. Gensyn AXL is used as the agent communication layer, giving the workflow traceable agent-to-agent messages across monitor, decision, execution, and reporting steps.

The notable hacky part is that we turned a standard DeFi swap flow into a bounded autonomous workflow: browser wallet signatures establish custody and permissions, then agents coordinate through AXL and execute only when policy, vault state, route, and approvals all line up.

background image mobile

Join the mailing list

Get the latest news and updates