# Unsandbox

Add the Unsandbox key pair that lets Sandcovery run Unsandbox sessions on your own Unsandbox credit.

Sandcovery runs each sandbox as an Unsandbox session, a container with a bash shell, through the sessions API in [Unsandbox's docs](https://unsandbox.com/docs).

## What runs

| Option                | Support                                    |
| --------------------- | ------------------------------------------ |
| Size                  | 1 to 8 vCPU, with 2 GiB of memory per vCPU |
| Egress                | `allow_all` or `deny_all`                  |
| Lifetime              | Until the sandbox's TTL                    |
| Pause and resume      | Yes                                        |
| Environment variables | Per command                                |

Snapshots, port previews, a custom image, idle timeouts, disk sizes, regions, GPUs, egress allowlists, and output streamed while a command runs are not available on this provider. A streamed command answers its output when it ends. A create that asks for any of them routes to another provider. `allow_all` runs Unsandbox's semitrusted network mode, which reaches the internet through Unsandbox's egress proxy, and `deny_all` runs its zerotrust mode, which has no network.

## Buy credit

Unsandbox's free key runs only one-off executions and no sessions, so your key needs prepaid credit from [Unsandbox's pricing page](https://unsandbox.com/pricing), at $0.09 per slot-hour, billed by the second. Each vCPU of a running session takes one slot of 1 vCPU and 2 GiB, so a `2x4` sandbox costs $0.18 an hour, and a key runs up to 8 slots at once. Sandcovery sends one request for each command and for each 64 KiB written or 256 KiB read, and a request Unsandbox refuses for concurrency or rate routes to another provider.

## Add the credential

Unsandbox keys carry no scopes, so a key pair reaches every session and service it holds. Use a key pair for Sandcovery alone, and add its public key and secret key as the Unsandbox credential in **Provider Credentials** in the [dashboard](/app/credentials). To find a sandbox whose create did not finish, Sandcovery runs a short `cat` command in each running session of that key, which is another reason to keep other work off it.
