KeyBark

Anthropic API spend alerts: what the Console sends, and what it misses

Anthropic will email you as monthly Claude API spend approaches a limit you set. It won't tell you that today is five times a normal day, and it won't post to Slack. Here is what you get for free, where the gaps are, and a short script that fills them with the Admin API cost report.

Last reviewed 23 Nov 2026

The short version

  • Built in, by email: a monthly organization spend limit with email notifications as you approach it, and per-workspace monthly limits with an email notification at an amount you choose (Workspaces docs, Claude Help Center).
  • Not built in: daily thresholds, spike alerts, per-key alerts, and Slack or webhook delivery. Anthropic's organization webhooks cover things like encryption key failures, not spend.
  • Do it yourself: poll GET /v1/organizations/cost_report with an Admin API key (data typically within 5 minutes, daily buckets only) and post to a Slack incoming webhook. Script below.
  • Alerts don't stop spend. Only a spend limit does. Set the limits first, then add alerts below them.
Want a heads-up before the bill does?

KeyBark checks your OpenAI, Anthropic or OpenRouter spend about every 15 minutes during the beta and emails you when it crosses a daily or monthly threshold you set, or jumps above its 7-day average. It doesn't set or enforce limits for you. Free for one key, no card.

What Anthropic gives you

ControlWhereWhat it doesGap
Organization monthly spend limit + email notificationsConsole, Settings > Spend limitsCaps the whole organization each month; emails as you approach itMonthly only; email only
Workspace monthly spend limitSpend limits, or Workspaces > the workspace > Spend limitsCaps one workspace below the organization limitDefault Workspace: docs disagree (see below)
Workspace email notificationSame panel, "Add notification"Emails when that workspace's spend reaches an amountMonthly running total; organizations Anthropic bills directly
Usage and Cost pagesConsole, /usage and /costCharts by workspace, model and moreYou have to look; no alerting
Claude Code per-user monthly limitsClaude Code workspaceCaps each developer's Claude Code spendOnly that workspace

The Default Workspace needs care. Anthropic's Help Center says you can't set a spend limit on it; the current platform docs say that restriction applies on Claude Models on Google Cloud (Anthropic managed) and Claude Platform on AWS, and warn that a Default Workspace limit might not count Console playground use, Claude Managed Agents sessions, or Claude Code and Claude Desktop used through a Console sign-in. The organization limit counts all of it. Either way, the safest setup is to move production keys into their own workspaces: see Anthropic Default Workspace limits.

Separately, every usage tier has its own monthly spend cap that returns a 429 when hit; that is a ceiling, not an alert. See Anthropic 429 enforced_spend_limit_reached.

Set up the built-in email notifications

  1. Open the Console Spend limits page. Under Organization limit, set a monthly spend limit, then add email notifications below it (for example at 50% and 80%), so there is time to react before the cap stops requests.
  2. For each workspace that runs an app or agent, select it under Workspace limits, set a monthly limit lower than the organization's, and click Add notification for an email at an amount below that limit.
  3. Check who receives them. Notifications go to email, so make sure someone actually reads that inbox on a weekend.

Two things these can't do: they compare a monthly running total with a fixed amount, so a $40 day in a $500 month passes silently; and they can't tell you which key or agent is spending. For that, see Anthropic cost per API key.

Daily, spike and Slack alerts from the cost report

The legacy cost report (/v1/organizations/cost_report, still supported) returns your organization's Claude API cost in USD per UTC day. The Usage and Cost API docs say data typically appears within 5 minutes of a request finishing, and that polling once per minute is fine for sustained use, so a check every 15 minutes is well within limits. Facts the script relies on:

  • Cents as decimal strings: amount is in the lowest currency unit, so "123.45" is $1.23. Divide by 100.
  • Daily buckets only (bucket_width=1d), oldest first, up to 31 per page, including empty days. Today's bucket is a running total.
  • Default Workspace included: its cost appears with workspace_id: null when you group by workspace, so the organization total covers usage that a workspace limit might miss.
  • Not included: Priority Tier costs (billed differently). Credits aren't taken off.
  • Credential: an Admin API key (sk-ant-admin01-…) or another Admin API credential; workspace API keys don't work, and individual Console accounts must set up an organization first. On Claude Platform on AWS this endpoint isn't available.

