InstantNode docs
Servers / 09

Sandboxes

Small Linux containers you start and delete from code, billed per second while they run.

Sandboxes are in a closed beta. Only accounts we have unlocked can use them; every other account gets 403 sandboxes_not_enabled. Ask for access in a ticket.

What a sandbox is

A sandbox is an unprivileged Linux container (LXC) that runs for as long as you need it: seconds for a test, hours for a job, days for a tool. You create it with one API call or in the panel under Sandboxes, log in with your SSH key as root and delete it when you are done. You pay for the seconds it ran, nothing for the time it is stopped.

Typical uses: running untrusted or generated code, CI jobs, short-lived workers behind an AI agent or router, throwaway test machines.

Sizes and prices

SizevCPURAMDiskPer secondPer hour
5121 shared512 MB5 GB€0.00000078€0.0028
10241 shared1 GB5 GB€0.0000010€0.0037
20482 shared2 GB5 GB€0.0000020€0.0074
  • Per second, with a minimum of 60 seconds once a sandbox has run. A sandbox that never started is free.
  • Stopped costs nothing. Only run time counts.
  • The exact hourly rates are in sizes[].perHour of GET /api/pat/v1/sandboxes; the table rounds to two significant digits.
  • Up to 20 sandboxes at a time per account.

Operating systems

Pass the id as template. Without one you get Debian 13.

Template idSystem
debian-13Debian 13
debian-12Debian 12
ubuntu-24.04Ubuntu 24.04
ubuntu-22.04Ubuntu 22.04
alpine-3.24Alpine 3.24
almalinux-10AlmaLinux 10
rockylinux-10Rocky Linux 10
fedora-44Fedora 44
opensuse-16.0openSUSE Leap 16.0

Login is by SSH key only, as root. There is no password. The list in templates of the list call is always the current one.

Network and limits

Details
IPv6A public /64 per sandbox; the sandbox has ::1 in it and is reachable from the internet on that address
IPv4Outbound only, through NAT on a shared address. No inbound IPv4.
Bandwidth100 Mbit/s per network interface
ConnectionsOutbound IPv4: at most 2048 open and 100 new connections per second per sandbox
Port 25Blocked, no mail sending
Containers insideNo nesting, so Docker and similar tools do not run in a sandbox
Your own machine needs IPv6 to reach a sandbox over SSH. Without IPv6 at home, connect from a server that has it.

Lifecycle and billing

  1. Create. The sandbox is created and started; billing starts when it runs. You need at least €1 of balance that is not already reserved by other sandboxes.
  2. Run. What a sandbox has cost so far is reserved on your balance. You can see it as Reserved and it cannot be spent on anything else.
  3. Stop. A stopped sandbox keeps its disk and costs nothing. Start it again whenever you like, within 24 hours.
  4. Delete. The whole run time is charged in one booking and the sandbox is removed with its disk.
  • 24 hours after a stop a sandbox is deleted and charged automatically.
  • TTL: give ttl in seconds (60 s to 30 days) when you create it, and the sandbox is deleted and charged when the time is up, running or stopped.
  • Running out of money: when your unreserved balance would last less than 30 more seconds, your running sandboxes are stopped, not deleted, and you get a notification. Top up and start them again.
  • Powering a sandbox off from inside (poweroff) stops billing the same way.
  • A create that fails is never charged. It shows as failed in the list for 24 hours.

API

Use a personal access token from Profile → API (see API tokens) as Authorization: Bearer inpat_.... The base URL is https://instantnode.eu/api/pat/v1/sandboxes. Every response is JSON with an ok field; errors come with an error code. The full schema is in the API reference under Sandboxes.

MethodPathDoes
GET/v1/sandboxesSizes, prices, templates, balance, reserved, runway and your sandboxes
POST/v1/sandboxesCreate and start a sandbox
GET/v1/sandboxes/{id}One sandbox with run time and cost so far
POST/v1/sandboxes/{id}/startStart a stopped sandbox
POST/v1/sandboxes/{id}/stopStop it; billing pauses
DELETE/v1/sandboxes/{id}Charge the run time and remove it

