Hacker News

Show HN: Brickie – Deploy sandboxes in your own AWS account

35 points by abelanger ago | 12 comments
Hey HN, this is Alexander from Hatchet (https://github.com/hatchet-dev/hatchet). We’re releasing a new open-source project today called Brickie. Brickie lets you run sandboxes in your own cloud account, primarily targeting EKS on AWS.

Sandboxes are an incredibly useful primitive for agentic applications. They serve two main functions: (1) a way for the agent to safely execute untrusted code, and (2) a durable filesystem for agents to preserve their state via snapshots.

We decided to start building this after we started on a package called `@hatchet-dev/sandbox` to integrate more directly with various sandbox providers, like E2B, Daytona, Archil, and Modal. We discovered that a lot of users had a requirement to self-host their sandbox infra for part of (or all of) their stack, due to a self-host requirement for enterprises. We searched around for the easiest way for users to self-host a sandbox stack and agent-sandbox (https://agent-sandbox.sigs.k8s.io) was the closest thing to what we had in mind: it’s a kubernetes-sigs project implementing a Kubernetes operator which spawns sandboxes as pods on supported isolation layers like Firecracker, gVisor, and Kata Containers. We learned that many platform teams were adopting this because it's a standard k8s-based deployment model and is pretty easy to customize the isolation layer, network config, etc.

However, it was missing some necessary features. brickie builds on top of the agent-sandbox project and extends it to support proper sandbox (filesystem-based) snapshots, fork, pause, and resume, all while bundling a proper orchestration and observability layer via Hatchet.

Zooming out a bit, Hatchet is an orchestration engine which supports durable execution (https://hatchet.run/blog/durable-execution). Throughout 2026, we saw high adoption from users building agents using durable workflows as the statefulness layer and execution model. But as sandboxes became more popular, something didn’t sit right with us. Sandboxes _also_ provide a durability layer, but at the filesystem level, and it became important to disambiguate what we call session state from filesystem state. I wrote a lot more about this here: https://hatchet.run/blog/agent-statefulness.

The problem with having state in multiple places is that it needs coordination, which adds complexity to your application. This was part of the motivation behind `@hatchet-dev/sandbox`: we wanted to provide an easy way to take coordinated snapshots of agent state, even when using an external sandbox provider.

So when we started looking at self-hosted sandbox options, it was critical that this architecture was supported well. We decided to support this in brickie using a pretty simple snapshotting mechanism which tars and stores snapshots in an object store (S3). This is something we’re actively working to improve and make more performant.

Brickie is early and in beta, we're looking for testers, contributors, and feedback on the deployment model. Thanks in advance!

aditi805 |next [-]

Would love to get a read on how you are solving the Network security aspect of running sandboxes on the execution layer. Based on my experience so far, firecracker and gVisor could still leave your systems vulnerable and it takes a network engineer / SRE to set it up properly.

mnafees |root |parent [-]

We do not intend to solve all problems around running sandboxes. Brickie provides a clear pathway to a sandbox platform that you can host in your own Kubernetes cluster. There still needs to be some care around how the cluster's attack surface is tightened with NetworkPolicies and such.

ShintaroHara |next |previous [-]

That sounds good! Should I think of this as the addition of state saving and the ability to retry actions to the agent-sandbox?

mnafees |root |parent [-]

Brickie is indeed built on top of agent-sandbox. And as you already note, it extends its capability with filesystem snapshots, durability via Hatchet tasks including its replay mechanism, but also mTLS communication between the provider and all sandbox pods. The SDK also has built in support for OTel. The idea is to use Hatchet as the application orchestrator for spawning sandboxes and Kubernetes via agent-sandbox as the sandbox infra orchestrator.

christianbasile |next |previous [-]

this is a very interresting concept; the first time i am reading about snapshots and, in brickie's case, persistent filesystem snapshots - very cool.

abelanger |root |parent [-]

Thanks! Many sandbox providers support snapshots through various mechanisms: filesystem snapshots and even full memory. The snapshot mechanism here is very simple, it just streams tars to S3, though we've been playing around a lot with OverlayFS which will likely be the next iteration.

d1algo12 |next |previous [-]

is this useful to run ai agents in their own sandbox?

abelanger |root |parent [-]

You can use it for that, yes. Note this is designed more for people building agent products who want to add a sandbox to their agent, not for developers running coding agents remotely.

Generally the two approaches to agents with sandboxes are to run your agent "inside the sandbox," where the entire agent process runs in the sandbox, or "outside the sandbox" where the agent uses the sandbox as tool calls. We usually recommend the latter though both are possible.

pratikgcet1985 |next |previous [-]

Very interesting!

vivzkestrel |next |previous [-]

- what is the difference between e2b, daytona, modal, firecracker vm, docker and your sandbox

- i want to run untrusted code inside ec2 submitted by users

- what are my options?

mnafees |root |parent |next [-]

Hey, I am Nafees and I work on Brickie at Hatchet among other things.

The difference between Brickie and solutions like E2B and Daytona is, quite simply, being able to run sandboxes in your own Kubernetes cluster. Brickie implements all of the primitives like egress control, snapshotting, and warm pools like the hosted solutions out there. There's also the option to use any underlying runtime including Kata for microVMs, gVisor for user-space kernel isolation, as well as using EKS Nitro if you're already using it in your AWS deployments. The Docker driver that Brickie implements is intended for local testing only since it does not implement hard firewall guarantees. To be specific, we started with Docker sandboxes in the beginning but were not convinced of the maturity of its DX and the features we wanted from it.

If you are looking to run sandboxes in EC2 I'd recommend looking into the native tooling that was just launched by AWS for its Nitro Sandbox feature.

aditi805 |root |parent |previous [-]

I have found firecracker vms to be the most lightweight generally. e2b provides a good orchestration of these and you dont have to pay for idle sessions.

an untrusted code running on your VPC directly would never be safe anyway, and I'll probably just isolate that environment as the first safety step!

sinoziqi |next |previous [-]

[flagged]

dasterhq |next |previous [-]

[flagged]

ticktockten |next |previous [-]

[flagged]

Shura58 |previous [-]

[flagged]