Create a Slack incoming webhook (a Slack app with Incoming Webhooks turned on, then "Add New Webhook to Workspace" and pick a channel, per Slack's docs). The URL contains a secret, so keep it out of code and repos. Then:

#!/usr/bin/env bash
# anthropic-spend-alert.sh: run every 15 minutes from cron.
# Needs ANTHROPIC_ADMIN_KEY and SLACK_WEBHOOK_URL in the environment.
set -euo pipefail
DAILY_LIMIT=20     # USD for today (UTC)
MONTHLY_LIMIT=300  # USD for this month (UTC)
SPIKE_X=2          # alert if today > 2x the 7-day daily average
STATE=${STATE:-$HOME/.anthropic-spend-alert}   # remembers what was sent today
TODAY=$(date -u +%Y-%m-%d)
MONTH_START=$(date -u +%Y-%m-01)T00:00:00Z
WEEK_START=$(date -u -d "7 days ago" +%Y-%m-%d)T00:00:00Z

report() {  # $1 = starting_at; prints one "date dollars" line per daily bucket
  curl -sf "https://api.anthropic.com/v1/organizations/cost_report?starting_at=$1&bucket_width=1d&limit=31" \
    -H "anthropic-version: 2026-10-21" -H "x-api-key: $ANTHROPIC_ADMIN_KEY" \
  | jq -r '.data[] | [.starting_at[0:10], (([.results[].amount | tonumber] | add // 0) / 100)] | @tsv'
}

MONTH=$(report "$MONTH_START")
WEEK=$(report "$WEEK_START")
today=$(awk -v d="$TODAY" '$1==d {printf "%.2f", $2}' <<<"$MONTH"); today=${today:-0}
month=$(awk '{s+=$2} END {printf "%.2f", s}' <<<"$MONTH")
avg=$(awk -v d="$TODAY" '$1!=d {s+=$2; n++} END {printf "%.2f", n ? s/n : 0}' <<<"$WEEK")

send() {  # one Slack message per alert type per day
  grep -qx "$TODAY $1" "$STATE" 2>/dev/null && return 0
  curl -sf -X POST -H 'Content-type: application/json' \
    --data "$(jq -n --arg t "$2" '{text: $t}')" "$SLACK_WEBHOOK_URL" >/dev/null
  echo "$TODAY $1" >> "$STATE"
}

awk -v a="$today" -v b="$DAILY_LIMIT" 'BEGIN{exit !(a>b)}' && send daily "Anthropic spend today is \$$today (limit \$$DAILY_LIMIT)"
awk -v a="$month" -v b="$MONTHLY_LIMIT" 'BEGIN{exit !(a>b)}' && send monthly "Anthropic spend this month is \$$month (limit \$$MONTHLY_LIMIT)"
awk -v a="$today" -v b="$avg" -v x="$SPIKE_X" 'BEGIN{exit !(b>0 && a>b*x)}' && send spike "Anthropic spend today \$$today is over ${SPIKE_X}x the 7-day average (\$$avg)"
exit 0
  • Schedule it: */15 * * * * /path/anthropic-spend-alert.sh on a machine that stays on, or a scheduled CI job with the two values stored as secrets. A laptop that sleeps overnight misses the night.
  • One alert per type per day: the state file stops a repeat every 15 minutes. Delete it to test.
  • Spikes early in the UTC day are hard to catch because today's total starts at zero; comparing today's running total with a full-day average errs toward alerting late, not falsely.
  • Per workspace: add &group_by[]=workspace_id and sum per workspace_id to give each app its own thresholds.
  • Check it fails loudly: with curl -sf and set -e, an expired key stops the script with an error, so watch your cron mail or CI failures too.

Honest limits of any alert

  • Alerts arrive after the money is spent. Reporting lag plus your check interval means a fast loop can burn through a lot before the first message. The workspace and organization limits are what actually stop requests.
  • The Admin key is powerful. It can read organization usage and change API keys and workspaces; Claude Console Admin keys have no scopes, so there is no read-only option. Give the job its own key and store it as a secret: see Read-only admin key for AI cost tools.
  • Organization totals hide the culprit. When an alert fires, break today down by key with the Analytics API (how), and if a key may have leaked, follow Anthropic API key leaked.

Where KeyBark fits

We built KeyBark, so weigh this accordingly. It does what the script above does without you running it: with an Anthropic Admin key you connect, it reads your organization's daily cost report (Default Workspace included) from our servers about every 15 minutes during the beta and emails you when a daily or monthly dollar threshold you set is crossed, or when today's spend jumps above its 7-day average. Slack alerts are on paid plans, and an opt-in kill switch (beta) can set one Anthropic key you name to inactive when a threshold is crossed. Free for one key.

Limits, honestly: organization totals only, not per key or per model; checks run on a schedule and depend on Anthropic's reporting delay, so an alert can come after money has been spent; it doesn't set Anthropic spend limits for you; and teams that already track cloud bills in a FinOps tool may prefer that tool's Anthropic integration. A fair side-by-side is in AI API spend alert tools compared.

Checklist

  1. Organization monthly spend limit set, with email notifications well below it.
  2. Production keys out of the Default Workspace, each app or agent in a workspace with its own limit and notification.
  3. A daily threshold and a spike check from the cost report, delivered where you'll see it (Slack, not only email).
  4. A dedicated Admin key for the job, stored as a secret.
  5. A plan for when it fires: per-key breakdown, then disable or delete the key.

Not sure your Anthropic limits would stop a runaway loop or a leaked key? The free AI key limit audit checks OpenAI, Anthropic and OpenRouter settings in a couple of minutes (no sign-up, no key needed). Related: How to monitor Anthropic API spend, Anthropic workspace spend limits via the API, Claude Code spend limit, Runaway AI agent cost.

FAQ

Does Anthropic send spend alerts for the Claude API?

Yes, by email. On the Claude Console Spend limits page you can set a monthly organization spend limit and email notifications as you approach it, and each workspace can have its own monthly limit (Anthropic's docs disagree on the Default Workspace) and an email notification at an amount you choose (Anthropic's docs say workspace email alerts are for organizations Anthropic bills directly). There is no daily threshold, no spike detection and no Slack or webhook delivery for spend.

Can I get Anthropic spend alerts in Slack?

Not from Anthropic directly: the Console notifications are email, and Anthropic's organization webhooks cover events such as encryption key failures and user profile enforcement, not spend. You can poll the Admin API cost report on a schedule and post to a Slack incoming webhook yourself, or use a monitoring tool that reads the same API and posts to Slack.

How quickly does Anthropic cost data show up?

Anthropic's Usage and Cost API docs say usage and cost data typically appears within 5 minutes of a request completing, though delays can occasionally be longer, and the API supports polling once per minute for sustained use. The cost report itself only has daily buckets, so an alert script compares today's running total with a threshold.

What is the best tool to monitor Anthropic API spend?

Start with the Console's own monthly limits and email notifications, which cost nothing. If you need daily or spike alerts or Slack, either run a small script against the cost report or use a tool that reads it: FinOps platforms such as Vantage or Datadog suit teams that already track cloud bills there, while small-builder tools such as KeyBark send daily, monthly and spike alerts by email (and Slack on paid plans). None of them can stop spend faster than Anthropic's own limits.

Sources (read 23 Nov 2026): Claude docs Workspaces, Usage and Cost API, API reference Get Cost Report, Organization webhooks; Claude Console Spend limits page; Claude Help Center Create and manage Workspaces; Slack docs Sending messages using incoming webhooks. KeyBark is not affiliated with Anthropic or Slack.

Want a second line of defence?

KeyBark watches your OpenAI, Anthropic and OpenRouter spend from the server and flags a crossed threshold or spike by email and on your dashboard. Free for one key.