Create

size and sshKey are required, template, name (lower case letters, digits and dashes) and ttl are optional. The call returns once the sandbox runs, usually within a minute, so give your client a timeout of a few minutes.

export INN_TOKEN=inpat_...
curl -s https://instantnode.eu/api/pat/v1/sandboxes \
  -H "Authorization: Bearer $INN_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"size": 1024, "template": "debian-13", "name": "build-1", "ttl": 3600,
       "sshKey": "ssh-ed25519 AAAAC3Nza... you@laptop"}'
{
  "ok": true,
  "sandbox": {
    "id": "5b0e7c1a-3f2d-4a8e-9c61-2d7f4b9e1a03",
    "name": "build-1",
    "status": "running",
    "size": 1024, "cpu": 1, "ramMb": 1024, "diskGb": 5,
    "template": "debian-13",
    "ipv6": "2a14:7581:9f00:f012::1",
    "ssh": "ssh root@2a14:7581:9f00:f012::1",
    "perHour": 0.00368333,
    "seconds": 0, "cost": 0,
    "ttlAt": "2026-11-24T15:02:11.000Z",
    "deleteAt": null
  }
}

Then log in with ssh root@<ipv6>.

List and get

curl -s https://instantnode.eu/api/pat/v1/sandboxes -H "Authorization: Bearer $INN_TOKEN"
SBX=5b0e7c1a-3f2d-4a8e-9c61-2d7f4b9e1a03
curl -s https://instantnode.eu/api/pat/v1/sandboxes/$SBX \
  -H "Authorization: Bearer $INN_TOKEN"

The list also returns balance, reserved, available, burnPerHour and runwaySeconds, the time until your running sandboxes would be stopped for lack of balance.

Stop and start

curl -s -X POST https://instantnode.eu/api/pat/v1/sandboxes/$SBX/stop \
  -H "Authorization: Bearer $INN_TOKEN"
curl -s -X POST https://instantnode.eu/api/pat/v1/sandboxes/$SBX/start \
  -H "Authorization: Bearer $INN_TOKEN"

A stopped sandbox has deleteAt set, 24 hours after the stop. Stopping a stopped sandbox or starting a running one just returns it.

Delete

curl -s -X DELETE https://instantnode.eu/api/pat/v1/sandboxes/$SBX \
  -H "Authorization: Bearer $INN_TOKEN"
{
  "ok": true,
  "id": "5b0e7c1a-3f2d-4a8e-9c61-2d7f4b9e1a03",
  "seconds": 754,
  "charged": 0.00077148
}

seconds is the billed run time, charged the amount taken from your balance in euros.

Errors

HTTPerrorMeaning
400invalid_size, invalid_template, invalid_ssh_key, invalid_ttl, invalid_nameCheck the request body
402insufficient_balanceLess than €1 unreserved balance (minBalance)
403sandboxes_not_enabledYour account has no beta access
403account_suspendedThe account is suspended
404sandbox_not_foundWrong id, or already deleted
409sandbox_limitYou already have your maximum (limit)
409sandbox_busyStill being created or deleted, try again shortly
429rate_limitedMore than 60 creates in 10 minutes
502sandbox_create_failed, sandbox_action_failedCreating, starting or stopping failed on our side; nothing is charged for a failed create
503no_capacity, sandboxes_unavailableNo room right now, try again later
Can I keep a sandbox for weeks?

Yes, as long as it runs and your balance covers it. A stopped sandbox is deleted after 24 hours, so stop only what you will start again soon. For a server that runs all month a VPS is cheaper.

Can I get a public IPv4 address?

No. Sandboxes reach IPv4 services through NAT, but they are reachable from outside over IPv6 only.

Is there a backup or snapshot?

No. Treat a sandbox as disposable and keep anything you need elsewhere.

These docs describe the panel as it works today. Something here does not match what you see? Tell us in a ticket.