Stay inside quotas and caps
Track counted quotas, abuse limits, fleet caps, and overage behavior.
Track counted quotas
| Quota | Free | Pro |
|---|---|---|
| Apps owned | 2 | 20 |
| Code changes / day (UTC) | 40 | 1000 (fair use) |
| Build minutes / day | 30 | 300 |
| Collaborators / app | 1 | 10 |
| D1 database | 100 MB (writes refused at cap, nothing deleted) | 5 GB (writes refused at cap, nothing deleted) |
| R2 files | 250 MB (writes refused at cap, nothing deleted) | 25 GB (writes refused at cap, nothing deleted) |
| Requests / month | Soft 100k (email + upgrade ask, keeps serving) | Soft 5M (never pause a live app) |
| Logs and errors kept | 24 hours | 30 days |
| Backups | Daily, keep 3 | Daily, keep 30 + any-day restore |
| D1 databases / app | 1 | 1 |
| R2 buckets / app | 1 | 1 |
- Charge each
committhat creates a commit to the app owner, whoever makes it. - Exclude the template commit from
create_appand everyrollbackfrom counting. - Check usage and reset times with
whoami. - Relay
quota_exceededplus its verbatimuser_messageto the person. Refusals name the limit, the reset time, and the informational plans link (plans_url,/account/plans). There is no checkout link on the agent surface: the person upgrades from the Outer console if they choose to. - Merge extra databases or buckets; a second
d1_databasesorr2_bucketsentry fails validation. - Export is available on every plan (owner only). Collaborators are a Pro feature (up to 10 per app).
- Downgrade keeps the 2 oldest apps live and stops the rest for 30 days; every collaborator loses access until upgrade (rows stay; access returns with no re-invite).
Respect abuse and runtime caps
- Expect sign-in throttles: 5 OTP emails/hour/address, 20/hour/IP, 3 new accounts/day/IP.
- Run every fleet under the host’s memory and CPU caps; there is no per-plan sizing.
- Keep each request under 30 seconds of CPU. Past it the request fails with HTTP 500
Worker exceeded CPU limit of 30000 ms; the app keeps serving and Durable Object state stays. Waiting onfetch, D1, storage or timers doesn’t count. Apps can’t raise it: alimitskey in the wrangler config fails the deploy. - Expect idle sleep after 15 minutes on Free (cold start on wake); on Pro, keep-warm holds selected fleets awake, otherwise sleep after 30 minutes.
- Track requests and storage against the soft caps above; request overage only triggers an email and an upgrade ask — never tell the person an app paused over quota.
- Inactive Free apps are deleted after 90 days with reminders; Pro apps are never deleted while subscribed.
Keep Free apps alive past 90 days
- Free apps are deleted after 90 days without owner activity, never while Pro.
whoami,list_apps, andopen_appshow the deadline asdeletes_at. - Count as activity: every authenticated request by the owner (sign-ins, any tool call, Console visits) and tool calls on that app by a collaborator. Never visitor traffic.
- The person gets reminder emails at 30, 7, and 1 day before the deadline. After the deadline the host serves an inactivity page for 7 days; any owner activity in that week restores the app on its next request. Then it is purged and the slug is claimable again.
- When the person asks why an app is gone or when it goes away, read
deletes_atand relay the countdown; to keep it, any tool call counts.
For the person-side walkthrough, see Limits and quotas.