Spendguard Scout logo
Hexbox Tools · Celo “Agents Open for Business”

Spendguard Scout

An agent that pays for its own data on Celo, inside a spend cap its owner sets. It writes traction briefs, buys each paid search over x402, and shows the bill with onchain receipts. An Altana session key funds its spending key under an onchain daily cap.

ERC-8004 agent #10134 Celo mainnet · 0xC17733…8f82 Altana smart agentic walletx402 · USDC / USD₮ERC-8021 tag celo_73a54a0daad9
14settled x402 payments on Celo mainnet
$0.070total spent, never more than $0.010 a call
4payments funded by the Altana session key's top-up (0.025 USDC)
1payment refused at the daily cap, before signing
8traction briefs, each with its own data bill
15unsettled attempts, $0 charged (6 Altana-signature rejections, 9 provider errors)

Try it now: ask Scout for a brief

Scout is open for business. Anyone, a person or an agent, can ask for a traction brief on a GitHub project. Every outside request is logged publicly with the handle you give, and every paid one with its Celo settlement tx.

# free: GitHub + Hacker News, no wallet (6 an hour per caller) curl "https://spendguard-scout.liveapps.dev/v1/brief?repo=owner/name&by=@yourhandle" # full brief over x402 on Celo, $0.02 in USDC, USD₮ or USA₮: adds X/YouTube + Reddit, # which the agent buys itself inside its SpendPolicy cap, with a data bill of settlement txs npx @celo/buy curl "https://spendguard-scout.liveapps.dev/v1/brief/full?repo=owner/name&by=@yourhandle" # MCP (streamable HTTP), tool traction_brief claude mcp add --transport http spendguard-scout https://spendguard-scout.liveapps.dev/mcp

Docs for agents: llms.txt · openapi.json. Listed on agent402.tools and 402index.io. Full-brief payments go to the agent's spending key 0xB1809549…95ad, so a caller's payment funds the data bought for their brief; the SpendPolicy daily cap still applies. Settlement txs are sent by the agent wallet and carry the ERC-8021 tag.

Used it? Leave onchain feedback for agent #10134 in Celo's ERC-8004 Reputation Registry, for example from 8004scan, or open an issue.

Outside requests so far

The problem

Agents need paid data

Grant reviewers, judges and builders keep asking “is anyone actually using this?” Good answers need X, Reddit and YouTube searches that cost money per call. x402 on Celo lets an agent pay for each one in stablecoins, with no API keys or accounts.

A funded agent is a liability

Give an agent a wallet and a bug, a prompt injection or a looping retry can drain it. The owner needs limits the agent cannot override, and a bill they can check against the chain.

How it works

owner grants an Altana session key: USDC.transfer only, $0.05/day cap, 14-day expiry (onchain) session key smart wallet ──USDC.transfer (≤ cap, incl. relay fee)──▶ x402 spending key # scripts/altana-topup.mjs agent scout --project NAME --repo owner/name ├─ free first: GitHub (stars, commits/30d) + Hacker News (title-only, whole-word) ├─ POST gateway.usebuy.ai/v1/social/{x,reddit,youtube}/… → 402 Payment Required ($0.005) │ ├─ SpendPolicy.check(): network, token, payee, host, per-call cap, daily cap │ │ └─ refuse? → ledger "refused", nothing is signed │ ├─ sign EIP-3009 transferWithAuthorization (USDC on Celo) │ └─ retry with PAYMENT-SIGNATURE → 200 + settlement tx (buy's facilitator pays the gas) ├─ ledger/celo.jsonl ← every payment, failure and refusal (append-only, committed) └─ reports/<date>-<project>.md ← brief + “Data bill” with Celoscan links

Data is bought from buy, Celo Core Co.'s agent service marketplace. If a provider fails upstream, buy does not settle, so the agent is not charged. It falls back from X to YouTube for the social signal.

The spend policy

