Coming soon 3:01 Recorded at San Francisco

How do you bill customers for what your AI agents do?

Nikhil Mishra: Billing for AI agents

Nikhil Mishra, co-founder and CTO of Flexprice, on open source billing for AI agents: metering, credits and wallets, and agents that run accounts receivable.

Recorded, coming soon.

Nikhil Mishra is co-founder and CTO of Flexprice, open source metering and billing software for companies that sell AI agents and AI products.

Follow the show and the episode arrives the morning it's published.

In brief

  1. Flexprice is open source billing software built to monetize AI agents: metering, usage-based billing and credit-based pricing, for any pricing model.
  2. It charges the end customer, manages credit wallets, shows the ledger and offers a customer portal that plugs into the application; invoicing and payments run behind the scenes.
  3. It does not depend on the agent framework: usage is streamed from most AI gateways or from the application, or pulled from traces already sent to Langfuse.
  4. All it needs is the users' traces of how they use an AI agent or product; billing starts from there.
  5. Next: AI agents for finance teams that run accounts receivable, setting up contracts, sending invoices, matching payments and sending reminders.
  6. Flexprice can be self-hosted from GitHub with a one-click setup, or used as Flexprice Cloud with a free sandbox.

Why this conversation

AI products are sold by usage, and usage happens inside agents. In San Francisco, Nikhil Mishra explained how Flexprice turns the traces an agent already leaves into metering, credits and invoices, and why the next step is agents that do the finance team’s receivables work. The written version is Flexprice: open source billing for AI agents.

Billing for AI agents

“Flexprice is basically a billing software. We help you monetize your AI agents.” It does metering, usage-based billing and credit-based pricing, “So you can run any pricing model.” Flexprice charges the end customer, manages their credit wallets, shows the ledger and gives “a beautiful customer portal that you can directly plug in into your application”, with the invoicing and payments behind the scenes. “And we are open source.”

Any platform, from the traces

Which agent platforms does it support? “It does not matter. You can build your agents anywhere.” Flexprice has data integrations with most AI gateways, so usage can stream to it from the gateway or straight from the application, or be pulled from the traces you already push to Langfuse. “So all we need is users’ traces of how is someone using your AI agents or your AI products.” A Stripe for agents, the host suggested: “you can say that.”

Agents for the finance team

Next, Flexprice is building AI agents for finance teams, “because we work so closely with finance”. Billing is one aspect. In B2B finance, contracts are signed, invoices go out every month or quarter, “And all of this is being done manually.” When a payment comes in, the team matches it against invoices by hand, and sets up every contract in the billing software. “So we are building AI agents that basically run your account receivables autonomously.” The agents set up the contracts, send out the invoices, track the payments and send reminders to customers, “And you can sit back and close your books much faster.”

Getting started

“Oh, so Flexprice is open source.” You can set it up from GitHub with one click, or sign up for Flexprice cloud, which gives you a sandbox for free; for production, you pick a pricing plan.

When it comes out

The episode is edited and in the release order. Like every episode it goes out on YouTube first, then on Apple Podcasts, Spotify and Amazon Music.

Mentioned in this episode

About Nikhil Mishra

Nikhil Mishra is co-founder and CTO of Flexprice, open source metering and billing software for companies that sell AI agents and AI products.

Running this in production? helps platform teams take it from prototype to reliable production. See how he works

Built something the rest of us run on? Being a guest is free. Take the other chair

More episodes

All episodes →
  1. Episode 59 · Coming

    The Phosh developers: A phone on mainline Linux

  2. Episode 61 · Coming

    Alec Reynolds: Docs written by agents

  3. Episode 70 · Coming

    Andre Elizondo: AURA, an open source SRE agent

  4. Episode 71 · Coming

    Jacek Migdał: What agentic coding is really worth

Every episode, plus the notes that didn't fit in ten minutes.

One email a week: the episode, three takeaways, and what to read or try next. No sponsor blasts.

    You can unsubscribe with one click.