Active policy — agent …
- Per-payment cap
- …
- Daily cap
- …
- Allowlist
- …
- Policy expiry
- …
- Status
- …
- Agent balance
- …
- DataHub balance
- …
- Relayer gas
- …
Live from the contract via the relayer · view contract on explorer
Demo — agent pays DataHub 0.50 tUSD8
- Policy check — allowlist ✓ · under caps ✓
- Agent signs EIP-3009 off-chain — no gas, no browser
- Relayer submits payWithAuthorization
- 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.
Nest map — live zones
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).
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.
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…
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…
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.
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).
Recent payments — on-chain audit trail
- Loading…
How to run it yourself
- cd contracts && forge test — 47 unit tests + 4 fork tests against the real tUSD8 (weapon: Trail + Nest).
- Deploy with script/Deploy.s.sol (Foundry) to Aevum testnet; weapon with script/DeployTrailNest.s.sol.
- Relayer: cd relayer && wrangler deploy (Cloudflare Workers free) + wrangler secret put RELAYER_PRIVATE_KEY.
- 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.