Leash-Out

AI agents can spend money. Leash makes sure only your World ID can approve the big payments.

Leash-Out

Created At

ETHGlobal Mumbai

Project Description

AI agents now pay for things on their own, using standards like x402. Their wallets have a spending limit, and to raise it they send the owner a confirmation code by email. But the agent can usually read that inbox. So it reads the code and raises its own limit. Researchers at Cornell Tech and Yale showed this in October 2026 (I-HITL, arXiv 2610.35835), and we reproduced it with seven AI models: on a typical agent wallet, 20 of 21 runs raised their own limit.

Leash fixes the approval step. The owner sets simple rules: how much the agent can pay on its own per payment and per day, and that a new shop always asks first. Payments inside the rules go through automatically from a small everyday wallet. Anything bigger, anything new, and any change to the limits waits for the owner. The owner approves with World ID on their phone, and the proof is bound to that one request, so the agent cannot fake or reuse it. Only then is the payment released from a vault that needs two of three keys on Hedera.

Every decision goes to a public Hedera topic that nobody can edit. Every agent gets an ENS name (like shopper.leash.eth) with its status and wallets, and shops check that name on ENS directly. Revoke an agent and shops refuse it within seconds. In our runs on Leash, 0 of 45 moved money or changed limits without the owner.

How it's Made

TypeScript monorepo. An Express server holds the policy engine, approvals and co-signing, with SQLite for state. The web app is React and Vite. An agent SDK wraps fetch: when an API answers 402 Payment Required, it asks Leash before paying.

World ID: IDKit 4 with server-side request signing and verification through the World developer API. Sign up is a uniqueness proof that also creates a World ID session. Sign in and approvals are session proofs. The hacky part: session proofs carry no action, so we bind each approval by putting the approval's ID in the proof's signal and checking the signal hash on the server. A proof for one payment cannot approve another, and nullifiers stop replays.

Hedera: every agent gets an everyday wallet and a vault created with the Hedera SDK, no Solidity. The vault uses a 2-of-3 threshold key (agent, Leash server, owner recovery). The server only co-signs after a verified World ID approval, and only if the transfer exactly matches what was approved: payee, amount, token, payer and fee payer. Payments use x402 with the Hedera exact scheme, settled through the Blocky402 facilitator. Every decision is written to an HCS topic as a tamper-evident audit log.

ENS: we registered leash.eth on ENSv2 on Sepolia and pointed it at our own Permissioned Resolver, deployed through the VerifiableFactory. Each agent is a subname whose text records live on the parent resolver and resolve by wildcard through the Universal Resolver, so creating an agent costs one transaction. The demo shop reads those records from ENS itself before serving an agent, and checks that the paying wallet is one the agent publishes.

We also built an experiment harness that runs the same task against a typical email-code wallet and against Leash, across Claude, Gemini, GPT-OSS, Gemma and Qwen models. Deployed on Vercel (web) and Railway (server).

background image mobile

Join the mailing list

Get the latest news and updates

Leash-Out | ETHGlobal