Start

Overview

Nanite gives each of your agents its own Linux machine, driven over a plain HTTP API.

Nanite runs sandboxes: small Linux machines, one per agent, that are ready in under a second and go to sleep when nothing uses them. You create them, run commands in them and move files in and out over HTTP, from any language.

What a sandbox is

  • Debian 13 on arm64, running as root, with curl, git and jq installed.
  • 2 vCPU, 2 GiB of memory and a 20 GiB disk.
  • A disk that stays. Packages you install and files you write are still there after the sandbox sleeps.
  • Outbound internet access, with secrets that the sandbox never sees.

Base URL

Every endpoint lives under one base URL and takes an API key in the Authorization header.

https://api.nanite.run/v1/sandboxes

Requests and responses are JSON unless a page says otherwise. Every response carries a Nanite-Request-Id header. Include it when you write to support.

How a sandbox lives

A sandbox is running while something uses it. After 30 seconds with no request, no command running, no CPU work and no network use, it stops and becomes warm. A warm sandbox may later go cold. Any request that needs the machine wakes it again, so you rarely have to think about it. See Sandboxes.

You pay for CPU and memory only while a sandbox runs, and for the disk it keeps while it sleeps. See Billing.

The API at a glance

Endpoint What it does
/v1/sandboxes Create, list, get, update and delete sandboxes
/v1/sandboxes/{name}/exec Run commands, over HTTP or a WebSocket
/v1/sandboxes/{name}/fs Read, write, list and watch files
/v1/sandboxes/{name}/checkpoint Save the disk and roll back to it
/v1/sandboxes/{name}/env Environment variables and secrets
/v1/sandboxes/{name}/proxy Reach a port inside the sandbox

Start with the Quickstart.