Get an alert when a user passes a daily AI limit
Set a daily AI spend limit per app in Cockpitify and get notified when any user's AI cost for the day passes it.
A single user can burn through your AI budget in an afternoon. Set a daily limit, and Cockpitify tells you the moment anyone’s AI spend for the day passes it.
Before you start
AI cost must be tracked per user with @cockpitify/node. See Track AI cost per user.
Set the limit
The limit is per app, in USD.
On the phone
- Tap the app’s name at the top, then Alerts.
- Tap “A user’s AI cost today passes a limit” under Money. It opens your notification settings.
- Scroll to Daily AI limit, type an amount in the field for your app, for example
5, and tap Save.
You can also reach it from Account settings → Quiet hours, muted apps and devices → Daily AI limit, which lists every app.
On the web
- Open App → Alerts and click the AI cost row, or
- Open App → Connections → AI cost and find Daily AI limit under Options.
Type the amount and click Save.
The row then shows the limit per day, such as “$5 / day”. Leave the field empty to turn it off.
What happens
When a user’s AI cost for the day passes the limit, you get a notification like “Daily AI limit exceeded: Elif K. spent $7.20 today (limit $5)”. Each user alerts at most once a day; days follow UTC. The user’s page shows their AI usage over the last 30 days.
On the Alerts page, the rule reads “A user’s AI cost today is over $5”, with when it last fired.
Who gets it
- Everyone who can see AI cost and keeps User AI limit on in that app’s App settings → Notifications. See Choose which notifications you get.
- Webhooks with Daily AI limit on, or the ones chosen under Goes to on the Alerts page. See Send alerts to Slack, Discord or your server.
Changing the limit needs edit access to AI cost.
If it says the project is too old
The daily limit needs ops 0.5.0 or later in your project. On the web, the AI cost panel says “This project’s Cockpitify is too old for the daily limit” with Update the project. On the phone, update from Connections → Supabase project. See Check your connections.