Guide · Cursor

How to get alerted before a surprise Cursor team bill

The fastest way to limit a surprise Cursor bill is to find out the same day spend jumps, not when the invoice arrives. Here is how to get an alert in Slack or Discord when Cursor costs spike, in about five minutes, for free.

Why the built-in limits aren't enough

On Cursor's team plans each seat includes some usage, and anything beyond it is billed on demand. Admins can cap on-demand spend, but a cap only acts at the ceiling: one agent left running, or a teammate on an expensive model in Max mode, can turn a quiet week into an expensive day that stays well under a cap sized for busy months.

What you want is an anomaly alert: "today is 3× your normal day." That catches problems while they are still cheap. Keep the provider's hard limit as a backstop.

1. Create a key that can read costs

A team admin can create an Admin API key at cursor.com/dashboard → API Keys. The Admin API is available on Teams and Enterprise plans.

2. Add billshock to a repo

npx billshock init

This writes billshock.yml and .github/workflows/billshock.yml, which runs every hour. Trim the config to what you need:

providers:
  cursor:
    apiKey: ${CURSOR_ADMIN_KEY}
rules:
  spikeMultiplier: 3
  spikeMinAmount: 10
  monthlyBudget: 500      # also alerts on the month-end projection
notify:
  slackWebhook: ${SLACK_WEBHOOK_URL}

3. Add secrets and run it once

In your repo, go to Settings → Secrets and variables → Actions and add CURSOR_ADMIN_KEY plus a Slack or Discord webhook URL. Then open the Actions tab and run the billshock workflow manually. The run summary shows today, yesterday, the 7-day average, month-to-date and the projected month total.

When something looks wrong, you get one message per anomaly:

ALERT cursor: $96.40 spent on 2026-10-07, 7.2x the 7-day average of $13.39

No webhook? A run with a new alert fails, and GitHub emails you about the failed workflow.

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.

How it works

billshock reads POST /teams/filtered-usage-events from Cursor's Admin API and adds up chargedCents for chargeable events: the on-demand spend beyond your seats' included usage, which is what Cursor's own spend totals reconcile to. Seat fees are fixed and not included. Each run compares yesterday and today-so-far against the trailing average and your caps. Sent alerts are remembered in the Actions cache so you're not pinged every hour. Your key stays in your repo's secrets and is only sent to Cursor's API.

FAQ

How quickly will I be alerted?

Within an hour of the cost showing up in Cursor's billing data. Billing data usually lags actual usage by a few hours, so expect same-day alerts rather than real-time ones.

Can I monitor other providers too?

Yes. billshock supports OpenAI, Anthropic and Vercel in the same config, plus a combined total budget.

Does billshock stop spending?

No. It only reads cost data and sends alerts. Use Cursor's own limits to cap spend.