Inspiration

AI agents now scrape the web for people. They take the content, and small sites lose the clicks that paid for the writing. With a Google AI Overview on the page, people click a result on 8% of visits instead of 15% (Pew Research Center, 2025).

x402 is an open standard that lets an agent pay per request. But it only settles in stablecoins. And a normal PayPal payment for a 2¢ recipe costs about 49¢ in fees.

We wanted an agent that scrapes a recipe to pay 2¢ for it, and the cook who wrote it to get paid in PayPal.

What it does

  • Publishers add one line of code to their site, set prices in a dashboard, and get paid with PayPal Payouts.
  • People read pages for free. AI agents that scrape the page pay.
  • Agent owners top up a USD wallet with PayPal and give each agent a key with a budget.
  • An agent asks for a page and gets HTTP 402 with the price. It signs a payment and gets the page. The publisher gets 95%. BotFare keeps 5%.
  • One $5 top-up pays one PayPal fee ($0.66) and covers 250 recipes at 2¢.
  • A research agent decides to buy or skip each page and says why.
  • Fare Court: if a bought page is not what was promised, an AI judge refunds it when it is at least 80% sure. Unsure cases go to the publisher.
  • Fare Advisor: AI suggests better prices from what agents bought, skipped and disputed. The publisher clicks Apply.
  • Every payment, delivery and refund gets a signed receipt that anyone can check on /verify.

How we built it

  • PayPal Orders v2 and JS SDK v6 for top-ups, Payouts for publishers, webhooks, and Log in with PayPal. All in sandbox.
  • A plug-in for the official x402 SDK (scheme prepaid, network paypal:sandbox). No fork.
  • A double-entry ledger in Postgres. All amounts are whole micro-dollars.
  • Ed25519 signed receipts with a public key set (JWKS).
  • AI: OpenAI gpt-5-mini runs the live demo. Claude is the default when its key is set. The AI makes the small decisions. Code moves the money and enforces the limits.
  • Publisher analytics built with AG Studio.
  • An MCP server, so any agent can pay.
  • Next.js, Express and Drizzle, hosted on Render.
  • Built with Claude Code, PayPal's Claude Code plugin, and APIMatic ContextMatic.

Challenges we ran into

  • Fitting a prepaid PayPal balance into x402, which was made for blockchains, without forking the SDK.
  • Proving what was delivered in a 2¢ dispute. The middleware records a hash of the exact bytes it sent.
  • Charging AI agents without ever charging a real person.

Accomplishments that we're proud of

  • Sandbox money moves through PayPal end to end: a $5.00 top-up and an $11.72 Payouts batch that reached SUCCESS.
  • 581 unit tests, 277 database tests, and end-to-end checks.
  • Anyone can try it in 2 minutes from /judge.

What we learned

  • Micropayments did not fail because of technology. They failed because deciding costs too much. AI can make these small decisions.
  • The AI can decide, but only code should touch the money.
  • Batching makes PayPal work for 2¢ payments.

What's next

  • Spending rules for agents in plain English, with approvals on your phone.
  • Paid MCP tools.
  • Proposing prepaid on paypal:* to the x402 Foundation.

Try it

Pay the fare, pal.

Built With

Share this project:

Updates

Submission history