# sandboxes

> Short-lived machines that run code for a few minutes and then disappear, with everything inside them.

## code that runs, then vanishes

Sandboxes are used by projects and agents to run code safely: tests, previews, untrusted scripts. Each one runs in its own virtual machine and is destroyed when it ends.

- **address**: sb-xxxx.00b5e2.run
- **lifetime**: minutes
- **isolation**: its own virtual machine
- **after it ends**: nothing is kept

## start, run, gone

1. **start.** A project or agent asks for a sandbox.
2. **run.** Code runs, a port can be exposed.
3. **gone.** It ends and everything is erased.

## every sandbox gets

- **HTTPS**: Every sandbox address gets a certificate on its own.
- **Its own box**: Each sandbox runs in its own micro virtual machine.
- **Closed network**: It can't reach other projects, and they can't reach it.
- **No secrets**: A sandbox never sees the variables of any project.
- **Time limit**: Every sandbox stops on its own when its time is up.
- **Nothing kept**: When it stops, its disk and memory are wiped.

## if something looks wrong

- **Abuse**: Report it with the address.
- **You started it**: Stop it from the CLI or the console.
- **It's gone**: That's how sandboxes work.

[Report this sandbox](https://forms.00b5e2.com/report)

## questions

### Can a sandbox reach my apps?

No. It has its own network and machine.

### How long does one last?

A few minutes by default.

### What is 00b5e2?

A private platform for sites, APIs, workers and databases. Invite only.
