# Limits

Every KeelDB quota and limit in one place, from databases per organization and storage caps to spending limits and API rate limits.

If a limit gets in your way, contact support from the console. Prices are on [Plans and billing](/docs/plans-and-billing).

## Databases per organization

| Plan | Limit |
| --- | --- |
| Free | 10 databases per organization, and one Free organization per person |
| Launch | 100 databases per organization |
| Dedicated | No fixed count. New organizations: at most 3 nodes and $250 a month of list price until their first paid invoice. At most 10 new Dedicated databases a day (3 for new organizations) |

Over a limit, the API returns `403 limit_reached`.

## Per plan

| Limit | Free | Launch | Scale | Dedicated |
| --- | --- | --- | --- | --- |
| Compute | 0.25 to 2 CU, above 0.5 CU only when the server has room | Your range within 0.25 to 16 CU (0.25 to 2 by default), up to 16 CU as the elastic pool has room (4 until your first paid invoice): when the pool can give less, the console and [`GET /plans`](/docs/api#list-plans) show the lower maximum, "more when shared capacity grows" | Your range within 0.25 to 16 CU (0.25 to 4 by default), a full vCPU guaranteed per CU, up to 16 CU as the elastic pool has room (4 until your first paid invoice) | By size: 1 to 48 vCPU, 2 to 192 GB RAM; in US East today Performance sizes only, as far as our provider limits allow |
| Compute allowance | 100 CU-hours per database per month (its branches included), 300 per organization in all | A $100 monthly budget with alerts by default; a hard limit if you turn it on (always on until the first paid invoice) | The same budget as Launch, one for both | None |
| Storage | 1 GB per database, shared with its branches (the database's data, what each instant branch has written on its own, and all the data of a point-in-time branch or a branch from a snapshot), then the database and its branches are read-only | 100 GB per database and per branch, then read-only (lower while a smaller cloud server is part of our shared fleet, as the console and `GET /plans` show) | 100 GB per database and per branch, then read-only | Included by size; grows by itself up to the size's maximum (64 GB per GB of RAM, 2 TB at most); read-only at 95% of it |
| `max_connections` | 100 | 400 | 400 | 100 to 2,000, by size |
| Your role's connections | `max_connections` minus 5 | `max_connections` minus 5 | `max_connections` minus 5 | `max_connections` minus 5 |
| Pooler clients | 1,000 | 10,000 | 10,000 | 10,000 |
| Branches | 5 per database and 20 per organization in all, sharing their database's 1 GB and CU-hours; a branch that would take them past the 1 GB is refused. They move with their database when it changes plan | 10 child branches per database included, within 5 per organization plus 1 for each $1 of compute, storage and restore history above the $5 minimum, counted in branch-hours; more billed | 25 per database included, within the same organization allowance; more billed | Restored from backups, billed by where they run |
| Snapshots | 1 per database | 100 manual per database, plus scheduled ones | 100 manual per database, plus scheduled ones | 100 manual per database, plus scheduled ones |
| Backup schedules | None | Daily (keeps up to 35), weekly (26), monthly (24) | Daily (keeps up to 35), weekly (26), monthly (24) | Daily (keeps up to 35), weekly (26), monthly (24) |
| Read replicas | None | 0 to 3 | 0 to 3 | 0 to 3 |
| High availability | No | No | No | `ha2`, `ha3` where offered; not offered in US East yet |
| Restore window | 1 day | Up to 7 days | Up to 30 days (7 by default) | 7, 14 or 30 days by topology, longer billed |
| WAL archiving | 5 GB archived per database per day, and 0.5 GB written per organization per day in all, then read-only until 00:00 UTC | No daily cap | No daily cap | No daily cap; backup storage above 1.5, 2.5 or 5 times the provisioned storage billed |
| Egress | 5 GB per project per month (a database and its branches), then that project accepts no connections until the 1st; 50 GB per organization per month in all, deleted projects included | Up to 500 GB per project (a database and all its branches) per month included, then billed; an organization's projects together include 1 GB for each $1 of its Launch and Scale compute, storage and restore history above the $5 minimum that month; under it, the part of the $5 minimum that other usage leaves covers 7 GB for each $1 (35 GB with no other usage) | Up to 500 GB per project per month included, then billed; Launch and Scale projects of an organization together within the same bound as Launch | 100 GB per node per month included, in proportion to the hours the database exists that month, then billed |
| Scale to zero | Always: warm size after 5 idle minutes, sleep after 60 more, or after 10 while its server is over 70% busy | Adjustable from 1 minute, or never | Adjustable from 1 minute, or never | Never |
| Idle archive | After 30 days without connections (databases without branches) | None | None | None |
| Metrics shown | Last 30 days | Last 30 days | Last 30 days, and exported to your OpenTelemetry collector | Last 30 days |
| PostgreSQL logs kept | Last 1 day | Last 3 days | Last 14 days, and exported to your OpenTelemetry collector | Last 14 days |
| PostgreSQL log records per minute | 100 per database | 1,000 per database | 5,000 per database | 5,000 per database |
| PostgreSQL log records kept | 10,000 per database | 100,000 per database | 500,000 per database | 500,000 per database |

Pooler sizes are in [Connection limits](/docs/connect#connection-limits).

## Free limits in practice

- **The limits are per database and per organization.** Each Free database has its own 100 CU-hours a month, which its branches share; all of an organization's Free databases together have at most 300 CU-hours and 0.5 GB of WAL written a day, and each project (a Free database and its branches) has 5 GB of egress a month, within 50 GB for all of the organization's Free databases together, deleted ones included. One Free organization per person, so these are the limits of one account. A Free database that used its own CU-hours pauses alone until the 1st (UTC); at the organization's 300 every Free database of it pauses. We email the organization's owners at 80% of either.
- **Egress.** KeelDB's proxies count what each database sends to its clients; that is what egress means on every plan. Free databases cannot use `dblink` or `postgres_fdw`, which send data to other servers directly, so everything a Free database sends goes through the proxies. On Launch and Dedicated, data a database sends to other servers itself with those extensions is not counted as egress. Once a project (a Free database and its branches) has sent 5 GB in a calendar month (UTC), as on Neon, that project accepts no connections until the 1st: a new connection is refused with an error that says why and when it serves again (SQLSTATE `53400`), and an open session ends at its next result. The organization's other projects keep serving. Its data is kept, the organization's billing contacts get an email, and the database's overview in the console shows it. Move the database to Launch to serve it again at once. All of an organization's Free databases together, deleted ones included, send at most 50 GB in a month: at that, every Free project of the organization stops the same way until the 1st, so deleting a project and making a new one does not start the month again.
- **Write-ahead log.** Two daily limits, each until 00:00 UTC. Archived WAL is counted in the 16 MB segments PostgreSQL archives: past 5 GB in a UTC day, the database is read-only. And the WAL the organization's Free databases write together (the real bytes, not the padding of a segment switch): past 0.5 GB in a UTC day, all of them are read-only. Read-only means reads keep working, sessions end so new ones start read-only, and the organization gets an email. A role that switches read-only off in a session and keeps writing is locked out until midnight once the day passes the limit by 0.5 GB (archived) or 0.25 GB (written). A quiet database stays far below both: the WAL switch every 5 minutes archives at most 4.5 GB a day even with a write in every interval, and those switches write almost nothing.
- **Idle archive.** A Free database with no connections for 30 days, and without branches, moves to backup storage: KeelDB takes a fresh backup, stops the database and checks that its last changes reached backup storage, then removes its instances and its disk. Its data, host name and password stay. The next connection restores it from that backup and its WAL (so do Restore on its overview in the console and the SQL editor). Until it is ready, connections are refused with a message that says it is being restored and since when. A restore takes longer than a wake from sleep, and longer the more data the database holds.

## Spending and new organizations

| Limit | Value |
| --- | --- |
| Launch and Scale monthly budget | $100 a month by default, one for both: alerts only, nothing stops at it |
| Hard spend limit | Optional, turned on in Billing: Launch and Scale usage of a month is never charged above the highest amount in force during it |
| Spend limit, new organizations | Always on until the first paid invoice, at most $100 plus any unused prepaid credit |
| Spend alerts | At 50%, 80% and 100% of the monthly amount, then every further 100% without a hard limit; a day far above the usual; 50%, 80% and 100% of the optional Dedicated cap |
| Dedicated cap | Optional; blocks new databases, bigger sizes and new nodes when reached |
| Dedicated, new organizations | At most 3 nodes, $250 a month of list price, sizes priced up to `std-8` for `single` and `std-4` for `ha2` and `ha3`, 3 new databases a day |
| Early invoice | When usage in the current period reaches $50 |

## Databases and branches

| Limit | Value |
| --- | --- |
| Database name | 2 to 48 characters: letters, numbers, spaces, dots, hyphens, underscores; starts with a letter or number |
| PostgreSQL database name | Lowercase letters, digits and underscores, at most 40 characters |
| PostgreSQL versions | 18, 17 and 16 |
| Regions | US East (`us-east`), centered on Ashburn, Virginia; every location is listed on [Sub-processors](/legal/subprocessors) |
| Waiting line | New Free and Launch databases wait in line ("In line for a database") when the shared servers are full, and are created by themselves as room frees up, Launch first and then Free, oldest first. Nothing is billed while they wait, and you can delete one at any time |
| IP allowlist | 50 entries per database (IPv4 or IPv6 addresses or CIDR ranges) |
| Plan change | The data must fit the target: 1 GB for Free, 100 GB for Launch, the size's maximum on Dedicated. A Launch database moves back to Free with its branches when they fit Free ([Moving back to Free](/docs/plans-and-billing#moving-back-to-free)); Scale and Dedicated move to Launch first |
| Wake-up wait | The proxy holds a connection up to 90 seconds while a sleeping database wakes |
| Branch expiry | At most 30 days ahead when set; not on databases with deletion protection |
| Parent state | `ready` or `sleeping` |
| Point-in-time branches and restores | Within the parent's restore window, after its first backup finished, and not in the future |
| Deleting | A database with branches can't be deleted until its branches are; a database with deletion protection can't be deleted until protection is turned off |

## Dedicated changes

| Limit | Value |
| --- | --- |
| Reserved capacity | Once Dedicated servers are open: a new database only (not a move to Dedicated or a branch), when every provider refuses on an account limit; `single` today; Performance sizes only, never Standard sizes; a size that fits the free room of a shared server; no size, topology or read replica changes until it has moved to its own servers (see [Reserved capacity](/docs/plans-and-billing#reserved-capacity)) |
| Create timeout | Servers that have not joined within 15 minutes are deleted at no charge, and KeelDB places the database again |
| Plan changes to and from Dedicated | Applied in place today, while Dedicated databases run on KeelDB's shared servers. Once Dedicated servers open, a move from Free or Launch to Dedicated, or from Dedicated back to Launch, copies the data ([Scaling](/docs/scaling)): one move at a time, only while the database is `ready` or `sleeping` and has no branches, and not during a previous move's 24-hour rollback window |
| Size and topology changes on Dedicated servers | Not available yet once Dedicated servers open: create a new database and copy your data, or contact support |

## Connections

| Limit | Value |
| --- | --- |
| TLS | Required, version 1.2 or newer |
| Handshake | TLS and startup must complete within 15 seconds |
| Idle in transaction | Sessions idle inside an open transaction are terminated after 10 minutes (5 minutes on Free) |
| Statement timeout (Free) | A statement stops after 5 minutes by default. For a longer migration, raise it in that session: `SET statement_timeout = '30min'` |
| Failed logins | 20 failures from one IP in 10 minutes block that IP for 15 minutes |
| Reserved roles | `postgres`, `streaming_replica`, `cnpg_pooler_pgbouncer`, `keel_admin` and `root` can't log in |
| Prepared statements through the pooler | Protocol-level only, `max_prepared_statements = 200` |

## SQL editor, query API and MCP `run_sql`

| Limit | Value |
| --- | --- |
| Statement timeout | 30 seconds |
| Rows per result | 500 |
| Characters per cell | 2,000 |
| Query text | 200 KB |

## API and MCP

| Limit | Value |
| --- | --- |
| REST API rate limit | 120 requests per minute per API key, bursts of 60 |
| MCP rate limit | 120 requests per minute per API key, bursts of 60 (separate budget) |
| Active API keys | 25 per organization |
| API key name | 2 to 60 characters |
| Backups listed | 100 most recent |

## Organizations and accounts

| Limit | Value |
| --- | --- |
| Pending invitations | 50 per organization |
| Invitation lifetime | 7 days |
| Invitable roles | Admin, developer, billing (only owners can grant owner) |
| Organization name | 2 to 60 characters |
| Account password | 10 to 128 characters |
| Session lifetime | 14 days of inactivity |

## Data retention

| Data | Kept for |
| --- | --- |
| Storage, connection and transaction metrics | 35 days, one point every 5 minutes |
| CPU, memory and cache metrics | 8 days of one-minute points, 90 days of hourly points |
| Audit log | 400 days |
| Finished operations (jobs) | 90 days |
| Backups | The database's restore window, and at least 7 days on Launch and Dedicated (1 day on Free) |
| Backups of a deleted database | 7 days |
| Snapshots | Until you delete them or their database (see [Snapshots](/docs/backups-and-restore#snapshots)) |
| PostgreSQL logs | The plan's log window (1 day on Free, 3 on Launch, 14 on Dedicated); copies in the encrypted backups of KeelDB's own database go with those backups, within 40 days |
