# Pricing and tiers

This page is the entitlements table the platform's doors read and the Limits page shows, one row per key. It teaches `GET /apps/:slug/limits` and `durable-sdk usage`, and what a refusal at a limit looks like. Prices and the upgrade button are on [/pricing](https://durablesdk.com/pricing).

## The tiers

| 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 (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                   |

Every number is data the doors read: the app count at `apps create`, the live previews at `deploy`, the upload size at the upload's open, the build minutes at the build's poll. A held (deleted, not yet purged) app counts toward `apps`. Staging is DS-035: `--target staging` is refused `plane.tier.staging` on every tier until it lands ([the roadmap](https://durablesdk.com/docs/roadmap.md)).

## The refusal at a limit

A request past an entitlement is refused by the key's name and your tier, with the remedy, never silently queued:

```json
{
  "error": {
    "code": "plane.tier.custom_domain",
    "message": "Custom domains are on Pro and up; this organization is on Free.",
    "remedy": "Upgrade at https://durablesdk.com/pricing, or use my-app.durablesdk.com.",
    "docs": "https://durablesdk.com/docs/reference/api/errors#plane.tier.custom_domain"
  }
}
```

The CLI prints the same sentence and exits 2; under `--json` the object above is on stdout. Every `plane.tier.<key>` code is on [the error reference](https://durablesdk.com/docs/reference/api/errors.md). A rate bucket at the door (per key, per person, per organization: [accounts and keys](https://durablesdk.com/docs/operate/accounts-and-keys.md)) answers 429 with `Retry-After` instead.

## Reading your limits

```bash
durable-sdk usage --days 7
durable-sdk usage --json
```

```bash
curl -s https://durablesdk.com/api/v1/apps/my-app/limits \
  -H "Authorization: Bearer $DURABLE_API_KEY"
```

`limits` answers `{ plan, entitlements, usage, engine }`: the plan's name, every key above with its value (`null` for by contract), today's usage row, and the app's own time contract (the engine's `limits`). The dashboard's Usage page shows the daily rows and the Console tab's Limits section the same answer. The counted lines are on [usage and limits](https://durablesdk.com/docs/hosting/usage-and-limits.md).

## Prices

Free is free. Pro's seat and environment prices and the usage rates are not set yet: the pricing page and the dashboard's upgrade button read "Talk to us" and open `sales@durablesdk.com`; a Pro or Enterprise organization is set up by hand until self-serve billing lands (DS-027). Enterprise adds a contract, an SLA with a named contact, the regulated configuration ([compliance](https://durablesdk.com/docs/operate/compliance.md)) and numbers by contract.

## Support

Community on Free (the discussions in the source mirror), email with a next-business-day answer on Pro, an SLA with a named contact on Enterprise. A failed run's sentence and remedy are the first answer on every tier: `durable-sdk explain <code>` prints them offline.

---

Prompt for an agent:

```text
Read https://durablesdk.com/docs/operate/pricing-and-tiers.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>
```
