Spend-specific tool

capped-cost

A small CLI and package for OpenAI and Anthropic spend checks.

Use it when you want the spend-specific tool for OpenAI and Anthropic, not a generic threshold primitive.

Value

Built for developers who want to

  • check current-month spend quickly
  • run cost checks in cron or CI
  • get simple breakdowns and forecasts
  • add webhook alerts without building another dashboard
Why this exists

Billing dashboards are fine until you want something scriptable.

capped-cost exists for the moment when "what are we spending right now?" becomes an operational question.

CLI
capped-cost check --cap=100 --threshold=0.8
capped-cost alert --cap=100 --webhook-url="$WEBHOOK_URL"
capped-cost forecast --cap=100 --strategy=rolling-7d
Use capped-cost when
  • you care specifically about OpenAI and Anthropic spend
  • you want an opinionated tool instead of wiring the APIs yourself
  • you want something small enough to live in scripts and automation
Don't use capped-cost if
  • you already have the number and just need generic threshold alerts
  • you want a full observability platform
  • you need a hosted dashboard product

Already have the number? Use threshold-hook instead.