
Your AI is Costly.
Let's fix that.
One install. 7 detectors. Every wasted dollar, found.
$ npx costly init ? Paste your Costly project key: ck_a1b2c3... ✓ Project key verified Scanning for Anthropic SDK usage... ✓ Updated src/lib/ai.ts ✓ Updated src/services/chat.ts ✓ Installed costly via pnpm ✓ Added COSTLY_API_KEY to .env You're all set. Dashboard lights up in 48h.Logs tell you what happened.
Costly shows you the fix.
1 of 7 detectors
I noticed your system prompt is 2,100 tokens and it's identical across all 14,000 calls this month. That's $89/mo on repeated text. Try enabling prompt caching — it'll cut that to near zero.
Your costs, audits, and savings.
Everything in one place.
Our mission goes beyond API calls.
Every wasted token burns real energy.
Of real water consumed every 20–50 AI prompts. Your code has a water bill.
Wasted on cloud compute every year. Idle GPUs, redundant calls, oversized models.
Consumed by data centers in 2024. More than the entire UK uses at home.
Together, we're making a difference.
One optimization at a time.
Questions?
We've got answers.
Do I need to give Costly my Anthropic API key?
No. Costly never asks for, stores, or accesses your Anthropic key. You use a Costly project key (ck_...) to send call metadata — model, tokens, and cost. Your prompts and responses never leave your server.
What data does the SDK send?
Only metadata: model name, token counts, estimated cost, latency, and any tags you add. No prompts, no completions, no user data. The SDK is fully open source — read every line.
Will this slow down my API calls?
No. The SDK logs asynchronously with fire-and-forget batching. Zero added latency to your Anthropic calls.
Is Costly free?
Yes. Costly is completely free during the beta — no credit card required. You get one project with 30 days of data retention and full access to all 7 waste detectors.
Is Costly open source?
The SDK that wraps your API calls is fully open source — inspect every line on GitHub. The dashboard and waste engine are hosted for you so there's nothing to deploy.
How are costs calculated?
The SDK reads the model and token counts from each Anthropic response and multiplies by the official per-token pricing. Same math as your Anthropic invoice — no estimates or guesswork.
What AI providers do you support?
Phase 1 supports the Anthropic Claude SDK for Node.js and TypeScript. More providers are coming soon.
You're wasting money on AI.
Start saving with Costly.
Open Source · Made With Love 💚