Sandbox
@the-void-ia/void-box

Micro-VM runtime for agent workflows

Void-Box runs each agent stage in its own micro-VM, so one stage does not share a kernel or blast radius with the next. It wires in telemetry, snapshot/restore, and support for multiple model providers and tools. The repo includes the runtime, guest agent, example workflows, and scripts for building and running the system.

88 stars6 forksRustUpdated 9d ago
Who it's for

Builders who want their agent stages isolated, observable, and restartable.

What it delivers

You can run agent workflows with hard boundaries between stages and audit what each stage did.

What it does

Per-stage micro-VM isolation

Runs each workflow stage in its own KVM or Virtualization.framework micro-VM.

Snapshot and restore

Supports fast warm restore so you can resume agent work without cold-starting every run.

Provider-neutral runtime

Works with Claude, Codex, Ollama, LM Studio, OpenRouter, and Anthropic-compatible endpoints.

OTLP observability

Emits traces, metrics, and structured logs for each stage.

Secure control plane

Uses seccomp-BPF, session-secret auth, uid drop, and SLIRP networking for defense in depth.

Composable pipelines

Includes examples for sequential pipelines, fan-out branches, and reducer stages.

How to get it

  1. 1Read the Security overview.
    curl -fsSL https://raw.githubusercontent.com/the-void-ia/void-box/main/scripts/install.sh | sh
    voidbox run --file examples/hackernews/hackernews_agent.yaml

README

Void-Box

Hardware-isolated micro-VMs for AI agents — bring any model, run any pipeline, audit every step.

CI License Rust 1.88+ Docs

void-box runs each agent stage inside its own micro-VM — Claude, Codex, Ollama, or any tool you put on PATH — with hardware isolation, OTLP telemetry, and sub-second snapshot/restore.

Docs · Examples · Getting Started · Architecture

Star us on GitHub — it helps the project a lot!


hn_demo — two-stage stock analysis pipeline

What you build with void-box

Real workflows you can run today. Every stage executes inside its own KVM (Linux) or Virtualization.framework (macOS) micro-VM — no shared kernel, no shared blast radius.

🔬 Multi-stage research pipelines

  • HackerNews researcher — autonomous research agent that fetches, ranks, and summarizes top stories. Skills declared as files; one VM per run. (examples/hackernews/)
  • Quant trading pipeline — four sequential stages (data → technical analysis → sentiment → portfolio strategy), each in its own micro-VM with its own skill set. (examples/trading_pipeline.rs)
  • Parallel fan-out.fan_out() runs branches in parallel, each in its own micro-VM (the example splits into a quant and a sentiment branch), then .pipe() merges the outputs into a downstream reducer stage. (examples/parallel_pipeline.rs)

🤖 Code review & PR automation

  • Two-stage review pipeline — analyzer stage clones the repo and proposes fixes; proposer stage opens the GitHub PR. Each runs in its own micro-VM; the GITHUB_TOKEN is scoped to the proposer alone, so a prompt injection that compromises the analyzer can't reach the PR-opening machinery. (examples/code_review/)

📡 Long-running agent gateways

  • OpenClaw Telegram bot — long-running gateway running as a service-mode workflow step that accepts commands over Telegram. Companion specs (openclaw_telegram.yaml, _ollama.yaml, _lmstudio.yaml) demonstrate Claude, Ollama, and LM Studio backends. (examples/openclaw/openclaw_telegram.yaml)

🏠 Local-first model experimentation

👉 Browse all examples →


Why void-box is different

🛡 Hardware-isolated stagesKVM (Linux) / Virtualization.framework (macOS) boundary per stage — not shared-process containers, not advisory namespaces.
Sub-second snapshot & restoreWarm restore in ~138 ms, cold in ~252 ms. Fork agents from a snapshot instead of cold-booting per task.
🔌 Vendor-neutral providersClaude, OpenAI Codex, Ollama, LM Studio, OpenRouter, or any Anthropic-compatible endpoint — selected via one config field.
📦 OCI-nativeAuto-pulls guest images from GHCR; mount container images as base rootfs or as skill providers via overlay.
📊 OTLP-native observabilityTraces, metrics, structured logs, and stage-level telemetry emitted by design — not bolted on.
🔓 No root requiredUsermode SLIRP networking via smoltcp — no TAP devices, no elevated privileges, no host network reach beyond what you allow.

