CodeSandbox Devboxes
CodeSandbox provides two development environments that are ideal for prototyping and rapid web development: Devboxes (which run in a virtual machine (VM)) and Sandboxes (which run using browser resources).
We generally recommend using Devboxes, which provide all the tooling needed for building prototypes. Sandboxes are mostly useful as a playground for basic front-end JavaScript projects.
Previously known as Cloud Sandboxes, Devboxes are a great way to work on any type of project, regardless of its language or size. Devboxes run VMs and leverage our memory snapshotting to spin up an environment in 1.5 seconds. They have built-in Docker support and include several valuable features, such as AI, collaborative Terminals, Tasks, and VS Code integration.
Devboxes run on VM credits. Check out the plans page to learn how these credits work.
What is a Devbox?
Unlike Sandboxes that run on your browser, Devboxes run on our VMs.
Devboxes are great for prototyping any type of project in any programming language. They can run both backend and front-end services. You can learn more about the editor and the unique functionalities of the cloud developer environment in repositories.
Like Sandboxes, Devboxes are free to use.
Devboxes run on VMs, which brings two features that make them great for prototyping:
- Fast cloning. You can fork Devbox within 2 seconds (opens in a new tab) and continue with an exact clone of the microVM. This way, you can quickly test multiple approaches to your prototype.
- Instant resume. When you connect to a Devbox, it will wake up within 1 second and continue with your running dev server. This way, you can quickly continue prototyping.
Devboxes and Repositories branches run on the same infrastructure and use the same editor. The main distinction is that Repositories have more features suited to full-scale development. Once you create a Repository from a Devbox you will have:
- Branching
- Git tooling
- Full integration with GitHub
To configure a Devbox, you can read more about tasks (opens in a new tab) and Docker (opens in a new tab).
Creating a Devbox
To create a new Devbox, you can clone a template from our "Create Devbox" (opens in a new tab) modal. When clicking on a template, we create a fork (a copy) of the template and open the newly created sandbox in our web editor.