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. | 500 ms (P95) |
| Max runtime The longest a sandbox may run. | 24 h on Pro tier; no documented hard cap for Scale/Enterprise |
| 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.
Product is mid-rebrand following Together AI's December 2024 acquisition of CodeSandbox (now sold as 'Together Code Sandbox'); whether hibernated sandboxes incur any VM-credit charge is not explicitly stated in public docs.
Sources
- https://docs.together.ai/docs/together-code-sandbox
- https://www.together.ai/blog/code-sandbox-code-interpreter
- https://codesandbox.io/docs/sdk
- https://www.npmjs.com/package/%40codesandbox/sdk
- https://github.com/codesandbox/codesandbox-sdk/issues/59
- https://www.together.ai/sandbox
- https://news.ycombinator.com/item?id=42400274
- https://rywalker.com/research/codesandbox-sdk
- https://apis.io/plans/codesandbox/codesandbox-plans-pricing/
- https://codesandbox.io/docs/sdk/manage-sandboxes
Last verified 2026-07-28. Corrections land through the update log.