102 comments

  • srini-docker3 hours ago
    I work at Docker. Lot of valid and useful feedback here that we&#x27;re looking closely at.<p>One correction: this isn&#x27;t containers. Each session is a microVM with its own kernel on the platform&#x27;s native hypervisor: Hypervisor.framework, WHP, KVM. We wrote a new VMM (not Firecracker) to make it more effective across platforms.<p>Explained a bit more here about the architecture and why those choices were made: <a href="https:&#x2F;&#x2F;www.docker.com&#x2F;blog&#x2F;why-microvms-the-architecture-behind-docker-sandboxes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.docker.com&#x2F;blog&#x2F;why-microvms-the-architecture-be...</a>
    • tanepiper2 hours ago
      I&#x27;m very glad this now exists - fwiw almost a decade ago I worked on <a href="https:&#x2F;&#x2F;github.com&#x2F;takeoff-env&#x2F;takeoff" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;takeoff-env&#x2F;takeoff</a> as a solution for making it easier for hot reloading your stack which is thankfully redundant today, and funnily enough the list of problems you identify is also something I&#x27;ve been working on.<p>Recently I&#x27;ve also been working on a VM stack for an agentic platform using pre-build images with some cloud injection scripts that simplifies the deployment of a private agentic cluster - in the end I went with full VM with a 4vCpu&#x2F;8gb for the main agent and 2vCPU&#x2F;4Gb - only the main agent had docker-in-docker, the rest rootless docker but I agree it&#x27;s still an elevated risk.<p>I&#x27;ll definitely have to give this a spin and see if I can simplify it to one larger box with this solution.
    • filearts44 minutes ago
      Is there any line of sight to open sourcing the vmm?<p>Is it based on libkrun?
    • kwakubiney2 hours ago
      Why’s it not on Linux? What are the difficulties with that platform?
      • srini-docker2 hours ago
        Linux is available today (Ubuntu): github.com&#x2F;docker&#x2F;sbx-releases. Our webpage showing only brew and winget is on us.<p>For the people upthread who asked about on customization: templates (like snapshotting a running sandbox) and kits (YAML applied at creation like install steps, files, network and credential rules, or define a new agent outright) are the supported path now. It&#x27;s early but take a look here: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;</a><p>On MCP, since credential handling was mentioned here: the sandbox sees one gateway endpoint, and OAuth tokens stay in the host credential store rather than in the VM. <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;mcp-gateway&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;mcp-gateway&#x2F;</a><p>All this is early. We&#x27;re looking at more based on feedback from users like running sandboxes in the background for long-horizon work and a lot more (including what you all raised in the thread here). Keep them coming.
        • tacker20002 hours ago
          Please consider adding MacPorts support.<p>Brew is notoriously developer-unfriendly.
          • dallen331 hour ago
            How so?
            • bmurphy19761 hour ago
              The parent didn&#x27;t go into any detail. I can. Homebrew has a history of ripping out your foundation underneath you. One day you are on Python 3.8, then next day you are on Python 3.10 and all your packages are broken. MacPorts doesn&#x27;t do that.<p>Now, whether you should you be using the Homebrew Python is a completely different question. YMMV for other platforms managed via Homebrew.<p>I&#x27;ve traditionally used MacPorts for dev tooling and Homebrew for everything else, but with more aggressive adoption of tooling like uv an nvm I&#x27;m not sure the different really matters for me anymore.
              • tacker200026 minutes ago
                Exactly. Same with PHP, MySQL etc… Also they just block old versions and dont let you install them, you have to jump through a lot of hoops to use an old PHP version for example, so in no way developer friendly.<p>In the end I realized that Brew is a package manager for consumers, and as a professional i should’nt keep fighting it.
              • Groxx1 hour ago
                A lot of that is simply formula authors &#x2F; application devs who don&#x27;t know what they&#x27;re doing (python@3.10 and other versions are a thing, and have been for quite a while now, but they&#x27;re not always used and devs don&#x27;t always keep track of the version they need) and people not updating their software for years (pythons are on a 5 year cycle <i>everywhere</i>, homebrew included: <a href="https:&#x2F;&#x2F;devguide.python.org&#x2F;versions&#x2F;" rel="nofollow">https:&#x2F;&#x2F;devguide.python.org&#x2F;versions&#x2F;</a> and <a href="https:&#x2F;&#x2F;formulae.brew.sh&#x2F;formula&#x2F;python@3.10" rel="nofollow">https:&#x2F;&#x2F;formulae.brew.sh&#x2F;formula&#x2F;python@3.10</a> ).<p>Python in particular is well known to not be a stable target. For anyone. By design. If you expect long term use of a specific version of code, use a different language. It is not at all homebrew&#x27;s fault that they&#x27;re how many people discover that.
              • xrisk1 hour ago
                pyenv has been standard tooling for far longer than uv. depending on package manager supplied Python packages only makes sense if you’re running rhel or Debian or something and your application is packaged&#x2F;deployed&#x2F;the maintenance path uses dnf&#x2F;apt. Otherwise you should always use a venv and use an out of package manager update mechanism. Like, in a broader sense, vendoring dependencies only makes sense if you’re shipping an application, not on a dev box.
                • tacker200024 minutes ago
                  This is not about python packages, this is about python itself.
      • cogman102 hours ago
        Looks like they do support Ubuntu.<p>Is this open source? Can I install this on a non Ubuntu system?
        • rocfan2 hours ago
          CLI works on Fedora. Been using it daily for ~ a week.<p>See repo `docker&#x2F;sbx-releases`. The `.rpm` there has Rocky Linux in the name but works on Fedora.
        • aborsy2 hours ago
          A limited form of it with different syntax comes with Docker Desktop. The sbx tool is not available for non-Ubuntu distributions.
    • cpburns20092 hours ago
      Do you have a strategy for secrets? Such as storing them, or using MitM to inject them (e.g., HTTP API requests)? I&#x27;ve used squid cache in the past, and currently use iron-proxy for this sort of feature.
      • mikesir871 hour ago
        The secrets are stored in the OS-specific keychain. When a sandbox starts, the network proxy injects the secret into the request (as auth headers) only when the hostname matches.<p>Read more about the secrets handling here - <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials&#x2F;</a><p>Kits provide the ability to also define new credentials and how to inject them into new services (connect to internal systems, etc.).
    • atechboy2 hours ago
      So the idea is to give each agent a VM to do several tool calls? or one VM for each tool call?
      • theplumber1 hour ago
        I think the idea is to have the agent run in the VM
    • Geezus_421 hour ago
      Sounds like what I&#x27;m doing with Nix and MicroVM currently.
  • rusch11 hours ago
    The login is annoying but, lacking an open source alternative, this has been my daily driver for a while now because it works great out of the box with two key features: outbound firewall and secret injection with placeholders.<p>I run it with superset and then each git worktree is mounted in a sandbox that is configured for each repo i work in.<p>Closest open source I have seen is <a href="https:&#x2F;&#x2F;earendil-works.github.io&#x2F;gondolin" rel="nofollow">https:&#x2F;&#x2F;earendil-works.github.io&#x2F;gondolin</a> but the DX is not as polished. <a href="https:&#x2F;&#x2F;exe.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;exe.dev&#x2F;</a> would be perfect but it does not come with outbound firewall.<p>Does anyone have a better alternative?
    • kstenerud5 hours ago
      I wrote one that has both of those: yoloAI (MIT, Go, single binary, no login).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;kstenerud&#x2F;yoloai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kstenerud&#x2F;yoloai</a><p>Outbound firewall is `--network-isolated`: egress is denied except the agent&#x27;s own API endpoints plus domains you allow, enforced sandbox-side (working on host-side enforcement now). `--network-none` if you want nothing.<p>Credential brokering works the way you describe (currently Claude-only, I&#x27;ll add more as time allows). The API key stays on the host, a local proxy injects it into the outbound request, and the sandbox never holds anything worth stealing. Other agents&#x27; credentials currently arrive as read-only file mounts instead (weaker, and something I&#x27;ll fix soon). Generalising the injector is the obvious next thing.<p>One difference from your setup: yoloAI copies your worktree instead of mounting it. The agent works on the copy, you `yoloai diff`, and `yoloai apply` replays the commits into your real repo. That&#x27;s deliberate. Docker&#x27;s own security docs talk about the dangers of bombs being left behind in a live-mounted dir (git hooks, package.json scripts, Makefiles, IDE task config), which diff&#x2F;apply avoids.<p>Isolation is per-sandbox rather than fixed: runc, gVisor, or Kata VMs (QEMU or Firecracker) on Linux; Seatbelt or full macOS VMs via Tart on a Mac.
      • westurner4 hours ago
        &gt; <i>yoloAI copies your worktree instead of mounting it</i><p>Cloudflare&#x2F;artifact-fs does lazy shallow git clones with a FUSE filesystem. <a href="https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;artifact-fs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cloudflare&#x2F;artifact-fs</a><p>Would that be faster?<p>Re: sandboxing methods like Clawk, Amla sandbox, bwrap, agentvm, ARM64 MTE with wasmtime-mte: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48893850">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48893850</a><p>A few months ago now I started adding seccomp sandboxing to jinja2rs and then liboverlayfs support to ansiblers (which are early Rust ports).<p>Haven&#x27;t finished that, but I started working on a VM format that stores signed machine state into an OCI container repository, using the hypervisor migration support of KVM&#x2F;QEMU.<p>Though this is not safe yet if ever, VM migrations are probably another way to sandbox and deploy en masse.
      • nextblock1 hour ago
        [dead]
    • jachris10 hours ago
      Agreed. Network control and secret injection together with a microVM setup is as good as it gets right now, although I believe that we need more fine-grained tools down the road. It sounds like Microsandbox would be the perfect fit for what you are describing. I also built my own coding agent workbench on top of it (<a href="https:&#x2F;&#x2F;github.com&#x2F;isolade&#x2F;isolade" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;isolade&#x2F;isolade</a>). Microsandbox is quite cool, check it out: <a href="https:&#x2F;&#x2F;github.com&#x2F;superradcompany&#x2F;microsandbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;superradcompany&#x2F;microsandbox</a>
    • rpoisel8 hours ago
      Don&#x27;t want to say it&#x27;s better, but I implemented Agent Circus (<a href="https:&#x2F;&#x2F;github.com&#x2F;Embedded-Focus&#x2F;agent-circus" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Embedded-Focus&#x2F;agent-circus</a>) which allows to lock AI agent harnesses into docker containers.<p>I&#x27;m using it as my main driver since months.<p>Support for running agent harnesses in unprivileged podman containers is on my feature list. :-)
      • pojzon6 hours ago
        Docker containers are not enough isolation for anyone that cares about jailbreak scenarios.<p>Only real alternative is to use microvms. My goto solution for this are apple&#x2F;containers.
        • Supermancho5 hours ago
          &gt; Docker containers are not enough isolation for anyone that cares about jailbreak scenarios.<p>For the vast majority of developers, containers are enough, which is why they are ubiquitous while vms are less common. Ofc that ubiquity has led to lazy configuration, which is how the jailbreaking can occur. Knowing what you are doing with containers is a requirement to use containers as an AI sandbox.
          • wbl5 hours ago
            The AI launches new kernel bugs as matter of course.
        • pjmlp5 hours ago
          There were not the solution for a while now, that is why Kata containers came to be in first place.
        • TacticalCoder5 hours ago
          &gt; Only real alternative is to use microvms. My goto solution for this are apple&#x2F;containers.<p>Why microVMs? I <i>never ever</i> run a container, AI harness or other, in something else than a full on VM. I could use a microVM but in any case I really don&#x27;t see why I&#x27;d run a container on one of my bare metal OS: the place of a container is inside a VM (or microVM).<p>Especially for AI harnesses where the threat of an escape is very real: the more defense in depth, the better.<p>And If I can use rootless Podman instead of &quot;rootfull&quot; Docker, the better. Most of my containers are Podman btw.<p>&gt; My goto solution for this are apple&#x2F;containers.<p>To each his own: my goto solution is an actual server on my LAN with shitload of cores and memory and plenty of scripts to provision VMs etc.<p>I really don&#x27;t understand why people are YOLO&#x27;ing containers on their bare metal OS.
          • sgc2 hours ago
            I agree. I thought everybody knew to never use docker for high security, because it is &quot;security lite&quot;. Might as well just use firejail. I presume that an agent knows more about networking and virtualization than I do. The only real solution is using multi-tenant level vm isolation, while presuming that the agent still might break out of their vm. So the vms need to be hosted on their own physical box that only runs the kvm provisioning host (or similar), and is firewalled on its own isolated network. It&#x27;s a bit of a pain of course, but anything less feels almost like security theatre rather than meaningful to me. Otherwise you need to stick to the remote chatbots only.
          • graemep2 hours ago
            &gt; I really don&#x27;t understand why people are YOLO&#x27;ing containers on their bare metal OS.<p>You know about the people who do not bother with the container? Quite a few make “No problem so far” comments on HN discussions.
          • cpburns20092 hours ago
            The nice thing about running a microVM like a container is the interface is relatively easy, especially if you&#x27;ve used containers before.
          • mirmor232 hours ago
            [dead]
    • binsquare10 hours ago
      maintainer, I would recommend trying out: <a href="https:&#x2F;&#x2F;github.com&#x2F;smol-machines&#x2F;smolvm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;smol-machines&#x2F;smolvm</a><p>It has network filtering + placeholders for secrets.<p>OSS, no logins needed
      • icedchai5 hours ago
        There&#x27;s also microsandbox which has similar features: <a href="https:&#x2F;&#x2F;github.com&#x2F;superradcompany&#x2F;microsandbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;superradcompany&#x2F;microsandbox</a><p>(Not affiliated with them, just tried it out last week.)
      • reddec9 hours ago
        I&#x27;ve put some effort to integrate it to my agentic workflow. The problem, however, with docker in smolvm: it work-ish (there is example), but quite hacky. Another problem which I wasnt able to solve - persistent image without Dockerfile. CloudInit will be ideal.<p>Documention at this moment in an early stage.<p>Overall, its a great project but for me was simpler just use Virtual Machine Manager (libvirt GUI).<p>I wish all luck to the maintainers, but probably DX-wise I will prefer to have more granular or predictable controls (eg micro cloud from Canonical).
    • SegmentTree10 hours ago
      Eclipse Enclave does exactly that: There is an outbound firewall and secret injections, so that the agent never sees a real key. And it&#x27;s fully open source: <a href="https:&#x2F;&#x2F;github.com&#x2F;eclipse-enclave&#x2F;enclave" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;eclipse-enclave&#x2F;enclave</a>
      • dvtkrlbs10 hours ago
        Looking at the Readme it seems like it only supports docker. Which is a dealbreaker for some
        • collabs8 hours ago
          What is missing in qemu + podman that we need rootful docker for this? Is there actual capability that is missing or is it more of a design choice by the eclipse enclave folks?
    • 3840283455 hours ago
      Isn&#x27;t Nvidia&#x27;s openshell exactly what you&#x27;re looking for? I&#x27;m asking because I&#x27;m just learning about this stuff myself and tested openshell yesterday with pi for the first time.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;openshell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;openshell</a>
      • intrasight5 hours ago
        I have a colleague who&#x27;s using openshell. The advantage is it&#x27;s independent of the containerization layer, yes?
    • dbmikus4 hours ago
      My startup is open core: <a href="https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika</a><p>We run cloud sandboxes, and have some experimental local sandbox support that is fully OSS.<p>Main thing for amika.dev is you can control the sandboxes and agents interchangeabley by SSH, web, or API, and can expose the services the agent is working on over signed URLs<p>Entire sandbox config is a TOML file<p>We&#x27;re going to improve the local OSS sandbox mode and add better network controls over the next couple weeks.<p>Ultimately, what we&#x27;re building kind of like if Tailscale and Firecracker had a baby, with a messaging protocol for remote controlling any sandboxed agent<p>It&#x27;s free to try out. Still a lot to build, so we really appreciate any and all feedback about what we should focus on
    • hanwenn2 hours ago
      I wrote my own (or rather, had Claude write it), <a href="https:&#x2F;&#x2F;github.com&#x2F;hanwen&#x2F;runclaude" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;hanwen&#x2F;runclaude</a>.<p>Mine uses containers, and makes only the git&#x2F;jj workspace read&#x2F;write, hiding all credentials that are in my home dir.
    • cpburns20095 hours ago
      Gondolin looks interesting. It sounds like a TypeScript wrapper that achieves the same thing as my setup: Docker &amp; Kata Containers 4 (KVM&#x2F;QEMU backend) for microVMs, iron-proxy for egress and secrets, and dnsmasq for internal network name resolution (workaround for a Docker&#x2F;Kata incompatibility).
    • devttyeu10 hours ago
      For persistent-ish one-off apps <a href="https:&#x2F;&#x2F;xbin.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xbin.dev&#x2F;</a> (my project)<p>Has egress and ingress filtering, egress can be bound to host&#x2F;internet&#x2F;subnet or even better to internal apps (which are each separate netns) meaning you can do your own firewall&#x2F;vpn&#x2F;whatever per sandbox. Plus you control what other components in the sandbox env the app can communicate with.<p>Really not built for day-to-day dev work though, more like automating your company&#x2F;life &#x2F; getting rid of SaaS (e.g. for technical Founders &#x2F; Sales etc, not exactly useful for dev work)
    • zippie3 hours ago
      We run <a href="https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;OpenShell" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;NVIDIA&#x2F;OpenShell</a> on our workloads and we like it because it is backed by NVIDIA and fits natively within our k8s env.<p>It also provides a nice TUI for network policy management and prebuilt sandboxes which have claude code, codex, etc.
    • pbasista8 hours ago
      I use Linux Containers managed by Incus for working with Claude.<p>I have a dedicated container for that. It can run its own Docker daemon and other system services if needed.<p>Apart from the Claude login token, it has no SSH keys or other credentials. I push everything I need to it from the local machine. And I pull the Claude generated outputs from it.<p>Of course, this kind of setup requires a stack which can run or at least be tested without any credentials.
      • Tomte7 hours ago
        I do the same, but with pi.dev in Incus, mapping a project folder into the VM.<p>What I don‘t have compared to sbx is an outbound firewall, but my VM does not have any personal&#x2F;interesting data, only a vanilla Fedora installation and the project dir with open source code, so I do not care much about exfiltration.
      • radlad6 hours ago
        Love Incus and I&#x27;m using throwaway restricted projects for testing. Highly recommend incus-windows if you need to do any Windows testing. Having agents validate Windows behavior has reduced so much toil for me.
        • indigodaddy3 hours ago
          Here&#x27;s my incus thing meant for a VPS&#x2F;server:<p><a href="https:&#x2F;&#x2F;GitHub.com&#x2F;jgbrwn&#x2F;vibebin" rel="nofollow">https:&#x2F;&#x2F;GitHub.com&#x2F;jgbrwn&#x2F;vibebin</a>
    • chrisweekly4 hours ago
      <a href="https:&#x2F;&#x2F;smolmachines.com">https:&#x2F;&#x2F;smolmachines.com</a> has &quot;smolvm&quot; microvms, for better security. The DX is whatever you decide to do with it.
    • sylvinus5 hours ago
      Are we all posting our agent VM containers ? :) <a href="https:&#x2F;&#x2F;github.com&#x2F;sylvinus&#x2F;agent-vm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sylvinus&#x2F;agent-vm</a>
      • Thanemate4 hours ago
        We&#x27;re basically at the point where people can build their own &quot;X&quot;, with &quot;X&quot; being internal tooling.
        • olejorgenb4 hours ago
          Yes, but for certain things like sandboxing I hope we can converge on a handful robust, well-tested&#x2F;audited solutions...
    • notsirius2 hours ago
      Ooh - can you share more about your setup with superset? I tried getting it integrated with superset a while ago with no dice.
    • PufPufPuf6 hours ago
      I made Locki: <a href="https:&#x2F;&#x2F;github.com&#x2F;JanPokorny&#x2F;locki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JanPokorny&#x2F;locki</a><p>Internally uses a single VM + Incus containers, supports docker&#x2F;Kubernetes in each sandbox, has integrated worktree management.
    • nzjrs8 hours ago
      If you just need a python+venv sandbox with dev-first UX, no container build step needed, and no startup cost then I am using <a href="https:&#x2F;&#x2F;github.com&#x2F;nzjrs&#x2F;sandbubble" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nzjrs&#x2F;sandbubble</a> in prod.
    • throwaw1210 hours ago
      I havent used nor gondolin neither docker&#x27;s solution, but curious to know what gondolin is missing (evaluating both for my personal use)? is it only the DX or something else, if DX, can you what exactly is missing?<p>thanks
      • codethief6 hours ago
        In my experience it&#x27;s mostly the UX&#x2F;DX where Gondolin is lacking. For instance, I don&#x27;t want to set up a JavaScript project every single time I need a sandbox. Instead, I just want to place a config file somewhere in my repo or my home dir and be done with it.<p>So I wrote a wrapper around Gondolin which allows me to do that and a few other things: <a href="https:&#x2F;&#x2F;github.com&#x2F;codethief&#x2F;tuor" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;codethief&#x2F;tuor</a><p>(Warning: Still very much experimental &#x2F; underdocumented.)
        • dbmikus4 hours ago
          If you&#x27;d be open to trying something else, my startup is open core: <a href="https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika</a><p>The definition for your cloud sandboxes is just a TOML config in your repo<p>We also have an API and CLI to let users message the agent from outside or across sandboxes<p>We&#x27;re still building a lot, so if you have any time to try it out (amika.dev) and give feedback, that is worth gold to us!
      • rusch10 hours ago
        Yes, the stated &quot;target workload&quot;[0] is not what i&#x27;m looking for. I want my agent to run for long, spin up dedicated local stack while developing etc.<p>It seems with gondoling i need to explain the agent to run commands in the sandbox, but then where does the agent run itself?<p>[0]: <a href="https:&#x2F;&#x2F;earendil-works.github.io&#x2F;gondolin&#x2F;workloads&#x2F;" rel="nofollow">https:&#x2F;&#x2F;earendil-works.github.io&#x2F;gondolin&#x2F;workloads&#x2F;</a>
        • eli9 hours ago
          You can run the agent in the gondolin sandbox if you wish.<p>Their example implementation with pi uses a pi extension so that pi runs on the host but the read&#x2F;write&#x2F;bash&#x2F;etc tools run in the guest. Doesn’t have to be that way though.
          • olejorgenb4 hours ago
            Note that the pi-extension example in the gondolin repo is very outdated. Look in the pi repo instead.
    • taude5 hours ago
      what about coder (and coder workspaces)? <a href="https:&#x2F;&#x2F;github.com&#x2F;coder&#x2F;coder" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;coder&#x2F;coder</a>
    • petesergeant9 hours ago
      What specifically do you want? I have:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pjlsergeant&#x2F;byre" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pjlsergeant&#x2F;byre</a> -- slightly different security model, but lazer-focused on developer experience; my daily driver and I love it not just because I wrote it. The TUI is great for configuring and setting up instant boxes just how you want<p><a href="https:&#x2F;&#x2F;pleasedonotescape.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pleasedonotescape.com&#x2F;</a> -- a list of every other agent jail I could find, filterable by open-source and whatever else you want
    • _ink_10 hours ago
      Does secret injection really prevent that the agent send my GitHub key somewhere? If it has access to it via env var, can it not just paste it somewhere?
      • rusch10 hours ago
        The env var is just a placeholder in the VM, so no real secret is in there.
        • llimllib6 hours ago
          right, but say you give the agent access to github and it can push as you, or make a gist; now it can easily exfiltrate your secret.<p>And that&#x27;s just an easy case - really if it has any network access at all it can come up with a clever way to route a request through the network such that the key comes back somewhere in the request. If you scan for it inbound too, the machine can obfuscate it.<p>Our agents are trained to be so intensely helpful and they have such intricate knowledge of how things work that they will do some incredibly clever tricks to do what you ask them to do.
          • skinfaxi5 hours ago
            The agent has no access to the secret. It has a placeholder that is replaced at a higher level. When it makes the network request the secret is substituted but that is outside of the caller&#x27;s worldview.
            • ruszki2 hours ago
              But how? Normally the TLS handshake and encryption&#x2F;decryption happen in user space. Even the kernel doesn’t know anything about it.
              • icedchai1 hour ago
                There is a transparent proxy installed (along with the necessary certificates on the VM.) For an example, see <a href="https:&#x2F;&#x2F;docs.microsandbox.dev&#x2F;networking&#x2F;tls" rel="nofollow">https:&#x2F;&#x2F;docs.microsandbox.dev&#x2F;networking&#x2F;tls</a>
            • Eldt4 hours ago
              So what stops it from sending a network request to a git repo that pushes what that placeholder resolves to?
              • skinfaxi4 hours ago
                How would that work? You don&#x27;t control github.com servers so your repo would never see the secret.<p>edit: You may want to look into tokenizing proxies as the general application of this concept.
                • llimllib4 hours ago
                  Your agent writes secret.txt with the placeholder, and the tokenizing proxy replaces it with the token, then the agent reads secret.txt
                  • skinfaxi4 hours ago
                    It only replaces the token in the HTTP header that is sent to the server. Whatever you wrote in your files isn&#x27;t touched by the proxy.
                  • messh3 hours ago
                    Couldn&#x27;t it then just publish the mock in a public place... it would get replaced by the real secret.? How is this prevented
                  • drdexebtjl4 hours ago
                    Maybe the tokenizing proxy could work both ways? If the agent tries to read secret.txt, it gets back the placeholder.
      • eli9 hours ago
        It’s injected into an outbound api call, not into an env var the agent can read.
        • kellpossible28 hours ago
          what&#x27;s to stop an agent creating an outbound call with the var to a malicious endpoint? (unless you whitelist what it has access to)
          • mpern6 hours ago
            At least for gondolin and microsandbox, you bind a specific secret placeholder to the target host. i.e. your GH token is only replaced&#x2F;injected for calls to api.github.com, not other hosts. And you can set up both with deny-by-default
            • messh2 hours ago
              But then... why is replacent needed at all: just use sone permissions system.
            • messh2 hours ago
              Couldn&#x27;t the agent post then the key in some public comment?
              • roywiggins25 minutes ago
                Only if the replacement is global and not, say, only looking and inserting it into the actual (eg) Authorization header. If something is <i>only</i> transparently altering the Authorization header, then an agent inserting the dummy value somewhere else is totally safe.
          • eglintondust6 hours ago
            You just don&#x27;t inject the real secret unless hostname&#x2F;whatever rule matches the request, right? I don&#x27;t know if that&#x27;s how this works but it&#x27;s my assumption.
            • mikesir873 hours ago
              On the Docker DevRel team... yes! This is it. The secret is injected only into headers in which the hostname matches.<p>There&#x27;s also an ability to create kits where you can setup credential injection into other services as well.
          • skinfaxi5 hours ago
            The replacement is on a url&#x2F;host basis.
        • kellpossible28 hours ago
          or an outbound call to a trusted endpoint with the env var in a way that can get exposed to the agent via a subsequent call?
          • skinfaxi5 hours ago
            How would that work, exactly? What are you envisioning?
          • radlad6 hours ago
            It&#x27;s possible reflected instances are masked too, like GitHub Actions. But I don&#x27;t know.
    • MikhailTal10 hours ago
      <a href="https:&#x2F;&#x2F;github.com&#x2F;e2b-dev&#x2F;e2b" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;e2b-dev&#x2F;e2b</a>
    • mellowagain8 hours ago
      ive been using <a href="https:&#x2F;&#x2F;github.com&#x2F;Gerharddc&#x2F;litterbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Gerharddc&#x2F;litterbox</a>
    • sparsesignal10 hours ago
      What I run is one hardened QEMU&#x2F;KVM VM per project holding the whole dev environment (editors, agents, containers), with nftables on the host allowing internet egress but dropping anything aimed at the host, the LAN, or any other private address, plus an allowlist for deliberate exceptions.<p>Basically, it&#x27;s a plain QEMU&#x2F;KVM VM on a stock Debian cloud image: device model stripped down to a virtio disk, a virtio NIC and a serial console, nested virt off, no passwordless sudo in the guest. It also ships a containment check that scans outward from inside the guest, so the network boundary is something you can verify.<p>Wrapping the whole environment rather than a single agent session puts supply chain attacks inside the boundary too. A poisoned npm or PyPI package, or a compromised editor extension, lands in the VM instead of on the host. That was the original reason I set this up; agents just made it more urgent.<p>There&#x27;s no per-domain egress allowlist; the policy is &quot;internet yes, private addresses no&quot;. Secret injection isn&#x27;t built in either, though Infisical&#x27;s agent-vault on the host as an egress proxy covers that part.<p>Wrote the whole setup up here, in case it&#x27;s useful:<p><a href="https:&#x2F;&#x2F;karamatli.com&#x2F;posts&#x2F;network-isolated-kvm-sandbox-ai-agents&#x2F;" rel="nofollow">https:&#x2F;&#x2F;karamatli.com&#x2F;posts&#x2F;network-isolated-kvm-sandbox-ai-...</a>
      • someothherguyy6 hours ago
        I currently do something similar, but this article was a nice read and gave me some new ideas.
      • TacticalCoder5 hours ago
        Yeah I discovered your blog a few days ago: I&#x27;ve got a setup not unlike yours.<p>&gt; So rather than pick one, this post advocates layering both, in the spirit of defense in depth: a sandbox VM wraps your containers along with the whole toolchain, and that sandbox reaches the internet but has no route to anything private.<p>Yup it&#x27;s the only proper way.<p>And that is true not just for AI harnesses&#x2F;agents (that <i>shall</i> try to escape), but also for stuff like Plex&#x2F;Jellyfin&#x2F;Immich&#x2F;private pastebin etc.<p>If you care about security, there really simply is zero reason to run containers on the bare metal.
    • schmitthub15 minutes ago
      [dead]
  • Roark664 hours ago
    How about implementing proper permissions on the tool use or if you need more flexibility a dedicated model to analyse potential impact? (Like Claude Code&#x27;s Autopilot but more configurable)?<p>I find solutions like this to be a like trying to patch a leaking boat on a lake with duct tape. It will help, but it&#x27;s not a proper solution.<p>Also, often the tasks you want the AI to perform are in the outside world. Like &quot;connect to my servers, and figure out X and Y&quot;.<p>The proper way is permission isolation. I run a small k8 cluster in the homelab and I have 3 types of pod&#x2F;agent combinations for my AI agents. Read only, one that can change my gitops but it needs to create PRs that admin approves, and admin.<p>Likewise with code. I have a forgejo git instance where agents have ability to create feature branches and so on, but merging is gated.<p>Those things require &quot;GH enterprise features&quot;.<p>In fact more and more things we do at home will require &quot;enterprise features&quot;. Why? Because a person with AI is basically a small team, but some of team members behave like Chimps on crack... So security must be top notch.
    • AlotOfReading2 hours ago
      What are the proper permissions for an agent? An agent shouldn&#x27;t be able to read ~&#x2F;.ssh, but that means a bash tool that spawns `cat` is different than one that spawns an ssh client. I don&#x27;t allow my agents to use git commit, except sometimes I ask an agent to split up a complicated branch that I can&#x27;t be bothered to split myself. rm&#x27;ing intermediary files is fine, but rm&#x27;ing committed files is bad, unless the agent has done *.bak renaming and is cleaning up itself, etc.<p>I don&#x27;t think &quot;proper&quot; permissions are possible without dramatically limiting the way people use these tools.
    • iury-sza4 hours ago
      Implementing that is trivial in the harness side. You code vibe that in minutes.
    • victor_edka4 hours ago
      yea...I think k8s is de wae for running proper proper rbac sandboxes for agents.
      • kwakubiney4 hours ago
        Any idea of anyone exploring this space? Sounds interesting
        • victor_edka4 hours ago
          pfff...yes...but heavily biased as cofounder at edka... we&#x27;re doing this <a href="https:&#x2F;&#x2F;edka.io&#x2F;blog&#x2F;codex-environments-on-kubernetes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;edka.io&#x2F;blog&#x2F;codex-environments-on-kubernetes&#x2F;</a> and combined with this <a href="https:&#x2F;&#x2F;edka.io&#x2F;docs&#x2F;agents&#x2F;conductor&#x2F;" rel="nofollow">https:&#x2F;&#x2F;edka.io&#x2F;docs&#x2F;agents&#x2F;conductor&#x2F;</a> you&#x27;d get that.
  • Grimburger11 hours ago
    &gt; Each agent runs inside a dedicated microVM with your dev environment<p>What&#x27;s a &quot;microVM&quot; and what&#x27;s the security model here compared to using real virtual machines with actual constraints on breakouts?<p>Is it marketing fluff?<p>Incus&#x2F;LXD has had VM&#x27;s for a long time now.<p><pre><code> incus launch images:ubuntu&#x2F;26.04 my-ubuntu-vm --vm incus exec my-ubuntu-vm -- bash</code></pre>
    • masklinn10 hours ago
      “microvms” are real vms but the hypervisor and vm (guest kernel) shed most of the hardware &#x2F; device emulation, support, and discovery which makes traditional VMs look &#x2F; feel like real computers, as well as most guest interactions. This gives them extremely low overhead.<p>Firecracker is designed to start a VM in under 125ms and 5MB. Netbsd advertises that you can direct-boot a MICROVM kernel configuration in under 10ms.
      • jsiepkes9 hours ago
        If an agent fires up NPM, takes a boatload of memory, is that memory released back to the OS after NPM shuts down in the VM?
        • dist-epoch9 hours ago
          In principle yes, in practice it&#x27;s complicated, using something called &quot;balloon drivers&quot;<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Memory_ballooning" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Memory_ballooning</a>
          • masklinn9 hours ago
            There’s also memory hotplugging via virtio-mem. But generally speaking downscaling live vm memory can’t be said to be a solved problem, it’s more of an active area of research.
    • frio11 hours ago
      It’s real VMs, firecracker style.
      • Grimburger49 minutes ago
        Haven&#x27;t used docker sandbox but you can&#x27;t just `apt install postgres` on firecracker, it needs to get baked into the image first.<p>That&#x27;s my experience anyway, there&#x27;s a lot of restrictions once you need to do some real basic things. For basic prompts maybe but interacting with a full stack ehh.<p>So bit hesitant to call firecracker a real VM myself.
    • vdfs9 hours ago
      Your example is not complete, you have to show how it will run claude&#x2F;codex, you have to do extra things to install run and mount folders there, this one does that with less config, also with this agents can run docker, lxd doesn&#x27;t allow you to do that
      • Grimburger34 minutes ago
        You create your own image first rather than blank ubuntu.<p>Packer and Incus setup:<p><pre><code> packer { required_plugins { incus = { version = &quot;&gt;= 1.0.0&quot;, source = &quot;github.com&#x2F;lxc&#x2F;incus&quot; } } } source &quot;incus&quot; &quot;ubuntu&quot; { image = &quot;images:ubuntu&#x2F;24.04&quot; output_image = &quot;ubuntu-claude&quot; type = &quot;virtual-machine&quot; } build { sources = [&quot;source.incus.ubuntu&quot;] provisioner &quot;shell&quot; { inline = [ &quot;curl -fsSL https:&#x2F;&#x2F;claude.ai&#x2F;install.sh | bash&quot;, &quot;echo &#x27;export PATH=\&quot;$HOME&#x2F;.local&#x2F;bin:$PATH\&quot;&#x27; &gt;&gt; ~&#x2F;.bashrc&quot; ] } } </code></pre> Then:<p><pre><code> packer init ubuntu-claude.hcl packer build ubuntu-claude.hcl incus launch ubuntu-claude my-claude-vm incus exec my-claude-vm -- claude -p &quot;solve the EC discrete logarithm problem, if it doesn&#x27;t work keep going&quot; --dangerously-skip-permissions </code></pre> The reality of these things are that eventually you will want to do something useful or different with them and the flexibility simply isn&#x27;t there compared to a real vm, if you desperately need boot times then there&#x27;s plenty of other options here, especially with packer. Some of my prompts are often hitting 60+ minutes so it&#x27;s not really something I think about.
    • TheqO9 hours ago
      There are many devs that have little to no experience of Linux, like the hundreds of thousands of .Net and Java CRUD devs in enterprise companies using Windows.<p>There is a need for a Docker desktop like GUI for this market.
      • newsoftheday4 hours ago
        Java CRUD devs have been getting into Linux a lot more in recent years since learning more about how DevOps does their work is important and integrated in with our projects, like the Dockerfile, Helm files, etc. I was already into Linux before Java was even released. I&#x27;d say even .Net devs are too since .Net Core is becoming more important in their world.
      • Izmaki9 hours ago
        When I was a teen I had no experience with software development. Then I went to school and learned about it. Now I&#x27;m making money doing this thing because I became quite good.<p>The world didn&#x27;t fit around me, so I made &quot;me&quot; fit around &quot;the world&quot;. I bet those stubborn dinosaurs can learn a new trick or two also, if management lets them do it during working ours...
      • RagnarD8 hours ago
        Huh? <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;desktop&#x2F;setup&#x2F;install&#x2F;windows-install&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;desktop&#x2F;setup&#x2F;install&#x2F;windows-instal...</a><p>Also, WSL (Windows Subsystem for Linux) has been baked into Windows for a long time and makes it very easy to play with Linux, as does using the Hyper-V VM system. Any developer unfamiliar with Linux because they use Windows, has little excuse.
        • pjmlp5 hours ago
          Agreed, even game devs that ignore Linux as target for their AAA games, actually tend to use Linux for game servers, the age of IIS with .NET&#x2F;ISAPI is long gone, except for legacy code stuck in .NET Framework.<p>Modern .NET did not went cross platform by accident, and Java development has always been &quot;develop on Windows deploy on UNIX&quot;, in corporations where Mac tends to have little presence.
        • venatiodecorus1 hour ago
          docker&#x27;s sandboxes are cli only atm
      • huflungdung9 hours ago
        [dead]
    • dist-epoch9 hours ago
      An Ubuntu Server VM, like the ones started by Incus, use at least 512 MB of RAM per instance. If you spawn 10 sandbox VMs, you already pay 5 GB RAM just to sit there idle. You also pay a CPU cost, you have 10 kernels managing stuff, but arguably it doesn&#x27;t matter that much given CPU core counts.<p>I use something in between - a single Ubuntu VM, into which I spawn multiple Incus LXC containers for the agents. The containers only use 50 MB or so per instance (separate systemd, ...). This way I pay the VM RAM tax only once, and the agents are still contained inside the VM if they manage to escape the LXC containers.
      • TacticalCoder4 hours ago
        Yeah this basically. I differentiate between &quot;containers I wrote&quot; (where I packaged the app&#x2F;wrote the OCI &quot;Dockerfile&quot; &#x2F; container file) and &quot;containers from other people&quot;: all those I wrote (for our own use) go into one VM, while all the other containers go into another VM. Then I&#x27;ve got a third VM for containers for the AI agents.<p>This way I don&#x27;t pay tens of VMs &quot;tax&quot; but basically only three (plus one or two VMs I use for testing enhancements to my VMs provisioning &#x2F; optimization &#x2F; securing setup, when I work on that).<p>I don&#x27;t use LXC (I could) but regular containers, inside VMs.<p>I&#x27;ll look into the stripped down &quot;micro&quot; VMs but then I don&#x27;t spend my days launching VMs&#x2F;shutting them down so it&#x27;s not a big deal.
    • dizhn11 hours ago
      That&#x27;s a full VM. Microvms are much smaller and they start up very very fast. In miliseconds.
    • randomint6410 hours ago
      [dead]
  • PufPufPuf6 hours ago
    I built &quot;Locki&quot;: something similar but open-source! A bit different approach -- single VM with Incus containers -- focusing on speed of spinning up new sandboxes and integraton with git worktrees. The core grievance that motivated me was the lack of docker&#x2F;kubernetes support in existing sandboxing tools, with Locki there&#x27;s no chance of footguns like &quot;two agents rebuild :latest tag at the same time&quot;. Give it a try: <a href="https:&#x2F;&#x2F;github.com&#x2F;JanPokorny&#x2F;locki" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JanPokorny&#x2F;locki</a>
    • katspaugh1 hour ago
      Looks cool!<p>I took a similar approach with <a href="https:&#x2F;&#x2F;runmachine.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;runmachine.dev&#x2F;</a> but later switched to OrbStack for iOS development.
  • hokkos11 hours ago
    Wow, I hope one day Linux will be able to support the exclusive MacOs&#x2F;Windows technology of Docker Sandboxes.<p>(it&#x27;s in the doc, but kinda strange to not see some instructions on the main page, probably distro related)
    • stefanka11 hours ago
      What about bubblewrap? It also provides a sandbox
      • SwellJoe9 hours ago
        Yes, bubblewrap is superior to Docker for this. I wrote a tool to use bubblewrap for the purpose. It needs a tool to start it, or is at least much more convenient with a tool, because you need to take your session&#x2F;auth data into the container, and if you want the agent to be able to start containers (agents love containers) within the container, you need some config magic mounted inside. You could manually do all that, or do it with a shell script, as well. But, this is how I did it, and you&#x27;re likely to run into all the same little quirks I ran into:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;swelljoe&#x2F;flar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;swelljoe&#x2F;flar</a>
        • stefanka4 hours ago
          Interesting. I’ve been trying to use bwrap, slirp4netns, and mitmproxy to create a simple Python script to get save shell for development. But it’s a huge time sink (and I might resort to podman)
    • crabmusket11 hours ago
      There&#x27;s always <a href="https:&#x2F;&#x2F;github.com&#x2F;mensfeld&#x2F;code-on-incus" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mensfeld&#x2F;code-on-incus</a>
    • ethagnawl5 hours ago
      Whoah. I took for granted it&#x27;d work on Linux.
      • macNchz5 hours ago
        It does, for whatever reason the marketing page doesn’t advertise it but the docs have Linux instructions: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;</a><p>I’ve been using this pretty extensively for a few months on Mac and Linux and have been super happy with it.
    • ai_fry_ur_brain11 hours ago
      [dead]
  • sureglymop10 hours ago
    What is the main benefit over doing something like:<p><pre><code> docker run --runtime krun --rm -it -v $(pwd):&#x2F;workspace&#x2F;$(basename $(pwd)) -w &#x2F;workspace&#x2F;$(basename $(pwd)) --network restricted-net ghcr.io&#x2F;openai&#x2F;codex-universal:latest sh </code></pre> That runs the codex OCI in a qemu microvm. From what I can see, more fine grained network and filesystem access control as well as convenience?
    • mdavidn4 hours ago
      Aside from hiding agent credentials from the agent, it also runs an isolated Docker Engine for the agent to use freely.
    • codethief6 hours ago
      Yes, pretty much, except for one detail:<p>&gt; That runs the codex OCI in a qemu microvm.<p>AFAIU it&#x27;s actually the other way around: krun spawns a libkrun-based (not QEMU-based) VM inside a crun container. Source: <a href="https:&#x2F;&#x2F;github.com&#x2F;libkrun&#x2F;libkrun&#x2F;discussions&#x2F;538#discussioncomment-15765542" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;libkrun&#x2F;libkrun&#x2F;discussions&#x2F;538#discussio...</a><p>So with your solution you get the additional security benefit of containerizing the hypervisor on the host.
    • defraxi9 hours ago
      The credentials part...<p><a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials&#x2F;</a>
      • ShinyLeftPad8 hours ago
        It seems to do a good job of not stating the actual threat model anywhere.
  • codethief6 hours ago
    To everyone sharing their favorite container-based sandboxing solution: Docker Sandbox does <i>not</i> use containers for isolation. It spawns the workload in a libkrun-based micro VM, which has vastly different security properties.
    • akdev1l6 hours ago
      Do you mean like Podman has supported for years…?<p>eg: <a href="https:&#x2F;&#x2F;josecastillolema.github.io&#x2F;podman-wasm-libkrun&#x2F;#libkrun" rel="nofollow">https:&#x2F;&#x2F;josecastillolema.github.io&#x2F;podman-wasm-libkrun&#x2F;#libk...</a>
  • benguild8 hours ago
    Apple Container is an interesting work in progress: <a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container</a>
    • gregwebs5 hours ago
      I am developing a project that makes running in Apple Container (Docker is an alternate runtime for Linux) more convenient: <a href="https:&#x2F;&#x2F;github.com&#x2F;gregwebs&#x2F;claude-contained&#x2F;" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gregwebs&#x2F;claude-contained&#x2F;</a><p>It blocks network access by default, mounts only what you specify, and you can add a customization layer. This is all done in the container itself (srt for network blocking). It doesn&#x27;t implement a central point for secret sharing, MCP exposure, etc. So it might not have enough features for some but it works well for my needs.<p>I just found through this thread yoloai which has an apple container backend, so its quite similar using that. My main issue would be that network access is allowed by default. <a href="https:&#x2F;&#x2F;github.com&#x2F;kstenerud&#x2F;yoloai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;kstenerud&#x2F;yoloai</a><p>Several other projects listed here use libkrun which is an alternate implementation that works with Mac&#x27;s HVF. smolvm, microsandbox, podman (with likrun backend), gondolin.
  • dhchun12034 hours ago
    Neither of the recent ones was actually a container escape though. The OpenAI one in July found a misconfig in the sandbox network, and Kimi K3 last week just walked out to grab answers off GitHub during an eval.<p>Both went through stuff the sandbox was set up to allow.
  • karakanb11 hours ago
    I got excited for this not because this didn&#x27;t exist before, but because Docker putting their weight on this would imply a broader adoption and better integration in the industry. I am sad that they are asking for a login here though, which doesn&#x27;t make any sense to me.
    • KolibriFly11 hours ago
      That&#x27;s docker, man. Tomorrow they&#x27;re gonna add limits on sandbox runs without a premium account too
    • rvz10 hours ago
      microVMs (firecracker) have existed for years. This is not new.
  • dethos10 hours ago
    The other day I saw this: <a href="https:&#x2F;&#x2F;nono.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;nono.sh&#x2F;</a><p>Haven&#x27;t tested it yet, but it seems to address the same issue as Docker Sandboxes, but in a different way.
    • speedgoose9 hours ago
      I have tested it and the big advantage is that is has access to the local development tools.<p>But it’s not as well sandboxed for sure.
      • lemontheme4 hours ago
        Nono has been my daily driver since the start of the year. It&#x27;s not a perfect sandbox -- that&#x27;s for sure. For example, the default network rules let you escape via a global TMUX server. <i>But</i> it is extremely practical. It gives me enough guarantees to feel confident about running in YOLO mode. So far nothing has gone awry.
      • fg1375 hours ago
        As you as your Go build fails because you haven&#x27;t put the local cache dir in the &quot;allowed directories&quot;, you&#x27;ll understand how painful this is, as well as most tools based on bubblewrap&#x2F;sandbox-exec. There is a difference between a clean environment with standard setup vs a layer on top of everyone&#x27;s existing tools&#x2F;setup, especially in a enterprise environment.<p>(I&#x27;m sure you can spend time to come up with a proper bubblewrap configuration that allows go build to succeed, but it&#x27;s probably not worth the effort.)
      • LeBit8 hours ago
        Why do you say that?<p>Eg, if used with Colima in macOS, it means I can run a devcontainer in an isolated VM and Nono inside the devcontainer can restrict a lot what can and cannot be done.<p>You get credentials proxying and network outbound limits.<p>How is Docker Sandbox better sandboxed?
        • speedgoose3 hours ago
          Yeah but that’s Colima and Nono then. Not only Nono.
  • navigate831011 hours ago
    I just made my own devcontainer that I copy on any project and load whatever harness I want in that repo. Harnesss&#x27; config and auth are simply mounted from the host, so no setup required at all.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;iodize6399&#x2F;ai-devcontainer&#x2F;tree&#x2F;main&#x2F;.devcontainer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;iodize6399&#x2F;ai-devcontainer&#x2F;tree&#x2F;main&#x2F;.dev...</a>
    • anentropic8 hours ago
      Yeah I also recently started using devcontainers for this<p>I quite like the &#x27;features&#x27; layer system, adding extra tools to container in a declarative plugin-like way<p>Being able to &#x27;safely&#x27; run with skip permissions has been a gamechanger
    • cvak7 hours ago
      yeah, I actually just re-use claude-code .devcontainer: <a href="https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;tree&#x2F;main&#x2F;.devcontainer" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;anthropics&#x2F;claude-code&#x2F;tree&#x2F;main&#x2F;.devcont...</a><p>I especially like the firewall it has.
      • fg1375 hours ago
        I don&#x27;t get how it works, or works well -- presumably those domains are behind CDNs, and IP addresses are unpredictable. So the firewall allows traffic to specific IPs that are resolved at the time the script is run, but not after that? What if the same domain is resolved again without going through the cache, and it becomes a different IP?<p>And even if that works, this is a very short list. As soon as you reach for Go, Rust tooling etc nothing works. So you need to manually maintain this list which is nothing but painful trial and error.
    • ai_fry_ur_brain10 hours ago
      [dead]
  • iamspoilt3 hours ago
    I recently wrote a blog post on using Tart for Macs for something similar that docker is doing here but with better persistence and control. My take is that the Tart approach is superior to this as it gives you a full dev machine with a single command line that allows agents to access files on host, install packages, maintain the vm and do whatever they want to do without compromising the host OS.<p><a href="https:&#x2F;&#x2F;www.mrafayaleem.com&#x2F;blog&#x2F;sandboxing-claude-cli-with-tart-on-apple-silicon" rel="nofollow">https:&#x2F;&#x2F;www.mrafayaleem.com&#x2F;blog&#x2F;sandboxing-claude-cli-with-...</a>
  • mikedelfino4 hours ago
    Since everyone is sharing their setup, here’s my approach, just to give people an idea of how others are doing it, however impractical it might look: I run a full Linux VM (with a GUI) on my Linux host. I connect via virt-viewer to run Claude Desktop, as I’m not a fan of using the terminal for this.<p>The VM sits on its own libvirt network in a dedicated firewall zone, and specific directories are shared via filesystem passthrough. To keep the agent from accessing anything related to Git, the actual gitdir is stored on a separate path outside the mount point.<p>I review the git diff manually and commit it from the host.
    • everforward4 hours ago
      Do you find the permanence of a full VM useful? I’ve wondered about something like this but always defaulted to Docker for much the same reasons people use stuff like Ansible. I’m afraid the LLM will heavily customize its environment and I’ll be unable to replicate it when my laptop dies or I can’t upgrade the OS or whatever.<p>Then again, I guess GUI is a pain in Docker. I tend to operate through Zed and an ACP harness though, so my GUIs are sort of “inside the container” anyways.
      • Grimburger3 hours ago
        &gt; I’m afraid the LLM will heavily customize its environment and I’ll be unable to replicate it<p>Would suggest Hashicorp Packer or cloud-init for deterministic images, not hard to setup or use. LLM&#x27;s have little problem with them either I find.<p>If you need quicker environment rebuilds consider using something smaller like alpine as the base, though once you setup a golden image even heavy things like debian are fine.
      • mikedelfino3 hours ago
        The VM is allocated 2 cores and 4GB of RAM. For my workload, it doesn&#x27;t feel any slower than running it directly on the host. The few times I&#x27;ve checked memory usage, it wasn&#x27;t anywhere near full as far as I remember.
  • reddozen12 hours ago
    If any AI company was doing serious engineering isolated containers would have been a prerequisite to using their tools.
    • globular-toast11 hours ago
      Anyone serious about security will want to bring their own sandbox anyway, not trust these, often proprietary, agents. I&#x27;ve never run an agent outside a sandbox. My first bubblewrap script for `claude` is now over a year old. The tools are available and if you learn to use them you can run <i>any</i> program in a sandbox.<p>But, in any case, why put in effort doing something people don&#x27;t expect or ask for? We can assume everyone running agents is either a) using their own sandbox, or b) doesn&#x27;t care. I think we can guess which category most people fall into. You could maybe argue about responsibility, but I don&#x27;t think you can argue about &quot;serious engineering&quot;.
      • topspin8 hours ago
        &gt; Anyone serious about security will want to bring their own sandbox anyway<p>Exactly. It&#x27;s not as though it&#x27;s difficult. It never occurred to me to not do this from day one, and it astonishes me that anyone runs this stuff bare metal. Since then, I&#x27;ve brought several other people on board, and that&#x27;s all they&#x27;ve ever seen: I don&#x27;t think they&#x27;d know how to run outside a sandbox, and that&#x27;s just fine.
  • laserlight12 hours ago
    Requires login. Garbage.
    • binsquare11 hours ago
      I build a OSS lightweight, portable VM for those that don&#x27;t want lock ins: <a href="https:&#x2F;&#x2F;github.com&#x2F;smol-machines&#x2F;smolvm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;smol-machines&#x2F;smolvm</a>
      • nicoty11 hours ago
        I have a solution based on Nix that can be used to generate reproducible container images: <a href="https:&#x2F;&#x2F;github.com&#x2F;nothingnesses&#x2F;agent-images" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nothingnesses&#x2F;agent-images</a> . It lets you customise which agents, harnesses, or any other packages you want included in the VM and it uses `agent-box` for sandboxing.
        • binsquare10 hours ago
          wonderful, will try to test this in smol machines as well
      • dizhn11 hours ago
        This looks like gvisor but is a vm like firecracker right? Any reason you did not want to use firecracker?<p>(I am testing this now as a backend for my pet project which currently supports firecracker and gvisor. No network.)
        • binsquare10 hours ago
          It&#x27;s a batteries included alternative to firecracker with a couple of new ideas tossed into the mix i.e. portable like a container (bake into a single file and rehydrate the vm anywhere), dynamic resource allocation, etc.
    • Alifatisk12 hours ago
      What? Does using sbx require login? Bummer.
      • dSebastien12 hours ago
        Yes and they have a specific subscription for managing sandbox policies across the enterprise: Docker AI Governance
        • dSebastien12 hours ago
          You can create those manually but if you want to enforce those then you need the subscription
  • pkhamre11 hours ago
    I started building my own isolated and security-hardened docker image for OpenCode about half a year ago. Been using it daily.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;pkhamre&#x2F;opencode-docker" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pkhamre&#x2F;opencode-docker</a>
    • dejw8 hours ago
      if I was paranoid about security I wouldn&#x27;t use docker in the first place.
  • d2p9 hours ago
    Does this support Linux yet? When I previously looked it did not (the reason being that they were already using VMs on Windows&#x2F;macOS but not on Linux). Every time I see an announcement I think &quot;great, they must&#x27;ve added Linux now then&quot;, but the linked pages always have Windows + macOS instructions but not Linux.<p>All the open GH issues about supporting Linux that I subscribed to have gone unresponded to.<p>OpenShell looks like a good alternative, but it still has &quot;Do not use in production&quot; plastered all over the website, which doesn&#x27;t fill me with confidence yet
    • narinciye8 hours ago
      It must be a joke that this tool is not supported on linux yet, although docker is built on top of linux containers. Shame on docker.
    • SwellJoe9 hours ago
      I think Linux has a better solution than Docker.<p>I wrote a tool to use `bubblewrap` to containerize any agent (at least all the agents I&#x27;ve used a couple of times), and bind mount the system stuff read-only, so the agent has your &quot;usual&quot; environment, but they can only see the project. Their history persists (either through a bind mount or a &quot;shadow&quot; copy of the history that only the wrapped agent sees), the agent can still create and manage containers of its own using podman&#x27;s rootless mode, etc. It&#x27;s nearly instant to start because it&#x27;s just a namespace (plus a few copied files for the container support and session history); no container needs to be built&#x2F;fetched&#x2F;updated&#x2F;whatever. bubblewrap is extremely well-tested as it is used by flatpak and several other large projects, so I trust it quite a bit (more than I trust Docker).<p><a href="https:&#x2F;&#x2F;github.com&#x2F;swelljoe&#x2F;flar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;swelljoe&#x2F;flar</a>
      • fg1375 hours ago
        bubblewrap may work well for you and your specific workflows&#x2F;projects but not in an enterprise setting where everyone already has a different setup on the host and needs something different inside the container. It&#x27;s impossible to deploy a solution like that with bubblewrap -- configuration itself is going to be a nightmare. Which is why Docker Sandbox is aimed at teams&#x2F;enterprises.
        • SwellJoe2 hours ago
          Yeah, Podman would be a better basis for that kind of use case. I&#x27;d built an early implementation of `flar` with Podman first, but it was more annoying than simply having my regular dev environment instantly available in the container. But if you need a bunch of different dev environments, instead of just your usual one, then sure, a bunch of different custom containers makes sense.<p>But, Docker is rarely the right way to manage containers on Linux, IMHO.
          • fg1372 hours ago
            &quot;Docker Sandbox&quot; is not docker. Completely different (and almost unrelated) products.
    • Narushia8 hours ago
      I was able to install it on Fedora from the .rpm distributed on their GitHub releases: <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases&#x2F;releases" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases&#x2F;releases</a>
    • duxuev9 hours ago
      I also hit the same issue recently. No Linux and no Windows on arm. AI sandboxing has a lot of options but none feel complete just yet. It&#x27;s hard to commit to something, especially if reviewing tools to aide in company policies.<p>Regardless, I&#x27;m hoping something that isn&#x27;t behind a login screen is going to win out.
      • cpuguy834 hours ago
        I&#x27;m fairly certain that docker sandbox is based on <a href="https:&#x2F;&#x2F;github.com&#x2F;containerd&#x2F;nerdbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;containerd&#x2F;nerdbox</a> which you can run on Linux.
  • llimllib7 hours ago
    Operating systems ought to be providing us the utilities we need to safely sandbox processes (agent or otherwise), but they appear to not be interested in the job
    • pjmlp4 hours ago
      Apple, Microsoft, IBM, Unisys, HP, Oracle&#x2F;Sun have done that for a while now.
      • llimllib4 hours ago
        Poorly! Apple’s facilities for this are the ones I know best, and they are woefully insufficient
        • pjmlp4 hours ago
          Well, the features announced at WWDC 2026 naturally are yet to be made available in a mature form.
  • c0rruptbytes12 hours ago
    Reminds me of sandboxy - <a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;containerization&#x2F;tree&#x2F;main&#x2F;examples&#x2F;sandboxy" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;containerization&#x2F;tree&#x2F;main&#x2F;examples...</a><p>Also if your thing doesn&#x27;t work with `pi` out of the box, then low effort
    • ucyo2 hours ago
      Just put the following to your `.config&#x2F;sandboxy&#x2F;agents&#x2F;pi.json`<p>{ &quot;allowedHosts&quot;: [ &quot;<i>.anthropic.com&quot;, &quot;</i>.claude.com&quot;, &quot;<i>.pi.dev&quot;, &quot;npm.org&quot;, &quot;</i>.npmjs.org&quot;, &quot;<i>.github.com&quot;, &quot;</i>.githubusercontent.com&quot;, &quot;<i>.pypi.org&quot;, &quot;</i>.pythonhosted.org&quot; ], &quot;baseImage&quot;: &quot;docker.io\&#x2F;library\&#x2F;node:22&quot;, &quot;displayName&quot;: &quot;Pi&quot;, &quot;environmentVariables&quot;: [ &quot;IS_SANDBOX=1&quot; ], &quot;installCommands&quot;: [ &quot;npm install -g --ignore-scripts @earendil-works&#x2F;pi-coding-agent&quot;, &quot;npm install -g global-agent&quot; ], &quot;launchCommand&quot;: [ &quot;pi&quot; ], &quot;mounts&quot;: [ { &quot;containerPath&quot;: &quot;\&#x2F;root\&#x2F;.pi&quot;, &quot;hostPath&quot;: &quot;~\&#x2F;.pi&quot;, &quot;readOnly&quot;: false } ] }⏎
  • aki2374 hours ago
    I&#x27;m currently facing this issue. I&#x27;ve resorted to implementing my own execution environment albeit limited.<p>It goes like this: - bash script parser + interpreter (with hooks for things like file open, execute etc.,) - wasm executor for execution. - wasm implementations of common tools like coreutils, grep, sed etc., from the uutils project. - wasm implementation of python by a VMware backed project. - entirely virtualized filesystem using Go&#x27;s io&#x2F;fs.FS. (tmp dirs can be implemented using any backend)<p>Works like a charm for the limited usecase I have. There are definitely some drawbacks with threading and especially with preopens in wasm. But a cheap sandbox for simple file explorations and minimal computations.
  • myshapeprotocol5 hours ago
    Disposable and isolated sandboxes are the right way to handle untrusted agent execution. Great architectural pattern.
  • arscan4 hours ago
    Not a substantive comment on content but hopefully constructive feedback on presentation:<p>Holy moly, on mobile I was trying to read the example console screenshots&#x2F;snippets and then it would just unexpectedly change. Took me a little while to figure out it’s some kind of carousel for the examples, and not more screenshots&#x2F;snippets loading and pushing down content (or me going crazy). Please don’t do this on mobile sites, just let me scroll through the examples!
    • mikesir873 hours ago
      Thanks for the feedback! Will pass it on to the web team to get this more mobile-friendly.
  • yellow_lead11 hours ago
    I know some people want to run their agents when their computer is off, but I imagine a solution like this will be much more common than paying for a remote sandbox (i.e on fly.io or exe.dev), especially because it&#x27;ll be free.<p>Though, they need to remove the login requirement.
    • dbmikus3 hours ago
      Agreed! I think the best user experience is:<p><pre><code> 1. You can run sandboxes locally 2. You can control them securely over the internet, for when you&#x27;re on the go 3. You can migrate them to cloud VMs if you want </code></pre> If I can toot my own horn, I&#x27;m trying to build that :)<p>Still early and the local sandboxes are experimental right now<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika</a>
  • Schlagbohrer11 hours ago
    Can someone more versed in Docker explain to me how this is different than building my own docker container from a Dockerfile for using Pi agent harness? That&#x27;s what I do currently. I use Docker Desktop in windows as the backend for that.
    • Hugsun11 hours ago
      Docker containers use Linux kernel features to create an isolated environment, running on the same machine as docker is. This creates a virtual machine, with its own kernel, and runs the container in there. This gives stronger isolation and security guarantees.
      • eloisius10 hours ago
        I have the same question as GP. Your answer helps a little but not really. I might be naive, but I was under the impression that malicious code escaping a docker image and running amok on my host system was not something I should be too worried about. Especially if I run docker in rootless mode. Is that wrong?<p>For clarity I’m actually using podman, not Docker.
        • angry_octet10 hours ago
          Oh no, you should definitely be worried about that. Podman might make it harder to escalate to host root, or manipulate other containers, but it is still vulnerable.<p>Now I&#x27;m curious to know how hardened the Docket Sandbox orchestration interface is. I guess we can assume they have run Mythos against it for a few weeks maybe? It&#x27;s unclear.
          • eloisius10 hours ago
            Unsettling. I mean, is there any reasonable way to develop software in 2026? I&#x27;ve already sworn off ever installing npm directly on my host. Containerizing everything is laborious enough, but running a separate VM for everything?
            • mihaelm9 hours ago
              You just need to work out the threat model for what you&#x27;re working on. For trusted containerized workloads, where the attack surface is minimal, just containerization is fine. However, agents can do just about anything on your computer if you allow it and people aren&#x27;t really shying away from `--dangerously-skip-permissions`, so better hardening (VMs, microVMs) is desirable.
          • cognitiveinline10 hours ago
            BS.<p>Unless we&#x27;re talking 0-day&#x2F;CVE, running an unprivileged container is as trustable as a VM. The only difference is how strictly you want to hold the memory&#x2F;CPU bar. Infact on linux, containers are more lightweight than VMs.<p>So yeah, not &quot;vulnerable&quot;.
            • angry_octet5 hours ago
              LLMs are great at finding 0-day, and people are rubbish at updating their containers and hosts to patch b-day.<p>Containers have access to the kernel ABI, and as shown in the latest kernel exploits, all the memory handling surface that exposes. The virtualisation interface, offering fewer services, is significantly harder.<p>Containers are obviously lighter than VMs, both to start and to schedule, but firecracker is pretty fast. gVisor pays overhead per syscall vs at startup.<p>So yeah, more vulnerable.
              • teravor1 hour ago
                gvisor&#x27;s overhead is mostly IO. especially if you use the KVM backend.
              • cognitiveinline4 hours ago
                Got it. 0 days are possible so throwaway containerization. You should blog about it, will help millions of developers and companies. Heck, even consult with the hyperscalers - they will be riddled with their workloads.
                • angry_octet1 hour ago
                  Who do you think created firecracker? gVisor?
      • sureglymop10 hours ago
        That depends on the runtime though. For example, libkrun lets you do this:<p><pre><code> docker run --runtime krun hello-world </code></pre> That starts&#x2F;runs the OCI in a qemu microvm.
      • LeBit8 hours ago
        When the host is a Mac or window , docker always run in a VM anyway.<p>On Linux, you can run docker directly on the host, but you can also very easily setup a vm with incus and run docker from there.
    • angry_octet10 hours ago
      It&#x27;s a VM.
  • OutOfHere18 minutes ago
    Is it open source or not? What&#x27;s the link to the code? There is no code at <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases</a>
  • espadrine9 hours ago
    Models start going to extreme, damaging lengths to achieve ambiguous prompts[0]. Having good sandboxes is now a must IMO.<p>But sbx is a bit annoying to use with OpenCode for instance (which has zero sandboxing by default, unlike codex CLI or Claude Code). You cannot easily change ~&#x2F;.config&#x2F;opencode&#x2F;opencode.jsonc AFAIK.<p>[0]: Black Hat OpenAI-Hugging Face incident: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=87DyyMV0kCY&amp;t=1021s" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=87DyyMV0kCY&amp;t=1021s</a>
    • eli9 hours ago
      That incident was with a model that had the guardrails disabled.<p>Still obviously you should run all untrusted code in a sandbox, but extreme actions like that would be very unusual with the model that shipped.
    • dbmikus3 hours ago
      What&#x27;s your problem with the OpenCode config?<p>My startup (<a href="https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;gofixpoint&#x2F;amika</a>) copies agent configs into local or cloud sandboxes<p>We run OpenCode currently, but need to improve the setup for users, so would like understand more of the issues you have sandboxing it, if you can share
  • weinzierl10 hours ago
    Before you use no sandbox at all use this or one the many similar projects but it&#x27;s alway worth remembering that Docker is not a security boundary. It never has been meant to be and never will become one.<p>cgroups are a mechanism designed for hierarchical organization and resource distribution. Against a malicious and capable actor, and that is how we <i>have</i> to treat AI agents, cgroups will not withstand.<p>Also, the kernal is an interface too big for what an AI agent needs and is therefore offering a gigantic attack surface completely unnecessarily.
    • TheRoque10 hours ago
      Would you say podman is better, or is it the same as docker ?
      • weinzierl10 hours ago
        In general running containers rootless is better from a security standpoint and podman makes this much easier. So, yes.<p>This is not my main point though. Both are based on cgroups and cgroups are the wrong tool for the job.
        • TheRoque9 hours ago
          Wouldn&#x27;t it need a super critical exploit, I mean zero-day vulnerability, to escape from that kind of sandbox ? And if you think further, then isn&#x27;t that risk also applicable to pretty much any kind of sandboxing ?
          • weinzierl9 hours ago
            Container escapes are more common than you think. Common enough for AWS not to rely on containers for their serverless functions, common enough for Google to say: <i>&quot;Untrusted code shouldn&#x27;t rely on the container security boundary [..]&quot;</i> [1]<p>The same is not applicable for any kind of sandboxing for two reasons:<p>1. The boundary is in the kernal’s own code, enforced by the thing you are trying to be protected from. -&gt; Use a VM<p>2. The kernal is a gigantic attack surface -&gt; Use gVisor<p>[1] <a href="https:&#x2F;&#x2F;docs.cloud.google.com&#x2F;kubernetes-engine&#x2F;docs&#x2F;resources&#x2F;security-patching" rel="nofollow">https:&#x2F;&#x2F;docs.cloud.google.com&#x2F;kubernetes-engine&#x2F;docs&#x2F;resourc...</a>
            • LeBit8 hours ago
              What if you use tools like bubblewrap or nono inside the container?<p>Say I want to use pi inside a container. If I wrap pi within a bubblewrap or within nono, how is that less secure than using a vm?<p>Also, I think most people run containers inside VMs anyway and not directly on their hosts (on Mac and windows you have to use a vm anyway).
              • akdev1l6 hours ago
                bubble wrap is just doing the same cgroups work
                • LeBit5 hours ago
                  Depending on the configuration, bubblewrap can substantially reduce the attack surface.<p>It doesn’t change the fact a malicious process is still attacking the same kernel , but it can reduce what it can do to that vm.
    • dboreham5 hours ago
      Which is fine but this thread is about a feature that provides hypervisor isolation, not cgroups.
    • realexweb10 hours ago
      [flagged]
  • nezhar12 hours ago
    Open source alternative with podman support and local telemetry collection <a href="https:&#x2F;&#x2F;github.com&#x2F;VibePod&#x2F;vibepod-cli" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;VibePod&#x2F;vibepod-cli</a>
    • biehl10 hours ago
      Looks really nice. Would it be easy to make a qwen-cli wrapper?
  • meffmadd11 hours ago
    I tried Docker Sandboxes but last time I checked you could not configure custom volume mounts, making more complex setups impossible. For work I need two directories for context for the agent to have access to…
    • notsirius2 hours ago
      This was added recently <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;usage&#x2F;#multiple-workspaces" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;usage&#x2F;#multiple-workspa...</a> ` sbx run claude ~&#x2F;project-a ~&#x2F;shared-libs:ro ~&#x2F;docs:ro`
    • mikesir873 hours ago
      When starting a sandbox, you can specify the mountpoints you want. It just defaults to the current directory. You can also specify some of those mounts as read-only as well.<p>Example: sbx run claude .&#x2F; ..&#x2F;another-project:ro
    • cyberpunk11 hours ago
      put them both inside another directory and share that? what am i missing?
      • meffmadd7 hours ago
        Of course, but that was not part of my workflow and I found it quite strange that this was simply not possible especially when docker-compose can easily do this
  • mikodin4 hours ago
    Does anyone have a solution for iOS development?<p>I was all in on sandboxes and safehouse for my agents but the moment I got into iOS development it felt like my hand was forced to just run Claude &#x2F; codex &#x2F; pi directly on my machine because nothing else could do the dev loop.<p>It’s been a painful reality for me, I’m going against core pieces of how I feel I should be interacting with agent harnesses and yet, I need to get the work done so
    • followercode3 hours ago
      Hey, I work at Docker and my team works on mcp integration with sbx. A solution I&#x27;ve been trying is this:<p>1) Enable the xcode mcp server: <a href="https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;xcode&#x2F;giving-external-agents-access-to-xcode" rel="nofollow">https:&#x2F;&#x2F;developer.apple.com&#x2F;documentation&#x2F;xcode&#x2F;giving-exter...</a> 2) Add the xcode mcp server to sbx: `sbx mcp add xcode --command xcrun --args mcpbridge` 3) When you create the sandbox, use `--static-mcp xcode`. For example: `sbx create --static-mcp xcode claude .`<p>Make sure you have at least v0.38.0 of sbx. This makes a bridge from inside the sandbox to the xcode tools on your host, so be aware that it can run whatever tools you give it on the host. But the agent itself is still sandboxed.
      • notsirius2 hours ago
        Also had this pain point as an sbx user. Given the risk this adds to the host, would be great if there were more docs on how to setup kits to make it safer (e.g. disable yolo mode).
        • followercode45 minutes ago
          This may help you: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;governance&#x2F;access-controls&#x2F;mcp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;governance&#x2F;access-contr...</a>
  • bob102911 hours ago
    The sandboxing problem is perhaps the greatest justification for doing agent integration via existing human interfaces rather than low level shell access. Granting access to shell is a super obvious path (it&#x27;s easy) so I can understand us wanting to fight for it. But we should consider the other paths as well before we make our final stand.<p>Automating browsers with LLM agents properly requires a lot more work than Process.Start into powershell, but the advantages can be immense once you have achieved integration this way. Incrementally maintaining this integration is generally easy because human users cannot tolerate rapid changes either.<p>It&#x27;s a hell of a lot easier to convince management to adopt a robot that looks and acts like a human employee than one that looks like a combine harvester. The combine is far more efficient, but it is also totally indiscriminate. Nothing constrains its appetite except for the invisible fence imposed by GPS. The amount of infrastructure required to keep farm equipment from running astray is incredible. In the context of agriculture, the added complexity is definitely worth it. We don&#x27;t want to have to recreate the same thing with our technology if it can be avoided. Sandboxes and security isolation boundaries are not things to aspire to. These are costs to be paid for admission to something more valuable.
  • celrenheit7 hours ago
    I tried it and it worked great at first but I had multiple issues with it, the disk space usage was growing significantly, I need to login multiple times for each sandbox, it&#x27;s closed source and not possible to customize to my need.<p>One other thing, I want to be able to handle multiple repos in the same sandbox and have a standard workflow around worktrees (one worktree per repo, all the worktree mounted in the VM).<p>These were some of the reasons that led me to build: Clawk - <a href="https:&#x2F;&#x2F;github.com&#x2F;clawkwork&#x2F;clawk" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;clawkwork&#x2F;clawk</a>
    • notsirius2 hours ago
      &quot;login multiple times for each sandbox&quot;<p>I&#x27;ve been using sbx for a bit now, and there have been some old versions that had this problem, but haven&#x27;t had this problem in a while when using secrets <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;get-started&#x2F;#authenticate-your-agent" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;get-started&#x2F;#authentica...</a>
  • mifydev1 hour ago
    Is there an SDK? Can I create the containers programmatically?
  • pkulak4 hours ago
    I’m sure they fixed this, but since everyone runs docker containers as root… is every file this thing writes going to be root owned? Does it have root access to any resource to give it visibility to?
  • dannyw11 hours ago
    I’d rather use another open source solution that doesn’t require a signup, and less likely to get rugpulled.<p>There is no reason to require a login for creating local mini sandboxes.<p>If you’re on Apple, native solutions like “container-machine init” come built in and are pretty good, if you’ll only be on Apple hardware.
  • devttyeu10 hours ago
    I did try to use those for some stuff: * Login requirement is something else * It&#x27;s closed source last I checked * Pretty slow&#x2F;unstable<p>There are many better namespace&#x2F;container based options, VMs may be moderately more secure but when you more or less trust your agent and code you can do with lesser containment. And with the recent CVEs in kvm honestly there isn&#x27;t a huge deal of difference vs namespaces.<p>(I&#x27;m building <a href="https:&#x2F;&#x2F;xbin.dev&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xbin.dev&#x2F;</a> for some time now for managing my personal code&#x2F;apps, a project which started specifically after Docker Sandboxes broke on me some time ago)
  • franze7 hours ago
    Here is my solution which uses the Apple Virtualization Framework<p><a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;app&#x2F;aifcc-ai-first-computer&#x2F;id6782364574">https:&#x2F;&#x2F;apps.apple.com&#x2F;app&#x2F;aifcc-ai-first-computer&#x2F;id6782364...</a><p>als has lots of agents + and typical dev packages (node tooling, python tooling, ....) preinstalled
  • garganzol5 hours ago
    I do not see any value proposition in this - if I need a sandbox, I make one with Dockerfile, Bubblewrap or virtualization. What I am missing? An enforced required login is a net negative value - it means rug pulls in the future.
  • s_ting7655 hours ago
    I use Flatpak&#x2F;bubblewrap instead: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48978112#48980221">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=48978112#48980221</a>
  • GZGavinZhao9 hours ago
    I&#x27;m confused: 1. If I run this on Mac, then inside the sandbox &#x2F; microVM, am I still running MacOS or some Linux distribution? 2. If the only thing that&#x27;s mounted from the host is the $PWD, how does it guarantee that it has all the system libraries that I have installed on my host system? e.g. my `&#x2F;opt&#x2F;homebrew` libraries or `sudo apt install libfoo-dev` headers
    • akdev1l6 hours ago
      Docker uses VMs in non-Linux OS to provide a Linux where containers can actually exist
  • alentred12 hours ago
    I am not sure I understand, how is this different from a devcontainer or other similar techniques?<p>On another topic, can&#x27;t help but notice that &quot;leading coding agents&quot; somehow does not include Pi.
    • alexfortin9 hours ago
      About the missing native support for Pi, I opened this issue long ago in case you want to add some pressure: <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases&#x2F;issues&#x2F;34" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-releases&#x2F;issues&#x2F;34</a><p>To work around that limitation I came up with this <a href="https:&#x2F;&#x2F;github.com&#x2F;shaftoe&#x2F;sbx-template-pi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;shaftoe&#x2F;sbx-template-pi</a><p>So essentially you can get latest Pi&#x2F;Node pulling from that image:<p>`sbx run -t ghcr.io&#x2F;shaftoe&#x2F;sbx-template-pi:latest shell`<p>Like others here I&#x27;m also saddened by the login requirement but at the moment this is the best UX I could find for running sandboxed agents, the &quot;kit&#x2F;mixin&quot; concepts are neat and I make use of them too: <a href="https:&#x2F;&#x2F;github.com&#x2F;shaftoe&#x2F;sbx-template-pi#stacking-the-extras-mixin" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;shaftoe&#x2F;sbx-template-pi#stacking-the-extr...</a>
    • zmmmmm11 hours ago
      it&#x27;s running a full VM so the agent can eg: run docker commands safely etc
  • vira283 hours ago
    I don’t see mention of pi. Does anyone whether it works? I am going to check out.
    • notsirius2 hours ago
      Yup <a href="https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-kits-contrib&#x2F;tree&#x2F;main&#x2F;pi" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;docker&#x2F;sbx-kits-contrib&#x2F;tree&#x2F;main&#x2F;pi</a> <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;kits&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;kits&#x2F;</a>
  • dhruv30065 hours ago
    I think there is a yc company for this - <a href="https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;trycua&#x2F;cua</a>
  • khanhnguyen83865 hours ago
    Finally, a way to run --dangerously-skip-permissions without having a mild heart attack every time the agent decides to rm -rf a mystery directory.
    • TZubiri5 hours ago
      &#x27;adduser agent&#x27;<p>&#x27;su agent&#x27;<p>&#x27;curl domain&#x2F;install.sh | sh&#x27;<p>&#x27;runagent&#x27;
  • cpburns20096 hours ago
    So Docker is finally adding native support for a microVM backend? I wonder how it well it will compare to using the Kata Containers 4 runtime with the KVM&#x2F;QEMU backend.
  • outof12 hours ago
    Like many people, I suspect, I used Claude to write my own agent sandbox that suits my needs very well. Investing my time in a propietary product has become a hard sell.
    • matheusmoreira11 hours ago
      I did the same thing. It was my first &quot;vibecoded&quot; project. I&#x27;ve been using it every day and it&#x27;s great. I&#x27;m writing a custom Rust network stack for it right now. Gonna replace the current nftables firewall with it.<p>As for Docker Sandboxes, I&#x27;ll just ask Sol literally right now to see what it does better than my virtdev, and then I&#x27;ll improve virtdev instead of using Docker.
    • zingar11 hours ago
      Were you following any patterns&#x2F;standards&#x2F;advice on what you needed to protect against? Anything you can point the rest of us to?
      • matheusmoreira11 hours ago
        &gt; Were you following any patterns&#x2F;standards&#x2F;advice on what you needed to protect against?<p>Just the general knowledge that sharing a kernel with untrusted software is too dangerous, that hardware virtualization is an infinitely smaller attack surface and that <i>the entire industry</i> will be in deep shit if people or AI breaks hypervisors.<p>Initial threat model was supply chain attacks but eventually grew to include AI harnesses as well. Not very worried about them hacking me, more about accident prevention.<p>So that means each VM must be running a completely independent kernel that&#x27;s fully isolated from the host&#x27;s file system. They must also have fail closed network filtering built in.<p>&gt; Anything you can point the rest of us to?<p>I have published my virtdev&#x27;s design document.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;matheusmoreira&#x2F;virtdev&#x2F;blob&#x2F;master&#x2F;DESIGN.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;matheusmoreira&#x2F;virtdev&#x2F;blob&#x2F;master&#x2F;DESIGN...</a><p>Yes, it is AI generated.<p>In summary, it&#x27;s a QEMU VM orchestrator with a base OS image and project specific delta images. VM lifecycle is managed by systemd. System level isolation is already pretty good and it already solves the &quot;AI wiped out my $HOME&quot; problem. I&#x27;m currently working on a custom network stack to replace the nftables based firewall.
      • embedding-shape11 hours ago
        You want to prevent the agent&#x2F;others from reaching your home directory and other things. As long as you don&#x27;t mount&#x2F;sync directories&#x2F;files from&#x2F;to the container, so no mounting like &quot;-v $(pwd):&#x2F;app&quot;, but instead copy in, then when done, copy out.<p>And of course, instead of doing the &quot;copy in &gt; copy out&quot; process manually, get your local agent to write a bash script that does that for you, given what directory you&#x27;re in, and you&#x27;re basically G2G.
        • tjoff11 hours ago
          What is the advantage of copying rather than a bind-mount?
          • furst-blumier6 hours ago
            &quot;Oops I deleted everything under $FOLDER – that mistake is on me&quot; doesn&#x27;t kill it on your host system
            • tjoff5 hours ago
              Sure, but all projects are version controlled? You only mount the project dir so you can only loose your current changes - which is the same if you copy...
      • hvb211 hours ago
        What specifically are you looking for? If you start from the premise that it runs as you right now, then that&#x27;s something you can easily improve upon.<p>Start by mounting just your repo and passing in the keys for the agent. Take it from there, it&#x27;s like software engineering, you iterate.<p>When you run into issues you expand the tools in the container available to it.
    • rvz10 hours ago
      Why developers will never pay for their tools.
    • KolibriFly11 hours ago
      [dead]
  • yagop7 hours ago
    I made this as an alternative <a href="https:&#x2F;&#x2F;github.com&#x2F;yagop&#x2F;sandbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;yagop&#x2F;sandbox</a> works on any docker alike (OrbStack)
  • dSebastien12 hours ago
    The one thing I wonder about is how you enforce the usage of Docker Sandboxes vs running the agent on the host directly, apart from scanning machines for binaries
  • _ache_6 hours ago
    I planed to do exactly this, with podman instead of docker, volume support.<p>Like:<p>$ podman run -it --rm -v .:&#x2F;workspace local-dev-ia &#x2F;usr&#x2F;bin&#x2F;oc<p>Configured with a .env file. Hope to do it hopefully before the end of the week.
    • codethief6 hours ago
      &gt; exactly this<p>This is nowhere near &quot;exactly this&quot;. Docker Sandboxes uses micro VMs, you just use regular containers which have completely different security properties.
      • akdev1l6 hours ago
        podman run --annotation=run.oci.handler=krun -dp 8080:8080 -t --rm server-without-wasm
  • fergie10 hours ago
    I use it (sbx), but I don&#x27;t 100% trust that it actually works, and I would prefer something open source where the limits of the sandboxing could be tested and explored.<p>Maybe we should just ssh into separate development machines to ensure real and verifiable sandboxing? (as was totally standard before Docker became a thing)
    • LeBit8 hours ago
      You should research bubblewrap and nono.
  • cv_h9 hours ago
    I wrote a CLI tool that uses QEMU&#x27;s microvm machine type under the hood. It can take any docker image and build a microvm.<p>I use it regularly to run Claude&#x2F;Codex with permission checks disabled.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;cvhariharan&#x2F;mvm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cvhariharan&#x2F;mvm</a>
  • Draiken7 hours ago
    Bubblewrap plus some whitelisting of domains&#x2F;sockets is all you need.<p>Docker is always a pain to use and this way I don&#x27;t have to re-install everything a billion times for every different project.
    • llimllib7 hours ago
      This is what I currently do, but my software uses docker and docker mounts act as a bypass for the file system restrictions, plus docker processes started outside the sandbox allow network proxy escape.<p>Currently, I don&#x27;t allow the agent access to docker, start docker myself, and then do short-lived sandbox-free sessions when the agent needs to do things that interact directly with docker; but that&#x27;s annoying.
  • killerstorm7 hours ago
    Are we sandboxing AI agent harness process, or the environment it executes commands in?<p>Ideally, they should run in _different_ sandboxes.<p>The environment might corrode the harness (e.g. rogue npm&#x2F;pip packet would manipulate agent harness config).
  • pjmlp10 hours ago
    I hardly see how this matters, when Apple and Microsoft already have their own in box solutions for the same problem.<p>Better sandboxing for AI agents is exactly the main reason for containers improvements on macOS and Windows, with a few talks at WWDC, and BUILD.<p>Not sure how much they would get from Linux users then.
  • nopurpose10 hours ago
    Most interesting part to me is credentials injection at the sandbox boundary level: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;security&#x2F;credentials</a>
    • quotemstr10 hours ago
      Doesn&#x27;t everyone do this now? It&#x27;s hardly a new idea. Yet every time someone proposes the idea, people fawn over it and proclaim it the best thing ever.<p>Yes, you can inject tokens via a proxy. What else is new?
      • nopurpose10 hours ago
        Who is doing it as first class feature with at least adequate UX?<p>I have skimmed alternatives offered in comments to this post (vibepod-cli, code-on-incus, opencode-docker, sandboxy, smolvm, amazing-sandbox) and none of them seem to do credentials injection at the proxy level.
        • LeBit8 hours ago
          nono.<p>Also fnox now does credentials proxying.
          • nopurpose2 hours ago
            Thanks, bookmarked nono to have a look later.
  • Cameri7 hours ago
    I was going to try it but signing commits with GPG using a Yubikey is not supported.<p>The option left is to use SSH to sign commits which is a no-go for a different reason.
  • elAhmo10 hours ago
    I wish they solved the issue happening for years on MacOS where Docker keeps up eating all available free space and ends up requiring restart of the whole machine, instead of Gordon and other useless shit.
  • 337110 hours ago
    I used this for a while then decided to build my own suites that pack individual harness and respective host state (config, plugins, skills, etc.) into an image. Works better and much flexible in my opinion.
  • TekMol11 hours ago
    So this is a VM by Docker?<p>For those who do not trust<p><pre><code> docker run --rm -it -v &quot;$(pwd)&quot;:&#x2F;work -w &#x2F;work myaiimage &#x2F;bin&#x2F;bash </code></pre> AND do not want to use some other, free VM for some reason?
    • woadwarrior0111 hours ago
      Better yet, use Apple&#x27;s container CLI if you&#x27;re on a Mac, instead of the docker bloatware.<p>container run --rm -it -v &quot;$(pwd)&quot;:&#x2F;work -w &#x2F;work myaiimage &#x2F;bin&#x2F;bash
    • pulse711 hours ago
      Hasn&#x27;t Docker always been just a thin layer of duct tape over existing solutions?
  • root-parent4 hours ago
    A Docker container is not a strong security boundary.
    • venatiodecorus3 hours ago
      these are firecracker microvms iirc, not containers
  • st3fan4 hours ago
    Why is this not available for Linux?
  • notsirius12 hours ago
    been using this for a while - works great! Has also had a lot of updates over the past year so worth checking out again if you tried it a while ago
    • zingar11 hours ago
      Do the agents come preinstalled in the images? Or do they somehow use whatever I’ve installed locally? The former makes sense to me but then I’m wondering whether the sandbox images stay up to date with new releases of each image.
      • notsirius2 hours ago
        Sometimes is up to date. When its not - you can just use a kit and add command: install : codex update <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;kits&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;customize&#x2F;kits&#x2F;</a>
      • aborsy8 hours ago
        The agent is per installed. If there is an update to the agent, the VM notifies you on a first run and updates it if you approve.<p>Other than the login problem, it’s a decent option.
  • pixard12 hours ago
    Ah let&#x27;s see, do they still want you to LOGIN, in order to use a local dev tool? Yes, yes they do. No thanks Docker. You can keep your buzzword reasoning as to why this is needed.
  • freakynit10 hours ago
    Has anyone tried <a href="https:&#x2F;&#x2F;bhatti.sh&#x2F;" rel="nofollow">https:&#x2F;&#x2F;bhatti.sh&#x2F;</a> ?
    • sahil-shubham6 hours ago
      Hey, creator of bhatti here, let me know if you any questions.
  • alasano9 hours ago
    I&#x27;ve been keeping a list of all the agent sandbox providers if you&#x27;re looking for alternatives to this<p><a href="https:&#x2F;&#x2F;engine.build&#x2F;lab&#x2F;agent-sandboxes" rel="nofollow">https:&#x2F;&#x2F;engine.build&#x2F;lab&#x2F;agent-sandboxes</a><p>The open source section specifically.
  • aniceperson2 hours ago
    systemd namespaces but less useful?
  • navigate831011 hours ago
    Here&#x27;s another sandbox that I found interesting: <a href="https:&#x2F;&#x2F;github.com&#x2F;ashishb&#x2F;amazing-sandbox" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ashishb&#x2F;amazing-sandbox</a>
    • _pdp_10 hours ago
      Very interesting. Thanks for sharing.
  • thomasahle9 hours ago
    Has anyone started proving their sandboxes in Lean (or Coq, etc.)?
  • AmazingTurtle11 hours ago
    So it&#x27;s basically a container with a fancy name, innit?
  • hmokiguess6 hours ago
    <a href="https:&#x2F;&#x2F;xkcd.com&#x2F;2044&#x2F;" rel="nofollow">https:&#x2F;&#x2F;xkcd.com&#x2F;2044&#x2F;</a>
  • runtime_lens12 hours ago
    TO me, that&#x27;s the important distinction: sandboxing limits what the agent can do but it doesn&#x27;t necessarily enforce that the agent must run inside the sandbox. You need a separate control layer to enforce that boundary.
    • nezhar11 hours ago
      You design the sandbox so the agent starts in that layer. The next thing you can do is to limit the network access, this is what I&#x27;m working on right now.<p>Or do you mean something else?
  • threethirtytwo5 hours ago
    I don&#x27;t want this that bad. I want the agent to have open access to my system because it actually does important administrative things for me. It is THAT convenient and powerful.<p>Here&#x27;s what I want: REALTIME OBSERVABILITY&#x2F;POWERPOINT.<p>I don&#x27;t want to just see what command it ran. I need graphics... what part of the file system it is touching, what network entities it is contacting. If it&#x27;s running SQL I want the parsed query handed to me in a syntax highlighted and well formatted interface. Imagine that star trek computer presenting automated infographics while someone is doing a presentation, you know what I&#x27;m talking about? It&#x27;s like a automated powerpoint as the agent does it&#x27;s thing.<p>I need to understand my agent and what it typically does so I can dangerously wield it. I treat the agent like a gun in a live shooting scenario. That&#x27;s how I want to use the LLM.<p>Sandboxes have their purpose. Just like how shooting ranges have their purposes. But I need to fire my gun in the real world and real world is a warzone.
  • globular-toast11 hours ago
    On Linux, you can skip Docker and use bubblewrap. Some inspiration: <a href="https:&#x2F;&#x2F;blog.gpkb.org&#x2F;posts&#x2F;ai-agent-sandbox&#x2F;" rel="nofollow">https:&#x2F;&#x2F;blog.gpkb.org&#x2F;posts&#x2F;ai-agent-sandbox&#x2F;</a>
    • angry_octet10 hours ago
      Bubble wrap is just containerisation no?
      • globular-toast10 hours ago
        Not sure what you mean by &quot;just&quot;. Containerisation is generally understood to mean something like what Docker does, which includes sandboxing but a whole lot more on top, like image management etc. Bubblewrap is just sandboxing without the rest of containerisation.
        • mihaelm9 hours ago
          Docker Sandboxes is using microVMs, not containerization.
  • quantumwoke8 hours ago
    Just a small meta note: most of the comments in this thread appear to be posting their own codebase (typically AI-generated) that accomplishes the same goal. It&#x27;s interesting that this problem is simultaneously in high demand and yet considered trivial enough to vibe code per-user solutions to it.
  • cryptoz12 hours ago
    The linked page implies there is no linux support, I wonder why. It&#x27;s there in the docs if you hunt for it.
    • etoxin12 hours ago
      The docs are here: <a href="https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;" rel="nofollow">https:&#x2F;&#x2F;docs.docker.com&#x2F;ai&#x2F;sandboxes&#x2F;</a><p>The other url is their marketing page.<p>Yes, Linux is supported.
  • blueaquilae12 hours ago
    Docker management will fail their tech at every opportunity.
  • weebull10 hours ago
    ...or...just hear me out now...we could limit it in the harness.<p>Don&#x27;t give it shell access, just predefined tools.
    • mikesir873 hours ago
      Disclaimer - on the Docker DevRel team<p>One of the demos I run is how easy it is to circumvent the harness limits. For example, I can configure a harness not to access file `secrets.txt`. But, then I can immediately have it create a Python file that can read any file and have it read `secrets.txt`.<p>At the end of the day, &quot;please&quot; isn&#x27;t security. You want to know that the agent can only do and access the things it should access.
    • killerstorm10 hours ago
      What if it puts malicious code into test file and you allow `npm run test `?
  • aegisora_ai17 minutes ago
    [flagged]
  • aegisora_ai27 minutes ago
    [dead]
  • tenner_agent2 hours ago
    [flagged]
  • genshro6 hours ago
    [flagged]
  • lubo923 hours ago
    [flagged]
  • krupkinmaxim5 hours ago
    [flagged]
  • claud_ia8 hours ago
    [flagged]
  • beernet11 hours ago
    [flagged]
  • lorreyfum5 hours ago
    [dead]
  • KolibriFly11 hours ago
    [dead]
  • Esabelle10 hours ago
    [dead]
  • pullrun6 hours ago
    [dead]
  • songhonglei198512 hours ago
    [dead]
  • liquid_space6 hours ago
    [dead]
  • kmeh12 hours ago
    [dead]
    • solarengineer11 hours ago
      There is a name collision on MacOS where MacOS also provides containers [1]<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;apple&#x2F;container</a>
    • jbellis12 hours ago
      Why less workflow friction?
      • kmeh11 hours ago
        Customize the exact environment of your container from the ground up (harnesses, tools, base image, packages, mounts, etc) and enter with a single command.
  • schmitthub2 hours ago
    [dead]