allowance.eth

Portable AI spending policies, rules live on the agent's ENS identity, not the wallet.

Visit Repo
allowance.eth banner

About

AI agents need to spend crypto autonomously, but today, spending limits live in wallet configs or offchain databases. Swap infrastructure and you reconfigure them from scratch.

allowance.eth anchors the spending policy to the agent's ENS name instead - Write rules in plain English ("max 50 USDC/day to Uniswap, human approval above 30 USDC"), Claude translates them to a validated JSON schema, and they're stored as an ENS text record and enforced on-chain by PolicyGuard.sol.

Every agent transaction is simulated against three gates: daily cap, contract allowlist, and time window. Transactions above the approval threshold require a Ledger hardware signature — shown in human-readable form via ERC-7730 clear signing. Transfer the ENS name to a new wallet and the policy travels with it automatically. Nothing resets.

How it's made

PolicyGuard.sol (Solidity/Foundry, deployed on Sepolia) stores a keccak256 hash of the policy and enforces it on every transaction via simulate() — checking daily cap, allowlist, and time window in a single view call. The policy JSON lives as an ENS text record under the key allowance.policy.v1 on the ENS v2 namechain (Sepolia alpha).

The frontend is Next.js 14 + viem. Wallet connection uses Dynamic. Policy authoring uses the Anthropic Claude API (claude-sonnet-4-6) to translate natural language rules into validated JSON. Ledger's ERC-7730 clear signing descriptor makes the human approval flow show readable summaries on-device rather than raw hex calldata. A Speculos emulator bridge enables the Ledger flow in development.

The Transfer Identity flow does three sequential on-chain steps, grant ENS v2 resolver manager roles, update the addr record, transfer PolicyGuard ownership — all signed through MetaMask in sequence, so a full identity handoff requires no server keys.

Prizes

  • ENS · Integrate ENS · Integrate ENS

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

DormantLast push 171 days ago

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

RunMandate

Give an AI agent an ENS name as its wallet limit. Revoke the name, and it can't spend anymore.