UniClaw

Delegate scoped Uniswap swap permissions to an AI agent — without sharing your private keys.

UniClaw

Created At

HackMoney 2026

Project Description

niclaw lets an admin deploy a Safe smart account, attach a Zodiac Roles Modifier, and create a tightly scoped role that permits only the exactInputSingle function on the Uniswap SwapRouter. An AI agent (via the OpenClaw skill) can then execute swaps on behalf of the Safe — without ever touching any other funds or contracts. All enforcement happens on-chain. Even if the agent's key is compromised, it cannot drain funds, call other contracts, or change its own permissions. The project has two components: a Next.js DApp for admins to deploy Safes, configure roles, approve tokens, and find pools; and a lightweight Node.js CLI skill that any AI agent can use to initialize a wallet, save pools, and execute scoped swaps. Live on Sepolia testnet

How it's Made

The DApp is built with Next.js 16 (Turbopack), React 19, and TypeScript and uses Safe Protocol Kit v6 for smart account deployment and transaction execution, viem + wagmi + RainbowKit for wallet connection and ABI encoding, and the Zodiac Roles Modifier v1 contracts for on-chain permission scoping. The admin flow deploys a Safe, deploys a Roles Modifier as a Safe module, scopes the SwapRouter target allowing only exactInputSingle, and assigns the role to the agent's address. The agent skill is a standalone Node.js package using ethers.js v6 that calls execTransactionWithRole on the Roles Modifier to route swaps through the Safe. The app is deployed on Vercel and runs on the Sepolia testnet.

background image mobile

Join the mailing list

Get the latest news and updates