CodeSandbox SDK

https://codesandbox.io/docs/sdk

CodeSandbox SDK is a programmable Firecracker-microVM sandbox product for running code on behalf of AI agents. Sandboxes are created from templates, can be cloned, snapshotted (RAM and filesystem), and hibernated between sessions. CodeSandbox was acquired by Together AI in December 2024 and the product is now sold as 'Together Code Sandbox' through Together AI's docs and pricing.

Pricing model Per VM credit at $0.01486/credit; subscription tiers Build (free + $100 one-time credit, 10 concurrent VMs), Pro ($150/mo, 24-h sessions), Scale ($170/mo + 1,100 credits/mo, 250 concurrent VMs), Enterprise (custom)
Pricing The headline compute price as the provider states it. Sorting ranks prices stated per vCPU over time, converted to hourly. Other pricing models sort after, unranked. $0.01486 per VM credit
Free while idle Whether a stopped, paused, or sleeping sandbox costs nothing. –
Elastic Resources flex with what the sandbox actually uses, and the bill follows: yes when the provider bills on active or observed use, no when capacity is reserved or allocated and billed while it runs. –
Memory snapshots Whether RAM state survives a pause and resume, not just disk. ✓
Wake on request Whether a stopped sandbox wakes automatically on inbound traffic. ✓
Start / resume Typical time from create or resume to running. Sorting ranks stated times, converted to seconds; claims with no figure sort after, unranked. 1-3 s to create from a template; 0.5-2 s to resume from a memory/disk snapshot, 5-20 s from a disk snapshot, 20-60 s from archive
Max runtime The longest a sandbox may run. Unlimited
Isolation The isolation technology between sandboxes. Firecracker microVM
GPUs Whether GPU instances are available for sandboxes. ✕
Docker Whether Docker containers can run inside the sandbox. ✓
SDKs TypeScript, JavaScript

✓ yes · ✕ no · – no cited public fact.

CodeSandbox's pricing page lists VM credits at $0.015 each, while the pricing FAQ and SDK pricing docs list $0.01486; this site uses the more specific figure.

Sources

Last verified 2026-10-05. Corrections land through the update log.