
No monthly fee. Pay 3% only when your AI API earns.
Start free — your first 3,000 calls, with gateway, Pay Token, spend limits, and metering all included.
Currently shipping: SDK (lc.charge, lc.protect) — MIT, on npm today.
Q3 2026: hosted gateway, Pay Token issuance, margin dashboard. Design partners get early access.
Used by xstocks-mcp · gmx-mcp · alpaca-guard-mcp · tokenized-stock-mcp · agent-payment-mcp
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 settle the 97% to your wallet.
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.
Works in countries where Stripe Connect doesn't. Japan, Indonesia, Argentina — supported on day one.
Your buyers don't need a crypto wallet. We embed one at signup; they sign in with email and forget the underlying mechanics.
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 but never move real USDC.
Launch Plan · Private Beta
No monthly fee. Pay 3% only when your API earns. Start free — your first 3,000 calls, with gateway, Pay Token, spend limits, and metering all included.
No credit card. Manual onboarding (~24h) during Private Beta.