Guide ยท Budgets

Track OpenAI, Anthropic, Vercel and Cursor spend in one place (free)

A typical AI side project pays a model provider or two, a host, and a coding tool. Each has its own dashboard, its own billing day and its own limit settings, so nobody sees the total until the card statement. Here is how to get one view and one budget for free.

What you get

billshock runs every hour in your own GitHub Actions. Each run fetches daily spend from every provider you configure and prints one table in the run summary:

scope      today  yesterday  7d avg  month-to-date  projected
openai     $1.43     $41.20   $4.94         $82.05    $277.91
anthropic  $2.38      $5.75   $5.53         $52.84    $178.97
vercel     $0.15    $659.08   $0.40        $662.49   $2243.90
cursor     $0.00      $3.28   $3.11         $27.88     $94.43
total      $3.96    $709.31  $13.99        $825.26   $2795.21

That's the output of npx billshock demo, which uses built-in sample data. Try it without any keys.

One budget across providers

Per-provider limits don't add up to a total. billshock has a total section that applies rules to combined spend, including a monthly budget that also alerts on the month-end projection:

providers:
  openai:
    apiKey: ${OPENAI_ADMIN_KEY}
  anthropic:
    apiKey: ${ANTHROPIC_ADMIN_KEY}
  vercel:
    token: ${VERCEL_TOKEN}
    teamId: ${VERCEL_TEAM_ID}
  cursor:
    apiKey: ${CURSOR_ADMIN_KEY}
total:
  monthlyBudget: 1000
notify:
  slackWebhook: ${SLACK_WEBHOOK_URL}

Providers without a key are skipped, so start with the ones you use.

ALERT total: on pace for $2795.21 in 2026-10 ($825.26 so far), over the monthly budget of $1000.00

Keys

Billing data needs an admin or billing-scoped key for each provider. The per-provider guides explain where to create each one: OpenAI, Anthropic, Vercel, Cursor. Keys stay in your repo's secrets and are only sent to each provider's API.

Set it up in 5 minutes. npx billshock init creates the config and an hourly GitHub Actions workflow. Free and open source. Prefer a hosted version? Join the waitlist.