# Limits and billing Each limit, what happens at it and how to change it. Rates are on [Pricing](https://fdtn.dev/docs/pricing.md). ## All limits | Limit | Start value | What happens at the limit | How to change | |---|---|---|---| | Running sandboxes | 20 at once, CI builds included | Creates wait in the queue; resume and fork get `429` | Email [support@fdtn.dev](mailto:support@fdtn.dev) | | Queue wait | 30 minutes | `503` | Fixed | | Sandbox lifetime | 5 minutes | The sandbox stops | Up to 24 hours | | Sandbox spending limit | $50 a month | New starts stop; running sandboxes pause | Billing page, up to $1,000 | | Builds spending limit | $50 a month | New CI builds stop; running ones finish | Billing page, up to $1,000 | | Paused sandboxes | 72 hours, 100 GiB of memory | Deleted after 72 hours; `429` over 100 GiB | Fixed | | Credit | Prepaid; $20 welcome credit for a personal workspace | At $0, starts get `403` and running sandboxes pause | Buy credit | ## Running sandboxes A workspace runs up to 20 sandboxes at once. Running CI builds count in the same 20. Paused sandboxes do not count. - A create over the limit waits in the queue until a sandbox stops or pauses, for up to 30 minutes. - A fork must ask for fewer copies than the limit, because the sandbox you fork keeps running. - A resume and a fork do not wait. When it cannot start, it fails at once with `429`: `You are at your concurrency limit. Stop or pause a sandbox, then resume this one.` - To raise the limit, email [support@fdtn.dev](mailto:support@fdtn.dev). ## The queue A create waits for up to 30 minutes when no machine has room, or when the workspace runs 20 sandboxes. | Answer | Cause | Fix | |---|---|---| | `503 sandbox_capacity_unavailable` | No room after 30 minutes | Retry, or start fewer at once | | `429 sandbox_queue_full` | 200 creates already wait | Wait `Retry-After` seconds | For queued creates, set `request_timeout=1800` (Python) or `requestTimeoutMs: 1_800_000` (TypeScript). The SDK default is 60 seconds. ## Sandbox lifetime Default 5 minutes, maximum 24 hours. Above that: `400 timeout cannot be greater than 86400 seconds.` [Lifecycle](https://fdtn.dev/docs/lifecycle.md#lifetime) ## Spending limits Each workspace has two monthly limits. Both start at $50, go up to $1,000, and reset at the start of each UTC month. | | Sandbox limit | Builds limit | |---|---|---| | Counts | Sandbox run time | CI builds | | At the limit | New starts, resumes and template builds stop. Running sandboxes pause. | New CI builds stop. Running ones finish. | Paused sandboxes keep memory and files. A start at the limit gets `403`: `You have reached your sandbox monthly spend cap of $50.00. Contact support to raise it.` 1. Open **Billing** > **Limits this month** (owners and admins). 2. Set the sandbox limit, the builds limit, or both. Above $1,000, contact support. 3. Optional: set an **Alert** to get an email at that spend. ``` # How long $50 lasts: 20 sandboxes of 2 vCPU, 4 GiB, running all the time 1 sandbox: 2 × $0.018 + 4 × $0.006 = $0.060 per hour 20 sandboxes: 20 × $0.060 = $1.20 per hour $50 ÷ $1.20 per hour = about 42 hours, or 1.7 days ``` ## Paused sandboxes - Free for 72 hours after the last pause; then we delete it. Each resume restarts the 72 hours. - Paused sandboxes and snapshots hold up to 100 GiB of memory per workspace. Above that: `429 paused_storage_limit`. - A snapshot stays until you delete it. [Snapshots](https://fdtn.dev/docs/lifecycle.md#snapshots) ## Credit Use is prepaid. There is no monthly bill. - A personal workspace starts with a $20 welcome credit, with no card. - Buy more credit on **Billing**, $5 to $1,000 each time, on Stripe Checkout. Sandboxes and CI builds use the credit. - At $0, creates, resumes and new builds get `403`: `Your credit is spent. Buy credits on the Billing page to ...` Running sandboxes pause. They are not killed. You can still list, read and stop sandboxes. - We email owners and admins when the credit is low ($5 or less, or less than one day of your recent use) and when it is used up. Each email goes once until you buy credit. ``` # How far $20 goes with base (2 vCPU, 512 MiB) 2 × $0.018 + 0.5 × $0.006 = $0.039 per hour $20 ÷ $0.039 per hour = about 513 sandbox-hours ``` ## Payment problems - A failed or disputed payment stops creates: `A payment failed or is disputed. Open the Billing page to start sandboxes again.` - Crypto mining and port scans suspend a workspace: `This account is suspended. Contact support.` ## Next - [**Pricing**: Per-second rates and sizes.](https://fdtn.dev/docs/pricing.md) - [**Pause, resume and snapshots**: Keep a sandbox for later.](https://fdtn.dev/docs/lifecycle.md) - [**Troubleshooting**: Fix limit and billing errors.](https://fdtn.dev/docs/troubleshooting.md) Source: https://fdtn.dev/docs/limits/