Skip to content
neatploy.
05 · SANDBOXES

Ephemeral Linux sandboxes
isolated with gVisor.

Launch short-lived containers inside any project environment using sandbox-base, sandbox-cuda, or a custom image. Built for AI coding agents, evaluations, and safe execution.

Programmatic execution inside your environment.

Unlike standalone code runners, Neatploy sandboxes live inside your project environment—so they can talk directly to postgres.internal or redis.internal without exposing databases publicly.

  • · Exec & Files API: Run commands, stream stdout/stderr, and read/write files by path.
  • · WebSocket PTY Shell: Interactive terminal access via browser or neatploy sandbox ssh.
  • · Explicit HTTPS ports: Zero ingress by default; open ports on demand for preview URLs.
  • · Checkpoint & fork: Snapshot and branch sandbox state on the same node.
  • · Clear boundary: Docker inside sandboxes is not supported; port 25 and mining pools blocked.
@neatploy/sdk · Sandboxes Idle timeout: 15m – 24h
import { Neatploy } from "@neatploy/sdk";

const dp = new Neatploy({ token: process.env.NEATPLOY_TOKEN });

const sb = await dp.sandboxes.create({
  project: "evals",
  environment: "staging",
  image: "sandbox-base",
  idleTimeoutMinutes: 30,
});

await sb.files.write("/workspace/run.sh", script);
const out = await sb.exec("bash /workspace/run.sh");
await sb.destroy();
GET STARTED

Plan less infrastructure.
Ship more software.

Start with $5 in monthly free credit on your first verified organisation. Connect a GitHub repo or add a database in minutes.

Runtime gVisor (runsc)
Free credit $5.00 / month
Managed backups Every 6h → R2
Traffic swap Zero-downtime