Built for Locus Paygentic Hackathon #1

Your browser
finally knows
how to pay.

Whisper is a silent AI payment agent for Chrome. It detects payment surfaces, settles in USDC on Base, and lets you continue — without touching a form.

Install extension View source
localhost:3001/merchant/checkout.html
Merchant checkout
👕
Locus Dev T-Shirt
Size M · Qty 1
Total $0.05 USDC
9.79 USDC
0x1f60…cbb
⚡
Locus Checkout
$0.05 · just now
Paid
🔑
x402 Micropayment
$0.001 · 2m ago
Paid
Pay with Locus Agent Whisper · USDC on Base
Built with
Locus Finance
Chrome MV3
USDC on Base
Groq LLM
x402 Protocol
Resend
TypeScript

Detection to settlement in seconds.

Two-stage pipeline. No configuration per site. Works on any page the web serves today.

1
DOM scan

A fast local heuristic checks for Locus session tags, crypto wallet addresses, card input fields, and price signals. Pages with no match are ignored immediately — no AI call made.

2
AI classification

Pages that pass are sent to Groq. The LLM returns a page type, order total, field selectors, trust score, and any concerns — as structured JSON.

3
Method selected

Based on the page type, Whisper picks the right rail: Locus Checkout, virtual card, direct USDC, or x402 settlement. A floating button appears.

4
Payment confirmed

Transaction executes on-chain. Receipt emailed. Basescan link saved to history. The page gets its confirmation signal. You never left the tab.

One agent.
Every checkout surface.

Whisper handles four distinct payment contexts natively — without any changes to the merchant's site.

⚡
Locus Checkout

When a Locus session ID is detected on the page, Whisper runs the agent preflight and pays directly through the Locus Checkout API. No card, no wallet UI, no friction.

Native agent flow
💳
Virtual card autofill

On standard card checkout pages, Whisper generates a single-use virtual debit card via Laso Finance and autofills the form. Works on any site with a card form.

Laso Finance
🔷
Direct USDC transfer

On crypto-native checkout pages, Whisper reads the wallet address and amount from the DOM and sends USDC directly via the Locus pay API. No copy-paste required.

USDC on Base
🔑
x402 micropayments

For any API or content that returns HTTP 402, Whisper intercepts at the window.fetch level, settles on-chain, and retries with payment proof. The page sees a 200.

HTTP 402 protocol

Get running in five minutes.

Whisper runs a local backend alongside the Chrome extension. Both are required.

1
Clone the repository
Download the source from GitHub.
git clone https://github.com/Michael-Nwachukwu/whisper.git
cd whisper
2
Install backend dependencies
Node.js v18+ required.
cd backend
npm install
3
Configure environment variables
Edit backend/.env with your API keys. You need two Locus keys — one for the agent wallet, one for merchant session creation.
4
Fund the agent wallet
Check your agent wallet address and send USDC on Base to it.
npm run dev
# then open:
curl http://localhost:3001/api/status/balance
5
Load the extension in Chrome
Open chrome://extensions → enable Developer mode → click Load unpacked → select the extension/ folder. Click the Whisper icon to open the side panel.
6
Try the demo pages
With the backend running, visit any of the included demo pages to see all four payment flows.
# Locus checkout
http://localhost:3001/merchant/

# Card autofill
http://localhost:3001/mock-merchant/

# Crypto checkout
http://localhost:3001/crypto-merchant/

# x402 paywall
http://localhost:3001/x402-demo/
backend/.env
# Locus — two keys required
LOCUS_API_KEY=claw_dev_...
LOCUS_MERCHANT_KEY=claw_dev_...
LOCUS_API_BASE=https://beta-api.paywithlocus.com/api
# Server
PORT=3001
BACKEND_URL=http://localhost:3001
# AI classification
GROQ_API_KEY=gsk_...
GROQ_MODEL=llama-3.3-70b-versatile
# Email receipts (optional)
RESEND_API_KEY=re_...
RESEND_FROM=Whisper Agent <onboarding@resend.dev>
Why two Locus keys?
One key creates checkout sessions (merchant wallet — receives payment). A separate key pays them (agent wallet — sends payment). Using a single key for both means paying yourself — Locus rejects it.
Get your API keys