Teploy Sandboxesearly access · self-hosted

Isolated sandboxes,
on your own servers.

Run isolated ephemeral sandboxes on any server you already manage with Teploy. Powered by teploy-sandbox v0.1.0 (FSL-1.1-MIT) — one daemon bound to loopback, reached over SSH from the CLI or driven directly over HTTP.

$teploy sandbox host prod
Quickstart
teploy sandbox — prod · 127.0.0.1:7439 via SSHv0.1.0

$ teploy sandbox host prod

Installed the sandbox engine (teploy-sandbox v0.1.0) on prod and started it at 127.0.0.1:7439

$ teploy sandbox new --host prod --image alpine:3.20

Created 01JCV5ZK3Q7X9B2D4E6F8A0B1C on prod (alpine:3.20, expires 2026-11-27T14:30:00Z)

teploy sandbox exec 01JCV5ZK3Q7X9B2D4E6F8A0B1C --host prod -- <command>

$ teploy sandbox exec 01JCV5ZK3Q7X9B2D4E6F8A0B1C --host prod -- echo hello

hello

$ teploy sandbox stop 01JCV5ZK3Q7X9B2D4E6F8A0B1C --host prod

Stopped 01JCV5ZK3Q7X9B2D4E6F8A0B1C on prod (kept until 2026-12-11T14:00:00Z)

$ teploy sandbox resume 01JCV5ZK3Q7X9B2D4E6F8A0B1C --host prod --ttl 2h

Resumed 01JCV5ZK3Q7X9B2D4E6F8A0B1C on prod (running until 2026-11-27T16:00:00Z)

defaultsdocker
bind127.0.0.1:7439
networknone (default)
limits1 CPU · 1024 MiB · 256 pids
ttl30m default · 24h max
workdir/work (sh -c)
stop keep14 days (336h)

Ephemeral execution does not require handing your code to a hosted sandbox vendor. One daemon on your own box, listening only on loopback and reached over SSH — the same engine and HTTP contract that Ship uses for coding agents.

Self-hosted only.

Install on any Linux server with Docker and systemd. Hosted sandboxes on Teploy Cloud are not part of this.

No public port.

The engine binds 127.0.0.1:7439 only. The CLI forwards over SSH so the bearer token never leaves your SSH session.

Source-available (FSL-1.1-MIT).

Source-available under FSL-1.1-MIT (becomes MIT after two years). Static Linux amd64 and arm64 binaries with SHA-256 verification.
What it does

Isolated containers with a persistent lifecycle

Start from any Docker image, run commands, copy files in and out of /work, pause to disk, resume under the same ID, or fork a copy.

01

Any Docker image

Each sandbox starts a container with its own filesystem and network namespace. Commands run via sh -c in /work as the image's ship user when present, or root.

02

Default-deny egress

Network is none by default (loopback only). Opt into allowlist (HTTP proxy with built-in package registries and per-run egressAllow) or open.

03

Stop, resume, fork

stop commits the filesystem, frees the container, and retains the run for 14 days costing only disk. resume restores the same ULID; fork branches from running or stopped state.

04

Bounded by default

1 CPU, 1024 MiB RAM, 256 pids, and a 30-minute TTL (24 hours max) unless overridden. Pass --on-expire stop to preserve the filesystem instead of destroying at expiry.

05

CLI and HTTP API

Drive sandboxes over SSH with teploy sandbox (including --json output), or call the bearer-authenticated /v1 HTTP API directly for SSE execs, leases, snapshots, and warm repo caches.

06

Experimental VM driver

Cloud Hypervisor on KVM with ZFS volumes and teploy-guestd over vsock. Experimental and not installed by teploy sandbox host; memory snapshots are off by default.

Two interfaces

Use the CLI, or speak HTTP directly

teploy sandbox handles installation, SSH tunneling, token lookup, and --json scripting. If you are building an agent runner or control plane, call the /v1 wire contract directly.

# install pinned teploy-sandbox v0.1.0 on prod teploy sandbox host prod # create, run, copy, stop, resume, fork id=$(teploy sandbox new --host prod --image alpine:3.20 --json | jq -r .run.id) teploy sandbox exec "$id" --host prod -- echo hello teploy sandbox cp app.tar.gz "$id:app.tar.gz" --host prod teploy sandbox stop "$id" --host prod teploy sandbox resume "$id" --host prod --ttl 2h teploy sandbox fork "$id" --host prod teploy sandbox rm "$id" --host prod
# loopback HTTP with bearer token (every route except /health) T=$(cat /var/lib/teploy-sandbox/token) id=$(curl -s -H "Authorization: Bearer $T" \ -d '{"image":"alpine:3.20","network":"allowlist"}' \ http://127.0.0.1:7439/v1/runs | jq -r .id) # SSE stream: stdout, stderr, exit curl -N -H "Authorization: Bearer $T" \ -d '{"cmd":"uname -a"}' \ "http://127.0.0.1:7439/v1/runs/$id/exec"
Early access

What is ready, and what is experimental

The Docker driver and CLI workflow are ready to test on your own servers. The KVM VM driver, memory snapshots, off-host S3 storage, and access listener are experimental and off by default.

Engine releaseteploy-sandbox v0.1.0 (early access, source-available under FSL-1.1-MIT — becomes MIT after two years). Pinned and SHA-256 verified by teploy sandbox host.
Default driverDocker driver (--driver docker), installed as a systemd service listening on 127.0.0.1:7439 by teploy sandbox host.
VM driverExperimental (--driver vm: KVM, Cloud Hypervisor, ZFS, Landlock). Not installed by teploy sandbox host; requires manual host setup and --driver vm on new and fork.
Memory snapshotsExperimental, VM driver only, off by default (--vm-memory-snapshots). Disk remains the durable truth; same-host x86-64 only.
CLI vs engine APIThe CLI covers host, new, ls, exec, cp, stop, resume, fork, and rm. Recoverable execs, leases, explicit snapshots, warm repo caches, remote storage, and access ports are API-only in this release.
Teploy CloudHosted sandboxes on Teploy Cloud are not part of this — sandboxes run strictly on servers you own.

Run it on a server you own

Install teploy-sandbox v0.1.0 with one command, or inspect the engine source and wire contract on GitHub.