# CodeSandbox (`codesandbox`)

Firecracker microVMs forked from templates in seconds, with memory snapshots (CodeSandbox by Together).

Built from CodeSandbox's public docs and our own checks. CodeSandbox hasn't reviewed it.
Page: https://sandboxplease.com/sandboxes/codesandbox

## At a glance

- Slug: `codesandbox/standard`
- Price (standard, 2 vCPU, 4 GB): $0.149/hr
- Access: BYOK only: runs on your own CodeSandbox key, billed by CodeSandbox at its list price
- Cold start: p50 — (3 probes, last 30 days); p95 — (3 probes, last 30 days). Create to a sandbox ready to exec on the default image, from real creates on our account and our probe, which starts a small sandbox after 15 minutes without a real create and at least hourly. Shown once there are 5 samples in 30 days.
- Uptime, 30 days: 3.41%. Successful creates per day on our account, real ones and probes, leaving out failures our own account causes, such as its plan limits or funds.
- Max lifetime: 1 day
- Isolation: microVM; regions: EU, US
- Daily end-to-end check: its latest run did not pass

## Sizes

| Size | Slug | vCPU | Memory | $/hr | Notes |
|---|---|---|---|---|---|
| small | `codesandbox/small` | 1 | 2 GB | $0.0744/hr |  |
| standard | `codesandbox/standard` | 2 | 4 GB | $0.149/hr |  |
| large | `codesandbox/large` | 8 | 16 GB | $0.595/hr |  |

Usage is billed per started minute at CodeSandbox's list price, with no markup. Each size's vCPU and memory are what a sandbox of that size really gets, measured in a live sandbox.

## Benchmarks (standard, From Europe, runner in Belgium (Google Cloud europe-west1))

Not benchmarked yet: no run in the last 30 days.

## Uptime, last 30 days

3.41% overall. What we observe on our account, not CodeSandbox's overall availability.

- 2026-11-23: 33.33% of 9 creates; 64 failures from our own account left out
- 2026-11-24: 0.00% of 79 creates; 1 failures from our own account left out

## Network

- Internet by default: not measured yet
- Lockdown: no, `network: "deny-all"`
- Allowlist: no, `network: { allow: ["pypi.org"] }`

## Capabilities

Each fact with its source: a live check in a real sandbox, the provider's docs, or the provider itself. Route only to sandboxes that have what you need with `provider.require`.

### Lifecycle

- Pause and resume (`pause`): yes. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `POST /v1/sandboxes/{id}/pause, then /resume`
- Pause keeps memory (`pause_keeps_memory`): yes. Clean boot if memory snapshot unavailable (archived). Source: Provider docs, https://codesandbox.io/docs/sdk/resume, 2026-11-24. Use: `POST /v1/sandboxes/{id}/pause`
- Fork (`fork`): no. Live fork of running sandbox limited to 5. The provider has it; SandboxPlease does not route to it yet. Source: Provider docs, https://codesandbox.io/docs/sdk/create, 2026-11-24. Use: `POST /v1/sandboxes/{id}/snapshot, then POST /v1/sandboxes with from_snapshot and count`
- Snapshots (`snapshot`): no. Hibernate, then fork new sandboxes from it. The provider has it; SandboxPlease does not route to it yet. Source: Provider docs, https://codesandbox.io/docs/sdk/create, 2026-11-24. Use: `POST /v1/sandboxes/{id}/snapshot, then POST /v1/sandboxes with from_snapshot and count`
- Max lifetime (`max_lifetime_s`): 1 day. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `timeout`
- Idle auto-stop (`idle_auto_stop`): yes. Hibernation timeout 1 min to 24 h. Source: Provider docs, https://codesandbox.io/docs/sdk/sandboxes, 2026-11-24. Use: `idle_timeout`
- Checkpoint and restore (`checkpoint`): unknown
- Extend a running sandbox (`extend_timeout`): unknown. No deadline; hibernation timeout updatable

### Compute

- Max vCPU (`vcpu`): 8 vCPU. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `size`
- Max memory (`memory_gb`): 16 GB. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `size`
- Disk (`disk_gb`): 20 GB. Per VM, more on demand. Source: Provider docs, https://codesandbox.io/pricing, 2026-11-24
- Operating system (`os`): Linux. Firecracker VM. Source: Provider docs, https://codesandbox.io/docs/sdk/sandboxes, 2026-11-24
- Docker inside (`docker`): yes. Docker Compose services in templates. Source: Provider docs, https://codesandbox.io/docs/sdk/templates, 2026-11-24
- GPU (`gpu`): unknown
- Max GPUs (`gpu_count`): unknown
- Max GPU memory (`gpu_vram_gb`): unknown
- CPU architecture (`arch`): unknown
- Root access (`root`): unknown
- Nested virtualization (`nested_virtualization`): unknown

### Images

