Create a sandbox
rent_create_sandboxNeeds a rent.dev account: sign in when your client offers it, or call rent_signup first. Starts a Linux sandbox: this is how to get a VPS, server or VM to use on rent.dev. It holds its cost from your balance and is charged by the second while it runs. On rent.dev's own machines it is a Firecracker microVM; a partner's machine declares its own isolation, which may be a container. A sandbox ends at its timeout: timeout_s, default 300 seconds, at most 86400. At the timeout it stops, or pauses with auto_pause; rent_extend_sandbox moves the timeout and rent_terminate_sandbox ends it sooner. By default (active) it may run on a verified partner's machine; routing.partners: none keeps it on rent.dev's own machines and your own vendor keys. The operator of a partner machine can read what runs on it. Waits up to wait_s for placement and answers the sandbox; past that it answers an operation id (op_…) to poll with rent_get_operation, whose response is the sandbox. A short balance answers 402 insufficient_balance with a card pay link (valid 24 hours) and an x402 top-up URL. Arguments not listed here go to the REST route as they are, which refuses them by name.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "rent_create_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait_s | No | Seconds to wait for placement before answering with an operation instead. Default 30; 0 answers the operation at once. | |
| network | No | Egress allow and deny lists (CIDR, IP or `*.domain`), and port-URL access. | |
| profile | No | Expected duty, used for placement when there is no history. | |
| routing | No | Endpoint ids to consider besides own supply (a BYOK endpoint needs your stored credential), to avoid, a cold-start bound, and the partner nodes to consider. By default (`active`) a sandbox may run on a verified partner's machine; `partners: none` keeps it on rent.dev's own machines and your own vendor keys. The operator of a partner machine can read what runs on it. `all` adds nodes on probation. | |
| env_vars | No | Environment variables of every command in the sandbox. | |
| metadata | No | Your labels. Keys starting `rentdev_` are reserved and dropped. | |
| template | No | Template alias: your own or the public set (`base`, `code-interpreter-v1` for rent_run_code). Default `base`. | |
| timeout_s | No | Seconds until the sandbox stops (or pauses with auto_pause). Default 300, at most 86400; rent_extend_sandbox moves it. | |
| auto_pause | No | Pause instead of stopping at the timeout. | |
| auto_resume | No | Resume a paused sandbox when traffic arrives. | |
| allow_internet_access | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| done | Yes | True: `sandbox` is placed. False: poll `operation_id` with rent_get_operation. | |
| sandbox | Yes | ||
| operation | Yes | ||
| operation_id | Yes | `op_…`, when placement goes on after the answer. It stays readable once done. |