<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m" -->

---
title: Docker Sandboxes lets you run AI agents in fully...
description: Docker Sandboxes is a new standalone product that runs AI coding agents (Claude Code, Copilot CLI, Codex, Gemini CLI, Kiro) inside isolated microVM...
canonical: https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Docker Sandboxes lets you run AI agents in fully autonomous mode inside isolated microVMs | daily.dev
og:description: Docker Sandboxes is a new standalone product that runs AI coding agents (Claude Code, Copilot CLI, Codex, Gemini CLI, Kiro) inside isolated microVM...
og:url: https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m
og:image: https://api.daily.dev/og/posts/UKSSw9u7m.png
og:image:alt: Docker Sandboxes lets you run AI agents in fully autonomous mode inside isolated microVMs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Docker Sandboxes lets you run AI agents in fully autonomous mode inside isolated microVMs

**[Collections](https://daily.dev/sources/collections)** · 3 min read · 1 upvotes · 0 comments

## Summary

Docker Sandboxes is a new standalone product that runs AI coding agents (Claude Code, Copilot CLI, Codex, Gemini CLI, Kiro) inside isolated microVM environments. Each sandbox has its own kernel, network, and Docker engine, spinning up in seconds and disappearing when done. The CLI tool `sbx` supports three network policies (open, balanced, locked-down) and two modes: direct and branch (git worktree). MicroVMs provide stronger isolation than containers since a compromised microVM can't escape to the host. Docker has also partnered with NanoCo to support NanoClaw, a minimal open source agent. Key limitations include performance overhead vs. native execution, SSH commit signing workarounds, and potential network policy gaps that may block needed endpoints.

## Content

## What it is

Docker Sandboxes is a standalone product that runs AI coding agents in isolated microVM environments. The pitch is simple: you can give an agent full autonomous ("YOLO") mode permissions without worrying about what it does to your actual system.

Each sandbox spins up in seconds, has its own kernel, its own network, and its own Docker engine. When the task is done, it disappears. No shared state, no host access, nothing left behind.

It works with the agents you're probably already using — Claude Code, GitHub Copilot CLI, Codex, Gemini CLI, Kiro — and supports both macOS and Windows. No Docker Desktop required.

## The security case

Running agents in "dangerously-skip-permissions" mode on your host machine is genuinely risky. Prompt injection attacks are a real concern, and agents that can read your filesystem, make network calls, or talk to other agents without guardrails create a pretty wide attack surface.

MicroVMs are meaningfully stronger isolation than containers. A compromised container can potentially escape to the host. A microVM has its own kernel, so the blast radius is contained by design.

Docker has also partnered with NanoCo to support NanoClaw, a lightweight open source agent built from just 15 core source files. The small codebase is a deliberate choice — less code means less surface area for something to go wrong. Docker says this reduces the code footprint by up to 100x compared to some alternatives.

## How it works

The CLI tool is called `sbx`. After installing it, you configure a network policy for each sandbox:

- **Open** — full internet access
- **Balanced** — curated allowlist of common development endpoints
- **Locked-down** — no external network access

You can create sandboxes in two modes. **Direct mode** gives the agent a fresh environment to work in. **Branch mode** uses a git worktree, so the agent works on an isolated branch of your repo without touching your working directory.

There's also a TUI dashboard for monitoring what's running.

## Limitations worth knowing

A few rough edges to be aware of:

- **Performance overhead** — microVMs are heavier than containers, so there's a real cost compared to running agents natively
- **SSH commit signing** — you can't share an SSH agent into the sandbox, so signed commits require a workaround
- **Network policy gaps** — the balanced policy may block documentation sites or package registries you actually need, requiring manual adjustment

The network policy situation in particular seems like something that'll need tuning in practice. "Balanced" sounds right but might be too aggressive depending on what your agent needs to fetch.

## The bigger picture

There's something a little unsettling about agents running autonomously at 3am while nobody's watching — making commits, installing packages, hitting external APIs. The isolation here is a genuine improvement over the alternatives, which mostly amount to "run it on a separate machine and hope for the best."

Whether the performance tradeoff is worth it depends on your threat model. For personal projects, probably not. For anything touching production code or sensitive credentials, the overhead starts to look pretty reasonable.

## Similar posts on daily.dev

- [Docker Sandboxes: Run Claude Code and More Safely](https://daily.dev/posts/docker-sandboxes-run-claude-code-and-more-safely-6ydoupfk7) · Docker · 1 upvotes · 0 comments
- [Docker Sandboxes: A New Approach for Coding Agent Safety](https://daily.dev/posts/docker-sandboxes-a-new-approach-for-coding-agent-safety-vab1yodxc) · Docker · 1 upvotes · 0 comments

---

Tags: [#docker](https://daily.dev/tags/docker), [#ai-agents](https://daily.dev/tags/ai-agents), [#claude-code](https://daily.dev/tags/claude-code)

[View this post on daily.dev](https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Docker Sandboxes lets you run AI agents in fully autonomous mode inside isolated microVMs","url":"https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m"},"datePublished":"2026-04-01T14:28:20.005Z","dateModified":"2026-04-07T11:10:22.558Z","description":"Docker Sandboxes is a new standalone product that runs AI coding agents (Claude Code, Copilot CLI, Codex, Gemini CLI, Kiro) inside isolated microVM...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/44cbfd33965e99cfbf8542ec64f03434?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/44cbfd33965e99cfbf8542ec64f03434?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/docker-sandboxes-lets-you-run-ai-agents-in-fully-autonomous-mode-inside-isolated-microvms-ukssw9u7m","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"docker,ai-agents,claude-code","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Docker Sandboxes lets you run AI agents in fully autonomous mode inside isolated microVMs"}]}
```

