WhoBuilt

How to avoid disaster when vibe-coding a billing engine

Aug 28, 2026· 18 min· 4.8K views·Watch on YouTube

Speaker

Andrew Garvin, Metronome co-founder at Stripe, demonstrates how Stripe Projects and Metronome can help teams set up and test a usage-based billing model at an AI Engineer talk.

Billing needs safeguards as agents scale

Garvin says coding agents make it easier to build with Metronome, but its deep billing logic creates many ways to make mistakes without guidance. He highlights global usage metering, credits and enterprise commitments, and controls to limit what an agent can spend.

Set up a billing model with Stripe Projects

Garvin uses Stripe Projects to provision a Stripe account and backend services, then asks an agent to recreate Lovable's pricing model in a Metronome demo account. He describes the model as using prepaid credits with automatic monthly recharges, multiple credit categories, and end-of-period invoices for overspend.

Guide agents and test before production

Metronome's portable skills files give the agent context for working with its API, while clearer error messages help it recover from setup failures. Garvin recommends using coding agents to speed up configuration and testing in a sandbox, with sample usage, rather than letting them push business-critical billing systems into production.

Think about agents as buyers, products, and users

Garvin describes three roles: agents can be products that need metering, buyers that procure services through tools such as Stripe Projects, or users that operate software. He points to HubSpot's move toward credits-based pricing and says agent-driven work can concentrate a platform's value in a single agent rather than in individual seats.

Extend pricing beyond prepaid credits

Garvin says enterprise AI coding products are beginning to adopt commitment structures familiar from cloud services, including prepaid and postpaid commitments and customer-specific offers. He presents the demo as a way to create and inspect a test billing setup, then refine it before moving toward production.

Takeaways

  • Use coding agents to configure and test billing in a sandbox before considering production use.
  • Give agents product-specific API guidance and clear errors so they can recover from setup problems.
  • Model agent spending with explicit credit or wallet controls and suitable usage limits.
  • Revisit seat-based pricing when agents can perform work that was previously tied to human seats.
  • Consider prepaid credits, commitments, and customer-specific offers for usage-based enterprise pricing.

Mentioned in this talk

Search inside this talk

What was claimed 12

  • feature
    Metronome: Provides usage billing and first-class credit objects
    “Metronome is the top platform for usage billing”
    YouTube
    Unverified1 source· Talk
  • acquired
    Stripe acquired Metronome
    largest deal Stripe has ever done
    “Earlier this year, we were acquired by Stripe in the largest deal Stripe has ever done.”
    YouTube
    Unverified1 source· Talk
  • feature
    Stripe Projects: Provisions a Stripe account and backend services through the CLI
    “It provisions a Stripe account for you, as well as backend services you may need”
    YouTube
    Unverified1 source· Talk
  • uses
    meters API calls
    “we've taken in API calls to OpenAI and Anthropic and metered them for those companies”
    YouTube
    Unverified1 source· Talk
  • uses
    meters API calls
    “we've taken in API calls to OpenAI and Anthropic and metered them for those companies”
    YouTube
    Unverified1 source· Talk
  • feature
    Metronome: Provides customers controls for usage and spend, including agent wallets
    “agents could have a wallet that only they can spend from, with controls at that level”
    YouTube
    Unverified1 source· Talk
  • feature
    Metronome: Offers portable skills files to guide coding agents through setup and API use
    “We've invested in building an extensible set of skills files that provide context to the agent”
    YouTube
    Unverified1 source· Talk
  • feature
    Metronome: Provides a sandbox experience for testing billing setup with usage
    “you'll see we've built a sandbox experience”
    YouTube
    Unverified1 source· Talk
Show all 12 facts

Related talks