Inspiration

AI agents can now shop and pay for a business. But nothing stops one from buying the wrong thing or overspending, and afterwards there's no clean record of why a payment happened

What it does

A merchant writes a letter of authority covering allowed categories, a per-item price cap, a basket cap, a quantity limit, subscriptions and an expiry date. Its terms are hashed with SHA-256. On the desk, you ask the agent for a cart in plain English. The AI proposes the cart, then Clearance checks it against 8 rules using the shelf's real prices, never the model's. A refused cart never reaches PayPal. A cleared cart creates a PayPal Orders v2 order, the buyer approves it, and Clearance captures it. Every decision is filed as an exhibit with the prompt, the proposal, the verdict, the letter hash and the PayPal capture id

How we built it

Next.js 15 and TypeScript, Postgres on Neon (PGlite locally), PayPal Orders v2 in the sandbox, and Groq running openai/gpt-oss-120b as the cart proposer. It is hosted on Vercel

Challenges we ran into

Making sure the model can never set a price or skip a rule, and keeping the evidence trail tamper-evident.

What's next for Clearance

Real buyer signatures on letters, recurring billing for approved subscriptions, and multiple agents per merchant

AI tools used

Groq with openai/gpt-oss-120b turns the buyer's request into a structured cart. The decision itself is plain code: the model proposes, and the policy desk decides

Built With

Share this project:

Updates

Submission history