Changelog

Sandbox preview on Azure and Kubernetes

Sandbox preview now works on Azure and Kubernetes, next to AWS and local. A preview link carries an Alien capability in X-Alien-Preview-Capability, so your own Authorization header reaches the service unchanged, over HTTP and WebSocket:

const preview = await box.preview(sandboxId, 8080)
await fetch(preview.endpoint, { headers: preview.headers })
  • Azure: preview and jobs on agent images. A preview capability lasts at most 15 minutes. maxLifetimeSeconds and timeoutMs set a deadline, after which Alien deletes the sandbox. getOrCreate with an id returns one sandbox, even under concurrent calls.
  • Kubernetes: images whose USER is root run on amd64 nodes with "internet" or "none" egress. Preview is reachable from inside the cluster. A sandbox starts only after its network policy is proven in force.
  • Google Cloud: a disk above 10Gi, "internet" egress, and idle pause are refused when you build, not at run time. A template that exits at start fails at once with its cause. The agent port moved to 8971, so your workload can use 8080.

Read the docs →