# Apify AI Code Sandbox

Create the scoped Apify API token that lets Sandcovery run the AI Code Sandbox Actor in your own Apify account.

Sandcovery runs each sandbox as one run of the [AI Code Sandbox](https://apify.com/apify/ai-code-sandbox) Actor in your Apify account, which pays for the run's memory in compute units while it runs. Apify gives a run 1 CPU core for each 4 GiB of memory, so Sandcovery runs it at `1x4`, `2x8`, `4x16`, and `8x32`.

For Apify, add an API token from [API & Integrations](https://console.apify.com/settings/integrations) with **Limit token permissions** turned on, as Apify's [scoped tokens](https://docs.apify.com/platform/integrations/api#api-tokens-with-limited-permissions) describe:

- Give it the **Run** permission on the `apify/ai-code-sandbox` Actor alone.
- Turn on access to the default storages of the runs it starts, since Sandcovery reads each run's input to find the runs it made.
