Paste your URL, set a per-call price, and share a buy link. Buyers prepay by card; agents call with spend-capped Pay Tokens.
Live today: x402 gateway / Stripe-backed Pay Token / spend caps / usage ledger. No crypto wallet. First 3,000 calls free, then 3%. Sellers keep 97%.

import { createLemonCakeSDK } from "@lemon-cake/mcp-sdk";
const lc = createLemonCakeSDK(); // demo mode without env vars
// HTTP route — one line.
app.use(lc.protect("/api/search", { cost: 0.02 }));
// Or an MCP tool — same idea.
server.tool("search", lc.charge({ price: 0.02 }), handler);Drop-in MCP middleware. Works with any MCP SDK. Free for your first 3,000 calls.
How it works
You change one URL. We do gateway routing, Pay Token verification, rate limiting, usage metering, and Stripe-backed seller payouts.
Why developers use LemonCake
Six things you stop worrying about after wiring up LemonCake.
Charge per tool call, per token, per outcome. Sub-cent micro-payments work natively — no minimum transaction size, no Stripe-style $0.30 floor.
Agents pay your endpoint directly with one-time spend caps. No human in the loop, no API-key sharing, no "reset my credentials" support tickets.
Stop issuing, rotating, and revoking keys. Buyers authenticate once at install time; you never touch their secrets.
Buyers fund Pay Tokens by card. Sellers receive payouts through Stripe Connect Direct Charge; LemonCake never pools customer funds.
Your buyers don't need a blockchain wallet, seed phrase, or exchange account. They pay by card and hand agents scoped Pay Tokens.
Drop-in middleware for any MCP server. Auto-listing on Bazaar + Glama + Smithery + mcp.so + Claude Code Plugins Directory.
The billing stack today
Existing billing infra assumes a human swipes a card and an org renews a seat. AI APIs charge sub-cent per call to a non-human caller. Different shape — different stack.
| Stripe | Orb / Metronome | LemonCake | |
|---|---|---|---|
| Meter + invoice + pay in one SDK | Pay only | Meter + invoice (pay via Stripe) | Yes |
| AI agent as buyer | Card-only | Org-billed only | Native |
| Sub-cent per call | $0.30 effective floor | Allowed, but Stripe-billed | $0.005 |
| MCP / agent middleware | — | — | Drop-in |
| No API-key management | Keys still required | Keys still required | Embedded auth |
| Free tier | Stripe rates apply | Enterprise tiers | 1k tx / mo, gas covered |
| Open-source SDK | Closed | Closed | MIT |
| Setup time | Connect onboarding | Implementation engineer | One env var |
We don't replace Stripe for human checkout. We're the stack you want when the buyer is an AI agent.
Not just billing — abuse prevention
Pay Token spend caps + rate limits are checked at the gateway. A misbehaving agent in an infinite loop hits the wall instantly — your API never sees the request, your AWS bill never moves. The blocked-request feed in your dashboard shows you what we caught.
Sample data — live feed lands Q3 2026.
Coming Q3 2026 · Early access
AI cost vs. revenue per agent, per endpoint, per token. Catch margin leaks before they compound. The metric Stripe / Orb / Metronome don't natively show — because their buyers don't have $0.50 of OpenAI cost behind every $0.05 of revenue. Yours do.
Open core, like Supabase & Clerk
Pure-OSS billing infra dies the moment funding does. Pure-SaaS billing infra is lock-in by design. Open core is the only honest middle: MIT-licensed SDK + hosted execution. If we vanish, your integration keeps working.
MIT · Supabase / Clerk / Resend pattern · 5 production MCPs published
Safety rails
One-click revoke on the dashboard. Subsequent charges return 422 atomically.
$10/day default → $1k/day with Know-Your-Agent → $50k/day with full KYC.
Issue test tokens that match production behavior without moving real funds.
Launch Plan · Private Beta
A spend-capped Pay Token your agent pays with — no crypto wallet, no per-call key. First 3,000 calls free, then 3%. Custody-free; you keep 97%.
No credit card. Manual onboarding (~24h) during Private Beta.