# Usage and limits

This page lists the limits of the Free, Pro and Enterprise tiers as the
platform's doors read them, and how to read your usage. It teaches
`durable-sdk usage [--days <n>]` and the `GET /apps/:slug/limits` read.

## The tiers

Every number is data on the platform (an entitlement row per plan, a
quota row per account where a contract raises one), read by the door
that judges it and shown on the app's Limits page.

| Key                     | Free                                            | Pro                               | Enterprise            |
| ----------------------- | ----------------------------------------------- | --------------------------------- | --------------------- |
| `apps`                  | 1                                               | 10                                | by contract           |
| `environments`          | 2 (production, preview)                         | unlimited, staging included       | unlimited             |
| `previews_live`         | 2                                               | 20                                | by contract           |
| `seats`                 | 3                                               | per seat                          | by contract           |
| `invocations_per_day`   | 10 000                                          | 1 000 000 (allowance; usage past) | by contract           |
| `build_minutes`         | 10 a build, 60 a day                            | 45 a build, 1 000 a day           | by contract           |
| `upload_mb`             | 50                                              | 100                               | 100                   |
| `db_cu_floor`/`ceiling` | 0.25 / 0.25, suspend 5 min                      | 0.25 / 2, suspend 5 min           | by contract           |
| `db_history_days`       | 1                                               | 7                                 | 30                    |
| `logs_days`             | the platform's window (every tier until DS-023) | the platform's window             | the platform's window |
| `delete_hold_days`      | 7                                               | 30                                | 30                    |
| `preview_days`          | 7                                               | 30                                | 30                    |
| `custom_domain`         | no                                              | yes                               | yes                   |
| `staging`               | no                                              | yes                               | yes                   |
| `promotion_rule`        | auto                                            | auto, manual                      | manual                |
| `support`               | community                                       | email, next business day          | SLA                   |

Prices are on [Pricing and tiers](https://durablesdk.com/docs/operate/pricing-and-tiers.md).
Staging is coming on Pro (DS-035); until it lands `staging` admits
nothing.

## Where each limit bites

| Key              | The door                      | The refusal                                                                                    |
| ---------------- | ----------------------------- | ---------------------------------------------------------------------------------------------- |
| `apps`           | `apps create`                 | `plane.tier.apps`: the count, the tier, "delete an app or upgrade"                             |
| `previews_live`  | `deploy --branch`             | `plane.deploy.previews_live`: "remove a preview with `environments rm`, or wait for the sweep" |
| `upload_mb`      | the upload's open             | `plane.tier.upload_mb`: the size and the ceiling                                               |
| `build_minutes`  | the build's poll              | `plane.deploy.build_timeout`: the minutes and the tier                                         |
| `custom_domain`  | `domains add`                 | `plane.tier.custom_domain`                                                                     |
| `staging`        | `deploy --target staging`     | `plane.tier.staging`                                                                           |
| `promotion_rule` | `apps set --promotion manual` | `plane.tier.promotion_rule`                                                                    |
| `seats`          | an organization invitation    | the sign-in's own refusal of the fourth member                                                 |

A refusal is a value: `{ error: { code, message, remedy, docs } }` on
the API, the sentence and the remedy on the CLI (exit 2), the same under
the failed run on the dashboard. `durable-sdk explain <code>` prints the
row offline ([Errors](https://durablesdk.com/docs/reference/api/errors.md)).

## The engine's own limits

An app's runs are bounded by the time contract of the function they run
in, not by the tier: a step's budget, the wait grammar, the dispatch
cadence. `GET /apps/:slug/limits` answers the tier's entitlements, the
day's usage and the app's own `limits` read in one document;
[Scheduling and time](https://durablesdk.com/docs/concepts/scheduling-and-time.md) has the
contract. On a preview the tick is `request-only`
([Deploy](https://durablesdk.com/docs/hosting/deploy.md#previews)).

## Usage

```bash
durable-sdk usage [--days 30]
```

```text
DAY          RUNS    EVENTS   FAILED   DB STORAGE   DB CU-HOURS
2026-10-27   1 204   1 198    0        0.21 GB      1.3
2026-10-28   312     310      1        0.21 GB      0.4
```

A row per app and UTC day, written by a daily run: runs, events and
failed runs from the app's own operator API, storage and compute hours
from the database. The compute line (invocations, active CPU hours,
transfer) and the caps and the spend line are coming (DS-022); until
then `invocations_per_day` is a number the platform holds and the
dashboard shows beside the rows, not a meter that stops a request.
`GET /apps/:slug/usage?days=` answers the rows; `--json` prints them
verbatim.

## Rate buckets

Every request spends a token from a bucket before it is read: 600 a
minute per key, 600 per person, 2 000 per account over every principal,
60 deploys an hour, 10 provisions an hour, 120 console reads a minute,
10 logins an hour per address. A spent bucket answers 429 with
`Retry-After`; the CLI waits and retries a read, never a write.

---

Prompt for an agent:

```text
Read https://durablesdk.com/docs/hosting/usage-and-limits.md, then apply what it says to this app; run durable-sdk doctor --host before and after; a refused line is a refusal id: durable-sdk explain <id>
```