Onchain: Altana session key

  • Agent wallet 0xC1773316… delegated to an Altana smart account (EIP-7702, same address)
  • Daily cap $0.05 USD₮ and $0.05 USDC, enforced by the account
  • May call: USDC.transfer (to top up the spending key) and the USD₮ contract; nothing else
  • Every top-up and its relay fee count against today's onchain USDC cap (node scripts/session-status.mjs reads it live)
  • Expires 09 Dec 2026 (14 days); revocable in one tx (scripts/altana-revoke.mjs)
  • Session record: session.celo.json

In the agent: SpendPolicy

  • Per-call cap $0.010; daily cap $0.050 per UTC day
  • Payee allowlist: buy's payTo only; host allowlist: gateway.usebuy.ai
  • Tokens: USDC, USD₮, USAT on Celo; network eip155:42220 only
  • Runs inside the x402 client's onBeforePaymentCreation hook, so a refused payment is never signed
  • The spending key holds what the session key sent it plus what callers paid for full briefs; the SpendPolicy daily cap bounds what the agent spends each day either way

Onchain proof

Identity and wallet setup

StepTransactionERC-8021 tag
ERC-8004 identity: agentId 10134 in Celo's Identity Registry0xe47d71bb…eb36e4✓
EIP-7702 delegation of the agent wallet to the Altana smart account0x6eb06f8c…1fea6f–
Altana KeyStore registration + session grant (USD₮ cap, token-only allowlist, expiry)0xaf680c1b…3593cd–
Same daily cap added for USDC on the session key0x9ecaf8e7…e9957d✓
USDC approved as the session's ERC-1271 spend checker0x9e456abd…b38d8f✓
Owner tops up the spending key with one day's cap (0.05 USDC). Funded the first 10 payments, before the session key took over funding0xa6828f28…240824✓
Session key allowed to call USDC.transfer (and nothing else on USDC): setCanExecute, one admin self-call0x6c25718b…aaadc4✓
Altana session key tops up the spending key: 0.025 USDC from the smart wallet, signed by the session key, sent via Altana's relay (relay fee 0.005 USDC), counted against the onchain $0.05/day USDC cap0xb460d2bd…1c0227✓

✓ = calldata ends with the Loops House ERC-8021 tag celo_73a54a0daad9 (checked onchain). The 7702 delegation has empty calldata, and the Altana grant went through Altana's relay without a suffix on the outer call. x402 payments can't carry tags; they are matched by payer address and the ledger. Registration file: agent.json.

Every paid call (from ledger/celo.jsonl)

WhenSourceQueryPaidSettlement
Nov 25, 4:58 PM ETyoutube.videos.searchx402 payments0.005 USDC0xe919e9b1…ca8c46brief
Nov 25, 4:58 PM ETreddit.posts.searchx402 payments0.005 USDC0xb11bb5cf…472fb3brief
Nov 25, 4:58 PM ETyoutube.videos.searchMento stablecoin0.005 USDC0xe63ff6d9…d39148brief
Nov 25, 4:58 PM ETreddit.posts.searchMento stablecoin0.005 USDC0x83ee9472…28cd62brief
Nov 25, 4:59 PM ETyoutube.videos.searchSelf protocol zk passport0.005 USDC0x4c25c1e5…c91e1dbrief
Nov 25, 4:59 PM ETreddit.posts.searchSelf protocol zk passport0.005 USDC0x4bc8aecf…580a76brief
Nov 25, 4:59 PM ETyoutube.videos.searchERC-8004 trustless agents0.005 USDC0xe4c536de…321e65brief
Nov 25, 4:59 PM ETreddit.posts.searchERC-8004 trustless agents0.005 USDC0xc4ad606c…5a9fc3brief
Nov 25, 6:01 PM ETreddit.posts.searchCelo0.005 USDC0x040f370d…942d2cbrief
Nov 25, 6:01 PM ETyoutube.videos.searchCelo Composer0.005 USDC0xb1a1200e…6efc69brief
Nov 25, 6:01 PM ETRefused before signing: daily cap 50000 would be passed (spent 50000, asks 5000)nothing sentbrief
Nov 25, 7:01 PM ETyoutube.videos.searchAltana0.005 USDC0x124f7d9c…d4809dbrief Altana-funded
Nov 25, 7:01 PM ETreddit.posts.searchAltana0.005 USDC0xbb2bd8a6…83ad32brief Altana-funded
Nov 25, 7:02 PM ETyoutube.videos.searchMiniPay0.005 USDC0x8f82fdc2…89c572brief Altana-funded
Nov 25, 7:02 PM ETreddit.posts.searchMiniPay0.005 USDC0x7dd01d82…a0012dbrief Altana-funded

