Level-up generative code tooling with fast, secure code sandboxes at scale
📌 About CodeSandbox.io CodeSandbox is a Together company that is in process of migrating all relevant products to the Together platform. In the coming months, all Code Sandbox features will be fully migrated into your Together account. Note that Together Code Sandbox is referred to as the SDK within the CodeSandbox.io
bootupType
. This value indicates how the Sandbox was started.
FORK: The Sandbox was created from a template. This happens when you call create
successfully.resume
and the Sandbox was already running.resume
and the Sandbox was hibernated.create
or resume
and the Sandbox was not running and was missing a snapshot. This can happen if the Sandbox was shut down, restarted, the snapshot was expired (old snapshot) or if something went wrong.
setupTasks
will run after the Sandbox has started, before any other tasks.
Now we are ready to deploy the template to our clusters, run:
onFocusChange
and by default it will reconnect when the page is visible.
connectToSandbox
promise is resolving you can also listen to initialization events to show a loading state:
VM size | Credits / hour | Cost / hour | CPU | RAM |
---|---|---|---|---|
Pico | 5 credits | $0.0743 | 2 cores | 1 GB |
Nano | 10 credits | $0.1486 | 2 cores | 4 GB |
Micro | 20 credits | $0.2972 | 4 cores | 8 GB |
Small | 40 credits | $0.5944 | 8 cores | 16 GB |
Medium | 80 credits | $1.1888 | 16 cores | 32 GB |
Large | 160 credits | $2.3776 | 32 cores | 64 GB |
XLarge | 320 credits | $4.7552 | 64 cores | 128 GB |