You're using the wrong model for 60% of your AI calls

Your AI is Costly.
Let's fix that.

Add 2 lines of code. Wait 48 hours. Get a waste audit showing exactly how much money you're burning on Anthropic API calls — with specific fixes and dollar amounts.

$npm install costly
Free during beta. No credit card required.
app.ts
// Before: 0 lines changed
import Anthropic from "@anthropic-ai/sdk";

// After: 2 lines added
import Anthropic from "@anthropic-ai/sdk";
+ import { costly } from "costly";

- const anthropic = new Anthropic();
+ const anthropic = costly({ projectId, apiKey }).wrap(new Anthropic());

// Everything else stays identical
const msg = await anthropic.messages.create({ ... });

How it works

Install. Wait. Save money. No dashboards to learn.

2 min
1

Install

npm install costly. Add 2 lines of code. Deploy.

48 hours
2

Collect

Costly silently logs your API calls. Zero latency impact.

Automatic
3

Audit

Get an email: "Costly found $127/mo in recoverable waste."

30 min
4

Fix

Each finding shows what's wrong, how to fix it, and how much you'll save.

7 types of waste we detect

Each finding comes with a dollar amount and specific fix instructions.

Prompt Bloat

Repeated system prompts burning input tokens on every call

$18/mo in repeated instructions

Model Overkill

Using Sonnet/Opus for tasks Haiku handles fine

63% of calls could use Haiku

Duplicate Queries

Identical prompts sent hundreds of times

847 duplicate calls = $22/mo

Runaway Features

One feature silently consuming 70%+ of budget

doc-gen is 74% of your spend

Error Waste

Failed calls that still bill for input tokens

234 failed calls = $8.60 wasted

Output Overgeneration

max_tokens set way higher than actual output

max 4096, actual avg 47 tokens

Cost Trajectory

Spend growing faster than usage

340% cost growth, 40% usage growth

Stop overpaying for AI

Most developers waste 30-60% of their Anthropic bill on the wrong model, duplicate calls, or bloated prompts. Find out in 48 hours.

$npm install costly

Open-source SDK. Free waste audit during beta.