Repository navigation
Releases
Releases · jonyhy96/unkernel-sandbox
v0.2.0 — Native Zero-Privilege OCI Image Pull, Auto ENTRYPOINT/CMD & Live Logs
What's New in v0.2.0
Zero-Privilege Native OCI Image Pull (linux/arm64)
- Pull and boot standard OCI Registry v2 images (Docker Hub,
ghcr.io, ACR, Harbor, etc.) directly viaimage: "alpine:3.20",image: "python:3.12-alpine", or{ oci: "ghcr.io/org/app:v1", auth: { token } }— no Docker Daemon, no root, no privileged mode. - Parallel layer downloads, OCI whiteout (
.wh.*,.wh..wh..opq) handling, automatic/usr/local/sbin/kw-initbootstrap injection, fast ZSTD EROFS packing (mkfs.erofs -L kwroot --all-root -zzstd,level=1withmke2fsfallback), and digest-based disk caching + tag caching. - Rejects
amd64-only images cleanly with HTTP400 UNSUPPORTED_IMAGE_ARCH. - Production
Dockerfilenow includeserofs-utilsande2fsprogsout-of-the-box.
Automatic OCI ENTRYPOINT / CMD Execution & Live /logs
- Automatically launches the OCI image's
ENTRYPOINT+CMD(or caller-providedentrypoint/cmd/env/cwd/useroverrides following Kubernetes & OpenSandbox semantics; passrunEntrypoint: falseto disable) while keepingkwbox tty serveactive for concurrentexec,files, WebSocket PTY, andAF_VSOCK/preview/:port/*. - Added
GET /v1/sandboxes/:id/logs(JSON or real-time SSE via?follow=true/Accept: text/event-stream) andsandbox.logs()in the JS/TS SDK.
Playground & Reliability Improvements
- Web Playground Image input now supports both built-in images and arbitrary
linux/arm64OCI image references. - Fixed Node 20/22 timer ref handling in
withTimeoutand hardened CI multi-version compatibility (33/33 tests passing on Node 26 live Linux 7.x).
Container Image (Multi-Arch linux/amd64, linux/arm64)
docker pull ghcr.io/jonyhy96/unkernel-sandbox:0.2.0
docker pull ghcr.io/jonyhy96/unkernel-sandbox:latestv0.1.0 — Zero-KVM WebAssembly Linux Sandbox for AI Agents
Highlights
Initial open-source release of unkernel-sandbox — a Zero-KVM WebAssembly Linux 7.x sandbox platform for AI Agents powered by pithings/unkernel.
What's Included
- Zero-KVM Dedicated Linux 7.x Kernels: Runs unmodified ARM64 Alpine / Debian / custom rootfs inside non-privileged Kubernetes Pods (
runAsNonRoot,readOnlyRootFilesystem,drop: [ALL], ~20 MiB RSS per sandbox). - OpenSandbox-Aligned Control Plane & JS/TS SDK:
create,get,list,exec,files,pause/resume,preview,kill, TTL reaper, and WarmPool (~173 ms cold start, ~8 ms WarmPool, 26 ms pause / 51 ms resume). - Production Streaming Exec (SSE) & Full-Duplex WebSocket PTY:
- Real-time
POST /v1/sandboxes/:id/commandsSSE streaming (init/stdout/stderr/exit, timeoutSIGKILL, disconnect cleanup). - Native Linux
/dev/ptsWebSocket PTY (GET /v1/sandboxes/:id/pty) with RFC 6455 framing,SIGWINCHresize,detachable/sessionId, CLIusbx shell <id>, and local-hosted@xterm/xterm+FitAddonWeb Playground.
- Real-time
- SSRF-Guarded Guest Internet & Zero-Trust
SandboxMesh: Defaulteth0internet protected by NIC-level SSRF + TLS SNI/HTTP Host policy (policyBackend), coexisting with private*.meshAF_VSOCKpeer networking. - Kubernetes CSI S3 / JuiceFS
9pMounts: Tenant-confinedMountGuard(--s3-fuse-dir,--s3-fuse-rw, safe auto-created tenant subdirectories, per-mountreadOnlyoverride, anti-traversal & symlink escape protection) plus userspaceS3VirtualFs. - Native MCP Server:
usbx mcp(stdio) andPOST /mcp(HTTP JSON-RPC 2.0) ready for Claude Code, Cursor, and Codex.
Container Image
docker pull ghcr.io/jonyhy96/unkernel-sandbox:0.1.0