# BytePlus AgentKit Sandbox

Create the 2x4 sandbox template and the IAM user access key that let Sandcovery run AgentKit sandboxes in your own BytePlus account.

Sandcovery runs each sandbox as a session of an AgentKit sandbox template in your BytePlus account, in `ap-southeast-1` (Johor), the one region AgentKit runs in.

## What runs

| Option           | Support                         |
| ---------------- | ------------------------------- |
| Size             | `2x4` only                      |
| Egress           | `allow_all` only                |
| Lifetime         | Up to 24 hours                  |
| Pause and resume | No                              |
| Command output   | Returned when the command exits |
| Region           | `ap-southeast-1`                |

A sandbox template fixes the size of every session it starts, so Sandcovery routes BytePlus only `2x4` requests and checks before each create that your template runs 2 vCPU and 4 GiB.

Environment variables set at create are available. Files, snapshots, port previews, custom images, disk sizes, idle timeouts, and GPUs are not available on this provider.

## Create the sandbox template

In the [AgentKit console](https://console.byteplus.com/agentkit), open **Sandbox Templates** in `ap-southeast-1` and create a template from the AIO Sandbox preset with an instance specification of 2 vCPU and 4 GiB. Copy its template ID, which starts with `t-`.

## Create the access key

In the [IAM console](https://console.byteplus.com/iam/identitymanage/user), create a custom policy with this document, create an IAM user with only that policy, and create an access key for that user. Never add your root account's keys. The policy allows only the seven AgentKit calls Sandcovery makes.

```json
{
  "Statement": [
    {
      "Effect": "Allow",
      "Action": [
        "agentkit:GetTool",
        "agentkit:CreateSession",
        "agentkit:GetSession",
        "agentkit:ListSessions",
        "agentkit:DeleteSession",
        "agentkit:AsyncExecCommand",
        "agentkit:ViewAsyncCommand"
      ],
      "Resource": ["*"]
    }
  ]
}
```

## Add the credential

In **Provider Credentials** in the [dashboard](/app/credentials), add these three fields for BytePlus AgentKit Sandbox:

- IAM user Access Key ID
- IAM user Secret Access Key
- Sandbox template ID

## Costs

BytePlus bills each running sandbox to your BytePlus account per second, at $0.00000975 per vCPU-second and $0.00000225 per GB-second, and it counts a 4 GiB template as 4 GB, so a `2x4` sandbox costs about $0.103 an hour. BytePlus requires an available account balance above $5 before you buy AgentKit resources.
