Costr tracks AI spend and margin per customer through a proxy you add with one line of code. Lancelot shows the same margin without a proxy and fixes the customers losing money, within limits you set.

Lancelot is an AI margin agent. It joins what each customer pays you in Stripe or RevenueCat to what their AI calls cost, then throttles, switches models, holds spend or drafts an upgrade offer when a customer or plan loses money. Every action stays within limits you set and can be undone.
Costr is per-customer AI spend attribution across OpenAI, Anthropic and Google. You change your client's base URL to Costr's proxy and add two headers, and it records tokens, cost, model and latency for each call. You can add revenue per customer by hand, by CSV or from Stripe.
Costr facts are from its pricing page, checked November 29, 2026.
Both show which customers lose money. Lancelot also fixes them.
Yes, if you need more than tracking. Both show AI cost and margin per customer. Costr records calls through a proxy and leaves the rest to you. Lancelot reads revenue from Stripe or RevenueCat without a proxy, alerts you when a customer goes underwater, and throttles, switches models or drafts an upgrade offer, within limits you set.
Costr is a proxy that records AI spend per customer, with revenue added by hand, CSV or Stripe. Lancelot joins AI cost to Stripe or RevenueCat revenue without a proxy, alerts you, and throttles, switches models or drafts an upgrade offer, within limits you set.
Yes, for teams that want to act on what they see. Costr tracks spend and never blocks calls, and spike alerts are on its roadmap. Lancelot sends alerts today and fixes the customers and plans that lose money, with Undo.
No. Your calls go straight to the provider, or through your own gateway. The SDK sends token counts to Lancelot after each call, never prompts or responses, and if Lancelot is unreachable your calls keep working.
Costr takes one base URL change and two headers. Lancelot takes a few lines to wrap your OpenAI or Anthropic client, or no code at all if you already route through OpenRouter or log in Helicone. Both then need your customer ID on each call.
Lancelot is $49, $199 or $699 a month depending on your revenue or AI spend, with a 7-day free trial. Costr is free up to $25 a month of tracked spend, then $19 or $79 a month by tracked spend, or a custom Enterprise plan.