- Custom image (`custom_image`): yes. .codesandbox/Dockerfile, SDK 2.3.0+. Source: Provider docs, https://codesandbox.io/docs/sdk/templates, 2026-11-24. Use: `template`
- Saved templates (`templates`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/templates, 2026-11-24. Use: `template`
- sandboxplease/base (`base_image`): no. Source: Provider docs, https://sandboxplease.com/docs/base-image, 2026-11-24. Use: `template: "sandboxplease/base" (the default)`
- Prebuilt languages (`languages`): unknown. Universal template: 'almost all languages', not enumerated

### Data & secrets

- Persistent volumes (`persistent_volumes`): yes. /project/workspace is persisted across hibernation and shutdown; not a separate mountable volume. Source: Provider docs, https://codesandbox.io/docs/sdk/filesystem, 2026-11-24. Use: `provider_options (on your own provider key)`
- Git helpers (`git_helpers`): yes. Git credentials per session and create a sandbox from a git repository; workspace is git-backed. Source: Provider docs, https://codesandbox.io/blog/codesandbox-sdk, 2026-11-24
- Max volume size (`volume_max_gb`): unknown
- Secret store (`secret_store`): unknown
- Max file upload (`max_upload_mb`): unknown

### Network

- Block all egress (`egress_deny_all`): no. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `network: "deny-all"`
- Egress allowlist (`egress_allowlist`): no. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `network: { allow: ["pypi.org"] }`
- Public ports (`ports`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/hosts, 2026-11-24. Use: `GET /v1/sandboxes/{id}/ports/{port}`
- Private preview URLs (`inbound_auth`): yes. Host tokens for private sandboxes. Source: Provider docs, https://codesandbox.io/docs/sdk/hosts, 2026-11-24
- Custom domains (`custom_domains`): no. No native custom domains; docs show proxying csb.app hosts through your own server. Source: Provider docs, https://codesandbox.io/docs/sdk/sandbox-hosts, 2026-11-24
- Internet by default (`internet`): unknown
- Static egress IP (`static_ip`): unknown
- Private networking (`private_networking`): unknown
- IPv6 (`ipv6`): unknown

### Interaction

- Streaming output (`streaming_exec`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/commands, 2026-11-24. Use: `POST /v1/sandboxes/{id}/exec with stream: true`
- Terminal (PTY) (`pty`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/terminals, 2026-11-24
- Background processes (`background_processes`): yes. commands.runBackground. Source: Provider docs, https://codesandbox.io/docs/sdk/commands, 2026-11-24
- File watching (`file_watch`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/filesystem, 2026-11-24
- Code interpreter (`code_interpreter`): yes. SDK exposes Terminals, Commands and Interpreters; use cases list code interpretation. Source: Provider docs, https://codesandbox.io/blog/codesandbox-sdk, 2026-11-24
- Mobile devices (`mobile_devices`): no. Source: Provider docs, https://sandboxplease.com/docs/mobile-devices, 2026-11-24. Use: `devices`
- SSH (`ssh`): unknown
- Desktop (computer use) (`desktop`): unknown
- Browser (`browser`): unknown

### Isolation & trust

- Isolation (`isolation`): microVM. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24
- Regions (`regions`): EU, US. Source: Provider docs, https://codesandbox.io/sdk, 2026-11-24. Use: `provider.region`
- SOC 2 (`soc2`): yes. Source: Provider docs, https://codesandbox.io/docs/sdk/faq, 2026-11-24
- DPA (`dpa`): yes. DPA is Annex 1 of the terms. Source: Provider docs, https://codesandbox.io/legal/terms, 2026-11-24
- Self-hosted (`self_hosted`): no. FAQ: 'No, we do not offer self hosting at this time.'. Source: Provider docs, https://codesandbox.io/docs/sdk/faq, 2026-11-24
- Data centers (`locations`): unknown. Region derived from ipcountry at create
- EU data residency (`eu_data_residency`): unknown
- ISO 27001 (`iso27001`): unknown
- HIPAA (`hipaa`): unknown
- Data retention (`data_retention_days`): unknown

### Limits

- Concurrent sandboxes (`concurrency`): 250 sandboxes. Scale plan; same page's example says 100; free: 10. Source: Provider docs, https://codesandbox.io/docs/sdk/pricing, 2026-11-24
- Create rate (`create_rate`): unknown. Hourly creation limits by plan, numbers not published
- Max command time (`max_exec_timeout_s`): unknown

### Ops

- Resource metrics (`metrics`): unknown
- Logs (`logs`): unknown
- Lifecycle events (`webhooks`): unknown
- Live logs (`log_streaming`): unknown
- Uptime SLA (`uptime_sla`): unknown
- Support (`support`): unknown

### Pricing

- Billing granularity (`billing_granularity`): Per minute. 'if a VM runs for 3 minutes and 25 seconds, we bill the equivalent of 4 minutes'. Source: Provider docs, https://codesandbox.io/docs/sdk/pricing, 2026-11-24
- Free tier (`free_tier`): yes. A free Build plan exists (10 concurrent VMs). The amount of free VM credits on it was not confirmed. Source: Provider docs, https://codesandbox.io/docs/sdk/pricing, 2026-11-24
- Minimum billed time (`billing_minimum_s`): unknown
- Storage price (`storage_price`): unknown
- Egress price (`egress_price`): unknown
- Spot capacity (`spot`): unknown

## API

Start a sandbox; the key is read from `$SANDBOXPLEASE_API_KEY`:

```bash
curl https://api.sandboxplease.com/v1/sandboxes \
  -H "Authorization: Bearer $SANDBOXPLEASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"sandbox": "codesandbox/standard"}'
```