Altana-funded = paid from the float the Altana session key sent (top-up tx above). Payer for these calls: 0xB1809549…95ad, the capped spending key (see below). Payee: buy's facilitator 0x20faAca5…333B.

What we found about x402 from a smart account

1. Header mismatch, now fixed. buy's gateway reads X-PAYMENT (v1) before PAYMENT-SIGNATURE (v2). Altana's SDK sends both, so the v1 header was matched against v1 offers (celo, not eip155:42220) and failed with no_matching_requirements. Our Altana payer now sends v2 only.

2. ERC-1271 signatures rejected. buy's facilitator then answers malformed_payload for the Altana session signature (98 bytes, ERC-1271). As of Nov 25, 2026 it only accepts 65-byte EOA signatures. The 6 rejected session payments are in the ledger (rail altana-session-erc1271, Nov 25, 4:54 PM ET to Nov 25, 4:56 PM ET); none settled.

How the session key still funds and caps the payments: the session key may call USDC.transfer under its onchain $0.05/day cap. Once a day it moves the day's float from the smart wallet to a plain x402 spending key, whose 65-byte EIP-3009 signatures buy accepts. The spending key holds only what the session key sent it, so the Altana cap bounds the agent's spending. The SpendPolicy and ledger check every call before it is signed. From Nov 25, 6:20 PM ET on, every payment is funded this way. When the facilitator accepts ERC-1271, SPENDGUARD_PAYER=altana pays straight from the session key (src/payers/altana.mjs).

Demo

Real mainnet runs: paid calls settle and the daily cap refuses the next one, then the Altana session key funds the spending key and the agent pays from that float. Direct MP4 link.

Briefs

BriefNotes
Altana · mdpaid from the Altana session key's top-up
MiniPay · mdpaid from the Altana session key's top-up
Celo · mdfirst demo run, relevance filter on
Celo Composer · mdhit the daily cap: Reddit refused
x402 · mdfirst mainnet batch (before the relevance filter)
Mento · mdfirst mainnet batch (before the relevance filter)
Self · mdfirst mainnet batch (before the relevance filter)
ERC-8004 · mdfirst mainnet batch (before the relevance filter)

Free-tier samples on other Celo projects

Run by Hexbox to show the free output (GitHub + Hacker News). Not requested by these teams, and not counted as users.

BriefNotes
Celo agent skills · mdfree tier sample, run by Hexbox, not requested by the project
Celopedia · mdfree tier sample, run by Hexbox, not requested by the project
Divvi · mdfree tier sample, run by Hexbox, not requested by the project
Glo Dollar · mdfree tier sample, run by Hexbox, not requested by the project
GoodDollar · mdfree tier sample, run by Hexbox, not requested by the project
Mondeto · mdfree tier sample, run by Hexbox, not requested by the project

Want a brief? Run the curl above, or open an issue with your project name and repo. Scout runs it within its daily cap and commits the brief with its data bill.

Run it yourself

git clone https://github.com/HexboxTools/celo-spendguard && cd celo-spendguard && npm install npm test # 20 tests: policy, parsers, relevance filter, local x402 seller, the public service (free tier, x402 offer, paid flow, MCP) node bin/serve.mjs # the public service: /v1/brief, /v1/brief/full (x402), /mcp SPENDGUARD_KEY_FILE=./agent.key node bin/scout.mjs --project "Your project" --repo you/repo node scripts/status.mjs 0xC17733165C47f80E56b1c6eD61E8988296CA8f82 # balances, ERC-8004 identity, ledger summary