Ten minutes. Then it watches.

Connect your revenue and add the SDK. Lancelot shows what every customer costs against what they pay, then fixes the ones losing money.

Setup in three steps.

About ten minutes, mostly copy and paste.

1

Connect your revenue

About 1 minute. A Stripe restricted key, or a read-only RevenueCat v2 key and project ID for App Store and Google Play.

2

Add the SDK

About 5 minutes. Wrap your OpenAI or Anthropic client and pass the customer you’re serving. That’s the whole change.

3

Choose how much it does alone

About 1 minute. Off, Suggest, Ask or Auto, per action. Starts at Suggest. How the levels work

?

Not technical?

Invite your developer from the setup chat. They get a link to join and do step 2.

Step 1: the Stripe keyRead-only
  • Customers

    Read

  • Subscriptions

    Read

  • Invoices

    Read

  • Products

    Read

  • Other

    No access. Can’t charge, refund or move money.

Stored encrypted · RevenueCat: a read-only v2 key and project ID

Step 2 in NodePython too
$ npm i @lancelotwatch/node
import { lancelot } from "@lancelotwatch/node";
const lc = lancelot({ enableFlags: true }); // reads LANCELOT_API_KEY
const openai = lc.wrapOpenAI(new OpenAI(), {
  customerId: user.id,
  feature: "document-chat", // optional: cost per feature
});

Python: pip install lancelotwatch · Other providers: the events API

Numbers in. Never content.

What Lancelot sees, and what it never sees.

What Lancelot sees
What it never sees
Your AI calls
Token counts, model, customer ID, feature and time.
Prompts or responses: what your customers type or what the model answers.
Your revenue
Customers, plans, prices and invoices, from Stripe or RevenueCat.
Card details. And it has no way to charge anyone.

How cost becomes margin.

Cost per call

Worked out from token counts and each model’s price on that day.

Cached tokens

Priced as cached, not at the full rate.

Revenue per customer

Their plan price from Stripe or RevenueCat, put into monthly terms.

Annual plans

Divided by 12, so every customer compares month to month.

Matching

Usage is matched to paying customers automatically: by the ID in Stripe metadata, the Stripe customer ID, or email.

Margin per customer

What they pay minus what they cost. It shows who’s losing money, and by how much.

After setup,
it keeps watch.

Waiting for review · 5Example
  • Costing more than they payNorthwind
    High
  • Usage that can’t be matched to a paying customeracct_7Hq2
    High
  • Sudden cost spikeCorvid Labs
    Medium
  • On pace to cost far more than others on their planEastfield
    Medium
  • Prompt caching could cut your AI billWhole workspace
    Low

Lancelot looks at these within 15 minutes.

What Lancelot looked at · NorthwindExample
  1. customer_costs

    $156 this month, 80% between 1 and 4 a.m.

  2. customer_revenue

    Founder, $49 a month

  3. plan_catalog

    Normal for Founder: under $40 a month

  4. action_history

    No past actions

  5. submit_diagnosis

    Throttle · high confidence

Read-only tools. At most 4 rounds and 30 seconds.

Policy check · Pause AI · BirchlineExample
  • Your level

    Auto

  • Confidence

    High

  • Daily limit

    2 of 5 automatic actions used

  • Customer

    Pausing a paying customer always needs your approval.

  • Result

    Ask. Waiting for your approval.

Throttle · NorthwindExample

Before

$5.20a day

After

$2.20a day

Saved in 14 days

$42.00

7 days beforeFix applied14 days after

MemoryExample

You undid this.
Lancelot will remember.

  • Avoid Throttle for Birchline.From an undo
  • Avoid Pause AI on the Starter plan.From 2 undos
  • “Annual customers get a call from me first.”Your note
  • Prefer other fixes to upgrade offers.From 3 dismissals

Where you hear about it.

Approve, Undo or Dismiss right from Slack, email or Telegram.

AlertsYour choice
  • Approve from

    Slack, email or Telegram.

  • Alerts to

    Email, Slack, Telegram, Discord, Microsoft Teams, SMS or a webhook.

  • Quiet

    Quiet hours and a daily digest, so it isn’t noisy.

The Monday briefingWeekly
  • Margins

    Last week’s margins.

  • Losing money

    Who’s losing money.

  • Recovered

    What Lancelot recovered.

Arrives every Monday.

What happens when.

  • 1h

    between updates to costs and margins.

  • 15m

    between checks for new findings.

  • 60s

    for your app to pick up a change.

Some findings, like a customer on track to lose money, need about a week of history.

TimelineAfter install
  • Seconds in

    Your first call shows up in setup.

  • Every hour

    Costs and margins update.

  • Every 15 min

    The agent checks for new findings.

  • Overnight

    Stripe syncs. RevenueCat syncs through the day and on its webhooks.

  • First week

    Trends and normal levels settle.

  • Mondays

    Your briefing arrives.

Built for real teams.

More than one product, more than one person.

Several products

Each with its own margins.

Test data apart

Kept away from live numbers. lc_test_ keys never set off alerts.

Teammates

Invite them, and they can approve from Slack.

Bill matching

Optional. Add an Anthropic or OpenAI admin key and Lancelot checks what it tracked against what you were billed.

For engineers.

SDK and API reference

Off the hot path

Usage is sent in the background, in batches.

Streaming works

Sync and async clients both work too.

Fails open

If Lancelot is unreachable, your AI calls and your customers carry on.

Changes within a minute

The SDK checks for them every 60 seconds.

Questions.

How long does setup take?

About ten minutes, mostly copy and paste: about a minute to connect your revenue, five to add the SDK and one to choose levels.

No. Lancelot sees token counts, model, customer ID, feature and time. Never prompts or responses.

No. Revenue access is read-only. It can’t charge, refund or move money.

RevenueCat works for App Store and Google Play: a read-only v2 secret key and the project ID.

OpenAI and Anthropic, through the SDK. Any other provider can send usage to the events API.

No. Usage is sent in the background, in batches, off the hot path.

The SDK fails open. Your AI calls and your customers carry on.

Your first call shows up seconds after install, and costs and margins update every hour. Some findings need about a week of history.

Yes. Invite them from the setup chat. They get a link to join and add the SDK.