Financial intelligence for AI

Your customer pays you $20.They cost you $87.Costr tells you which one.

Per-customer AI spend attribution across OpenAI, Anthropic, and Google. One line of code.

BYOK required. Your provider, your bill. Costr never blocks your calls — we just track them.

Integrate in 1 minute withClaude
import Anthropic from '@anthropic-ai/sdk'
const client = new Anthropic({
  baseURL: 'https://costr.dev/api/proxy/anthropic',
  defaultHeaders: {
    'x-costr-key': process.env.COSTR_KEY,
    'x-costr-user': customer.id,
  }
})

Same 2-header swap for all providers. See the docs →

Why Costr

The fastest way to per-customer AI cost attribution.

One header change. Three providers in one ledger. Real-time dashboard that surfaces unprofitable customers before they erode your margin.

Costr is built for founders shipping AI in production who need to know where the money goes at the level of detail that decides pricing, retention, and runway.

Independent. Built for indies. Priced for indies. Zero markup on inference. Your keys, your bill.

  • One-line integration. Change one baseURL.
  • Three providers normalized. OpenAI, Anthropic, Google.
  • Per-customer, per-feature, per-provider attribution.
  • BYOK. Your keys, your bill, your control.
$4,800

That was their AI bill last month.

Nobody on the team could tell which customer spent it. Costr breaks every dollar down by the user who triggered it — across OpenAI, Anthropic, and Google, in one ledger.

01

See who is costing you what

Pass an x-costr-user header on every proxy request. Costr attributes every token, every dollar, back to the customer in your product who triggered it. Sorted by spend. Unprofitable customers visible at a glance.

02

Three providers, one view

OpenAI, Anthropic, and Google in one ledger. Costr normalizes pricing across providers and tracks spend in dollars, regardless of which model your code calls.

03

You bring the keys. We bring the dashboard.

Your API keys, your bill. Costr observes the traffic, never the content of your prompts or responses. You pay your provider directly — we charge for the dashboard, not the inference.

The whole picture

Per-customer is half the story. Here’s the other half.

Total spend, trend over time, and provider mix — so you know what you’re paying, not just who’s costing it.

costr.dev/dashboard

Total spend · this month

$4,847.20

↑ 23.4% vs. last month

across 247 customers · 1.2M tokens

Daily spend · last 30 days

Apr 22May 22

By provider · this month

  • OpenAI62%$3,005.27
  • Anthropic27%$1,308.74
  • Google11%$533.19

What you get

Four views. All the answers.

From raw token counts to per-customer gross margin — connected in one dashboard.

01

Per-customer spend

Every dollar attributed to the customer who triggered it. Sorted by spend. Exportable as CSV.

02

Revenue + gross margin

Add MRR per customer manually, by CSV, or via Stripe. Costr calculates net margin on every row.

03

Feature-level breakdown

Tag calls with x-costr-feature to see which parts of your product drive the bill.

04

Three providers, one ledger

OpenAI, Anthropic, and Google normalized to dollars. No switching dashboards.

See the full breakdown →

Built by one person.

I’m Brandon. I’m 18 and I built Costr solo because I hit the per-customer AI margin problem on my own product and couldn’t find a tool that solved it the way I needed. No team, no investors. Just shipping.

Email me directly: brandon@costr.dev

Pricing

Simple pricing. No surprises.

Free to start. Pro for indies. Team for teams. Enterprise for everyone else.

Free

For trying things out.

$0/month
  • $25 of tracked spend per month
  • 1 Costr API key
  • 7-day history
  • All providers (OpenAI, Anthropic, Google)
  • Per-customer attribution
  • Revenue + margin tracking
  • Community support
Start free →
Pro

For indie devs and small teams.

$19/month
  • $1,000 of tracked spend per month
  • Unlimited Costr API keys
  • 90-day history
  • All providers
  • Per-customer attribution
  • Feature-level spend breakdown
  • Revenue + gross margin tracking
  • CSV import & export
  • Stripe revenue sync
  • EOM spend projection
  • Email support
Team

For growing B2B SaaS teams.

$79/month
  • $10,000 of tracked spend per month
  • 1-year history
  • Priority support
  • Everything in Pro
Enterprise

Scale-grade infrastructure.

Custom
  • Unlimited tracked spend
  • Unlimited seats
  • Dedicated Slack channel
  • Custom data retention
  • Everything in Team
View plans →