Guarded Agent Kit — x402 Payment Guard for AI Agents
About this product
A production TypeScript kit that puts a guard in front of your AI agent's wallet: before any x402 payment is signed, the kit pins the seller's catalog terms — price, payTo and network — and refuses the payment if the live 402 demand does not match them.
What you get (ZIP download)
- Full TypeScript source (src/, 12 files): the spend guard, catalog pinning, the HIVE402 cross-check, the receipt builder, a CLI, and Vercel AI SDK tools (inspectBiqSeller, buyBiqBrief, buyBiqEventRisk, buyBiqResource)
- Test suite (test/): 20 tests, all passing, plus a clean typecheck — verified from this exact ZIP (fresh install, npm test, npm run typecheck)
- INTEGRATION-GUIDE.md: install, .env setup, dry run vs paid run, how the guard decides, and how to read the receipt
- README.md and the MIT LICENSE — the same code as the public repo
How the guard works
- Pins network, asset (official USDC), payTo and the catalog price from the seller's catalog before paying, and cross-checks the seller against the HIVE402 public catalog — a disagreement blocks the paid call
- Requires HTTPS on the allowed path, no redirects, x402 version 2, the exact scheme, and the selected rail (Base eip155:8453 by default, Solana optional)
- A mismatched rail or payTo is rejected before signing; each authorization is single-use — no automatic retry storm
- Per-call cap of $2.00 or less, and paid calls stay off unless you explicitly enable them (ALLOW_PAID_CALLS=true)
- Every run prints a full payment receipt (402Proof-style JSON), paid or dry
Proven live
This kit has settled real payments: two $0.01 USDC payments on Base for GET /api/x402/v1/brief — tx 0x292eeebd…3357 and, after the HIVE402 cross-check fix, tx 0x3414898f…a28b with the HIVE402 catalog match found. Source repo (public, MIT): https://gitlab.com/timothy.walton45/sml-x402-guarded-agent
Price and guarantee
$79, one-time payment. 7-day money-back guarantee: email us within 7 days of purchase and we will refund you.
Technical material for builders. You are responsible for the wallets and funds your agents control: start with a throwaway wallet and small amounts, exactly as the guide walks through. No income or performance outcome is guaranteed.
The live x402 endpoint market: HIVE402
Questions about this product
What exactly do I get?
src/catalog.ts, src/cli.ts, src/client.ts, src/constants.ts, src/env.ts, src/guard.ts, src/hive402.ts, src/index.ts, src/money.ts, src/receipt.ts, src/svm-shim.d.ts, src/tools.ts, test/client-mock.test.ts, test/fixtures.ts, test/guard.test.ts, test/receipt.test.ts, INTEGRATION-GUIDE.md, README.md, LICENSE, package.json, package-lock.json, tsconfig.json, tsconfig.test.json, vitest.config.ts. Delivered as one download, the moment your payment is confirmed — on this site, with no shipping and no account.