Running Self-Hosted AI Agents
Self-hosted AI agents on the Oxide Cloud Computer run best as a long-lived orchestrator VM that spawns an ephemeral VM per agent session. VMs are preferred over containers because a separate guest kernel gives stronger isolation. With Claude Code self-hosted environments, a spawn-runner hook creates each runner VM, a systemd unit powers it off when the session ends, and a separate reaper polls the Oxide API to delete stopped VMs and their disks. Amp self-hosted orbs are simpler because the dispatch contract has explicit spawn, pause and delete operations, so pausing deletes the instance and keeps its boot disk. Open problems are cold-start latency, cleanup signaling and multi-rack scale, and Oxide is exploring a microVM-style primitive to address them.
Related posts
- Why AI Agents Need Isolation
Docker easyNoviceAI coding agents that run commands, install packages and handle credentials should execute behind an isolation boundary rather than directly on the developer's host. Docker Sandboxes (sbx) runs agents in microVMs instead of plain containers, because containers share the host kernel. Docker built its own VMM rather than using Firecracker so the same model works on macOS and Windows as well as Linux. Credentials stay on the host: the agent sees a sentinel placeholder, and a proxy swaps in the real auth header on outbound requests. Sandbox Kits package tools, network rules, credentials, files, startup commands and agent memory (e.g. AGENTS.md) into reusable specs, either as stackable Mixin Kits that extend an existing agent or as Agent Kits that define a full agent environment from scratch.
- Why MicroVMs: The Architecture Behind Docker Sandboxes
Docker easyNoviceDocker Sandboxes run each AI coding agent session in a dedicated microVM with its own kernel and a private Docker daemon, giving VM-grade isolation while still allowing docker build, run and compose without socket mounting or host privileges. Full VMs are too slow for ephemeral sessions, containers force privileged Docker-in-Docker, and WASM/V8 isolates offer weaker isolation and no real OS environment. Because Firecracker is Linux/KVM-only, Docker built a new cross-platform VMM on Hypervisor.framework, Windows Hypervisor Platform and KVM to get fast cold starts on developer laptops. File, network and secret policies are set by infrastructure before the agent runs, with credentials injected from outside the VM boundary.
- Build an On-Call Team of AI Agents on DigitalOcean MicroVMs
DigitalOcean mediumAdept
An incident-response team of six AI agents (commander, three read-only investigators, remediator, verifier) runs on DigitalOcean MicroVMs, each subagent isolated in its own Firecracker VM cloned from a checkpoint template so it starts in seconds. Built with LangChain Deep Agents and the langchain-digitalocean-microvm package, investigators get file-only backends with no shell and no outside credentials. All external actions go through Action Gateway with an allow/ask/deny policy, so a destructive Droplet restore triggers a LangGraph interrupt for human approval. While a person decides, every MicroVM pauses and bills only for disk. Scoped access tokens, egress controls and a separate verifier agent mirror the separation of duties in a human on-call rotation.
- Docker Sandboxes vs. Containers: Choosing the Right Isolation for AI Agents
Docker mediumAdeptContainers are isolated processes sharing the host kernel. Docker Sandboxes are microVMs with their own kernel, filesystem, network and private Docker Engine, designed for autonomous coding agents that accumulate state for hours and act on untrusted instructions. A container escape or a mounted Docker socket can expose the host. In a sandbox, an escape lands in a disposable VM, and network egress and credential injection are enforced by a host-side deny-by-default proxy. The tradeoffs are hypervisor requirements, more memory and disk, and some configuration through Kits and sbxenv.yaml. The recommendation: sandbox the agent and containerize the application it works on.
- Sandboxes, secure inference, and keeping agents from going rogue
Stack Overflow Blog easyNovice
Agent sandboxes are mostly micro-VMs built on Firecracker, Cloud Hypervisor, QEMU, gVisor or Docker, and buyers choose them mainly for performance rather than security. Daytona's Ivan Burazin says the biggest workloads are RL/post-training, where slow sandbox spin-up leaves expensive GPUs idle, and long-running app-layer agents. He contrasts sandboxes with EC2: millisecond starts from memory and disk snapshots distributed to local NVMe, live resizing, pause/resume, and forking from saved state. He also notes that recent exploits are often old bugs in the underlying isolation layers. A second conversation, with Blackbox AI's Richard Risk, argues for end-to-end encrypted inference, saying zero data retention is not the same as zero data visibility.