# Limits and pricing

Prices and plans live on one page, [kosa8.com/pricing](https://kosa8.com/pricing/), so they are never out of date here. This page lists the limits your code will meet.

## What a plan sets

Every plan includes a number of sandbox-hours a month (counted against a `2x4`; see [sizes](https://docs.kosa8.com/concepts/sizes/)), a number of sandboxes running at once, the largest size you can start, and how many persistent sandboxes, snapshots and forks you can hold. Browsers are billed by the hour on top. There is no free tier. The live numbers, as JSON, are at [`GET /v1/pricing`](https://api.kosa8.com/v1/pricing).

At a plan limit, kosa8 refuses with `402 plan_limit` and an `upgrade_url`; it never queues work silently or bills past it. You can also set your own monthly spending cap in Settings.

## API limits

| What | Limit |
|---|---|
| Buffered exec | 90 s (`timeout_s` up to 90) |
| Streamed or background exec | `timeout_s` up to 86,400 s (24 h) |
| Exec command | Up to 256 arguments, 8 KiB each; up to 128 `env` entries |
| Sandbox lifetime, `ttl_s` | 60 s to 90 days, or none |
| Sleep after idle, `sleep_after_s` | 0 (never) to 7 days |
| Checkpoints per sandbox | The newest 10 are kept |
| Fork | Up to 1,000 copies a call, made 100 at a time |
| Snapshots | Your plan's number, and at most 50 per organization |
| File upload through the API | 100 MB per request; bigger files go in parts or by direct link |
| Function code | 6 MiB; a call runs up to 90 s |
| One-call run | 6 MiB body, up to 16 output files (4 MiB together), up to 1 h |
| Capability tokens | Live up to 24 h (default 1 h) |
| Idempotency keys | Remembered 24 h |
| Region | `us-ash1` (Ashburn, Virginia) |

Rate limits answer `429 rate_limited` with `Retry-After`. See [errors and retries](https://docs.kosa8.com/errors/).

---
Source: https://docs.kosa8.com/limits/