Works with the agents and tools you already use

Claude Code · OpenAI Codex · Ollama · LM Studio · OpenRouter · Together AI · any Anthropic-compatible endpoint · MCP servers · OCI base images (GHCR) · OpenTelemetry · Grafana Tempo · Prometheus · 9p / virtiofs host mounts · …and any CLI you can put on PATH.


Your data stays yours

  • Hardware boundary per stage — KVM/VZ isolation enforced by the CPU, not by the kernel or by process controls.
  • Defense-in-depth — seccomp-BPF on the VMM thread, session-secret auth on the vsock control channel, uid:1000 privilege drop, and SLIRP NAT isolation.
  • Credentials never persist — host OAuth tokens are mounted read-only; API keys are injected as session-scoped env vars and never written to disk inside the guest.
  • Fully auditable — every stage emits OTLP traces, metrics, and structured logs. Nothing in the run is a black box.
  • Open source · self-hostable — Apache-2.0. This repo. Inspect, fork, run on your own metal.

Read the Security overview.


Get started

curl -fsSL https://raw.githubusercontent.com/the-void-ia/void-box/main/scripts/install.sh | sh
voidbox run --file examples/hackernews/hackernews_agent.yaml

Other ways to install:

First run, env vars, and provider auth → Getting Started.


Documentation

ArchitectureComponent diagram, data flow, security model
Runtime ModelLLM providers, skill types, agent binaries
CLI + TUICommand reference, daemon API
YAML SpecsDeclarative agent and pipeline definitions
Pipeline Composition.pipe(), .fan_out(), failure domains
OCI ContainersGuest images, base images, OCI skills
SnapshotsSub-second VM restore, snapshot types
Host Mounts9p / virtiofs host directory sharing
Events + ObservabilityOTLP traces, metrics, event types
Security ModelDefense-in-depth, seccomp, session auth
Wire Protocolvsock framing, message types

Platform setup: Linux · macOS · Local LLMs · Observability stack


Roadmap

Where we're headed. Current focus is hardening the security boundary and squeezing more out of the snapshot/restore path. We'll be sharing the work as it lands — follow along on voidplatform.ai/updates.

Up next, after the security and performance push:

  • Session persistence — Durable run/session state with pluggable backends (filesystem, SQLite, Valkey).
  • Terminal-native interactive experience — Panel-based, live-streaming TUI powered by the event API.
  • Language bindings — Python and Node.js SDKs for daemon-level integration.

License

Apache-2.0 · The Void Platform

Files in the repo

Repository payload34 top-level entries
  • .cargo
  • .claude
  • .config
  • .githooks
  • .github
  • assets
  • benches
  • claudio
  • docs
  • examples
  • fuzz
  • guest-agent
  • playground
  • scripts
  • src
  • tests
  • tools
  • void-box-protocol
  • void-mcp
  • void-message
  • voidbox-oci
  • .gitignore
  • AGENTS.md
  • Cargo.lock
  • Cargo.toml
  • CHANGELOG.md
  • CLAUDE.md
  • CODE_OF_CONDUCT.md
  • CONTRIBUTING.md
  • LICENSE
  • nfpm.yaml
  • README.md
  • SECURITY.md
  • voidbox.entitlements

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More frameworks & sdks

HKUDS/nanobotFrameworks & SDKs

Ultra-lightweight, open-source, self-hosted personal AI agent framework in Python with WebUI, tools, memory, MCP, multi-agent workflows, automation, and chat apps

48k
microsoft/
SkillOpt
microsoft/SkillOptFrameworks & SDKs

SkillOpt is a text-space optimizer that trains reusable natural-language skills for frozen LLM agents through trajectory-driven edits, validation-gated updates, and deployable best_skill.md artifacts.

17k
omnigent-ai/omnigentFrameworks & SDKs

Omnigent is an open-source AI agent framework and meta-harness: orchestrate Claude Code, Codex, Cursor, Pi, and custom agents — swap harnesses without rewriting, enforce policies and sandboxing, and collaborate in real time from any device.

9.8k
kyegomez/
OpenMythos
kyegomez/OpenMythosFrameworks & SDKs

A theoretical reconstruction of the Claude Mythos architecture, built from first principles using the available research literature.

15k
D4Vinci/ScraplingFrameworks & SDKs

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

80k