# BlockRun Modal Sandbox

Set up the Base wallet that pays BlockRun for each Modal sandbox call Sandcovery makes for you.

BlockRun sells Modal sandboxes per call for USDC on Base through x402, with no BlockRun account or API key. Sandcovery pays each call from your wallet, so the credential is that wallet's private key.

- **Wallet**: a new Base wallet made for Sandcovery alone, holding only the USDC you plan to spend on BlockRun, since its private key can move everything the wallet holds.
- **Private key**: the wallet's 64-hex-digit private key, with or without `0x`.

Each call costs what [BlockRun's price list](https://blockrun.ai/docs/api-reference/modal-sandbox) gives it: $0.011 for a sandbox that lives up to 300 seconds, its whole lifetime at $0.25 an hour above that, paid at create with no refund on an early destroy, and $0.002 for each command, status, and destroy. A file read or listing is one command, and a write is one command per 24,000 bytes. Sandcovery signs a payment only for USDC on Base and only up to that price, and a wallet short of USDC fails as `quota`.

Sandcovery runs BlockRun sandboxes at `1x1` on BlockRun's Python 3.11 image, with commands of up to 55 seconds. They reach PyPI, Hugging Face, and GitHub over HTTPS and no other host, and BlockRun runs at most 5 sandboxes at once for each wallet.
