# Project sandboxes

Create a [sandbox](/docs/sandboxes.md) in Studio, an isolated machine kept with the project, and run commands in its shell.

## Before you start

You need a project. See [Create a project](/docs/projects/create-project.md).

## Open a sandbox shell

**Studio**

1. In your project, open **Runtime** > **Sandboxes**.
2. Click **Create sandbox**.
3. Under **Sharing**, pick **Only me**.
4. Click **Create sandbox**.
5. Wait until the sandbox reads **Running**, which can take a minute or two.
6. Click **Shell**.
7. Run `node --version`. You should now see the shell print a Node version.

## Sharing and cleanup

| Sharing          | Who can use it                      |
| ---------------- | ----------------------------------- |
| **Only me**      | You, who created it                 |
| **With my team** | Everyone with access to the project |

| Cleanup                 | The sandbox stops                                  |
| ----------------------- | -------------------------------------------------- |
| Stop after idle timeout | When it has been idle for a while                  |
| Stop after 4 hours      | After 4 hours (up to 24 from the API)              |
| Always on               | Never, until you delete it (**With my team** only) |

Its files are temporary: they can go when it restarts or stops, unless it has a persistent workspace.

The project's owner is billed for every sandbox in it.

## With MCP

`my-project` is your project's reference: its slug or its ID (`veryfront__list_projects`).

1. Call `veryfront__create_sandbox` with `"access_scope": "private"` (Studio's **Only me**; `"project"` is **With my team**) and `"project_reference": "my-project"`.
2. Call `veryfront__get_sandbox` with the returned `id` as `sandbox_id`. Call it again until `status` is `running`, which can take a minute or two: a command sent before that answers "An unexpected error occurred".
3. Call `veryfront__run_sandbox_command` with the same `sandbox_id` and `"command": "node --version"`. It worked when `stdout` is a Node version, such as `v24.22.2`.
4. Call `veryfront__delete_sandbox` with the same `sandbox_id` and `"confirm": true`.

## Next steps

* [Run code](/docs/sandboxes/run-code.md)
* [Learn how sandboxes work](/docs/sandboxes.md)
