anipay

Gasless, capped stablecoin payments for AI agents — on Aevum testnet.

The agent holds only a signing key — no gas, no full-power key. Every payment is one order, one merchant, one exact amount, inside a 1-hour window, enforced on-chain by a spending policy.

Aevum testnet · chain 44005 tUSD8 · 6 decimals contract: loading…

Active policy — agent …

Per-payment cap
…
Daily cap
…
Allowlist
…
Policy expiry
…
Status
…
Spent today…
Agent balance
…
DataHub balance
…
Relayer gas
…

Live from the contract via the relayer · view contract on explorer

Demo — agent pays DataHub 0.50 tUSD8

  1. Policy check — allowlist ✓ · under caps ✓
  2. Agent signs EIP-3009 off-chain — no gas, no browser
  3. Relayer submits payWithAuthorization
  4. Receipt — Paid event on-chain

Uses a fresh authorization signed by the agent script (app/agent/pay.mjs sign-only) — the dashboard never holds a key.

Negative demos — proof the controls work

Each one is a real signed authorization. The relayer (and the contract behind it) refuses it before any money moves.

Not tried yet.
Not tried yet.
Not tried yet. (Revokes the agent policy on-chain; restore with the agent script afterwards.)

Nest map — live zones

Storageescrow
Gatekeeperpayee registry
Throneapproval queue
Queen’s Roompolicy core
Watchtoweranalytics
Granarysubscriptions
Gatex402 + policy
Blueprintpolicy packs
Digging frontloading…
Fleet treasurybudget pool — roadmap

Loading nest state…

Zones grow from usage — this map is live on-chain state, not a picture. Solid boxes are dug, dashed is roadmap. A room is dug only when a trail of proven downstream use passes 5 points (one point per distinct consumer that actually used the merchant’s output); a room collapses when its trail evaporates below 2 points. The live chambers below are read from the Trail + Nest contracts — rooms appear, grow, shrink and collapse as the network uses them.

Storage — escrow agent-to-agent

Lock funds for a job; the worker is paid per milestone only when the deliverable lands. A finished escrow is worth +3 dig points on the trail. Deliverable submission is done by the worker's script (the dashboard never holds keys).

Not tried yet.

Loading escrows…

Gatekeeper — payee registry

Check who you are paying before signing. A name that does not resolve, or an address that is not verified, is a stop-and-think moment.

Not tried yet.
Not tried yet.

Throne — human approval queue

Payments over 0.50 tUSD8, or to a merchant never paid before, stop here for a human. One click approves or rejects; the decision is on-chain.

Loading approvals…

Watchtower — spending analytics

Loading analytics…

Not tried yet.

Granary — subscriptions

Metered billing: subscribe once, pay per call inside the quota. Billing stays pay-per-call through anipay — the subscription never holds funds.

Loading subscriptions…

Not tried yet.

Gate — x402, policy-enforced

The plain 402 gate already exists elsewhere — what is new here is the policy layer: an x402 purchase obeys the same caps, allowlist and nest rules as a direct payment.

Not tried yet.
Not tried yet.

Blueprint — policy packs, one click

Preset policies for the agent. One click applies a full pack; the standard pack restores the demo policy (1 / 5 tUSD8, DataHub only).

Not tried yet.

Recent payments — on-chain audit trail

How to run it yourself

  1. cd contracts && forge test — 47 unit tests + 4 fork tests against the real tUSD8 (weapon: Trail + Nest).
  2. Deploy with script/Deploy.s.sol (Foundry) to Aevum testnet; weapon with script/DeployTrailNest.s.sol.
  3. Relayer: cd relayer && wrangler deploy (Cloudflare Workers free) + wrangler secret put RELAYER_PRIVATE_KEY.
  4. Agent: node app/agent/pay.mjs demo — checks policy, signs, relays, prints the receipt.

Contract … · tUSD8 0x456569838f1d43009A91ebA4263147Afd7233483 · repo: anipay

Why AI really needs this

The problem

An agent that wants to pay for something today has two bad options: a human tops up gas and approves every time (the agent is not autonomous), or the agent holds a wallet key with unbounded balance and gas (one leak or prompt injection and everything is gone). There is no least-privilege payment primitive for agents.

The fix

anipay separates signing power from spending power. The agent signs one EIP-3009 authorization — one order, one merchant, one exact amount — and the contract enforces the policy on-chain: per-payment cap, daily cap, merchant allowlist, expiry, instant revoke. The relayer only delivers the signature; it cannot steal (it can only submit the exact signed authorization).

Going forward

Every working agent will always need to pay — for APIs, data, compute, other agents. This is infrastructure, not a one-off demo. Same contracts deploy to QDay mainnet (February 2027, builder fast track), and the same scoped-payment primitive is reusable by other builders.

Honest limits

  • Trusted relayer for gas — anyone can run their own; the relayer cannot redirect funds (exact signed authorization only).
  • tUSD8 is testnet-only — same contracts go to mainnet Feb 2027.
  • Faucet is one claim — 1 tQDAY + 5 tUSD8 is enough for deploy + demo; heavy testing uses a local fork.