DEV Community

Sandscale
Sandscale

Posted on Originally published at sandscale.dev

Sandscale vs AWS Lambda MicroVMs for agent sandboxes

AWS now offers Lambda MicroVMs, a compute type its documentation describes as serverless, VM-isolated environments for things like interactive development environments, CI/CD systems and sandboxes for AI. Like Sandscale sandboxes, they run on Firecracker. If you are choosing where your agents' code runs, the two are worth putting side by side.

Everything about Lambda MicroVMs here comes from AWS's public documentation as of November 2026: the Lambda MicroVMs guide, MicroVM images, networking, security and permissions and the RunMicrovm API reference. Sandscale facts come from sandscale.dev docs and pricing. AWS changes fast; check the linked pages before you decide.

The short version

Both give each workload its own Firecracker microVM, both can suspend and resume with memory and disk kept, and both are driven by an API. The differences are in the shape of the product:

  • Lambda MicroVMs are an AWS building block. You build an image from a Dockerfile, run instances of it, and reach each one through its own HTTPS endpoint. Identity, networking, logs and keys are AWS's: IAM roles, VPC connectors, CloudWatch, KMS. By default, MicroVMs have public internet access on the way out.
  • Sandscale is a sandbox platform for agents. You start a sandbox from a template or snapshot and talk to it through an API, SDK, CLI or MCP server: run a command, move files, pause, snapshot, stop. The network is off by default. Governance for agents, such as policy, human approvals, Vault, DLP and a hash-chained audit log, is part of the product, as are workspaces and build hosts.

Defining the environment

Lambda MicroVMs. You upload a zip with a Dockerfile and your application to S3 and call the API to create a MicroVM image. Lambda starts a fresh MicroVM from a Lambda-managed base image, runs your Dockerfile, launches your application, waits for your lifecycle hook to signal it is ready, and captures a snapshot of disk and memory. New MicroVMs resume from that snapshot. Images are versioned; each update creates a new version. The default architecture is ARM64, with x86_64 from base image version 3.

Sandscale. You start a sandbox from a template, such as the built-in builtin:node, builtin:python, builtin:go, builtin:base or builtin:minimal, or one your organization registered from an OCI image pinned by digest. To start from a prepared state, take a snapshot of a sandbox's /workspace and create new sandboxes from it. The snapshots guide says a snapshot is an archive of /workspace, checked end to end, and that nothing mounted into the workspace is included, so runtime secrets are never in a snapshot.

The difference that matters for agents: a Lambda MicroVM image captures a running application's memory, so each instance wakes into the same initialized process. A Sandscale snapshot captures files, so each sandbox starts fresh processes over the same files. The first suits "every user gets a copy of my running server". The second suits "every task starts from the same repository with dependencies installed", and avoids the class of problems where cloned memory shares state that should be unique, which microVM snapshot pitfalls covers.

Talking to it

Lambda MicroVMs. Each MicroVM gets a dedicated, service-managed HTTPS endpoint. Requests go to port 8080 inside by default, or another configured port, over HTTP/1.1, HTTP/2, WebSockets, gRPC or Server-Sent Events. Access needs a port-scoped authentication token from CreateMicrovmAuthToken. Shell access uses a separate token and requires the MicroVM to have been run with the shell ingress connector. You write the server inside that receives the requests.

Sandscale. There is no server for you to write inside the box. sandboxes.run runs a command and returns its exit code, standard output and standard error, with live output if you ask; writeFile, readFile and listFiles move files. The CLI adds sandscale sandbox run --sync . to send a folder and run a command, and terminals into a sandbox. Coding agents can use all of this through the Sandscale MCP server. To see an app the agent started, authenticated tunnels bring a port to your machine without a public URL.

Networking

Lambda MicroVMs. The networking docs say that by default MicroVMs have public internet access on the egress path. To route outbound traffic through your VPC, you create a network connector; then security groups and network ACLs apply. Egress bandwidth through the endpoint is tied to MicroVM size.

Sandscale. A sandbox's network option is none by default. allowlist uses your organization's egress allowlist and presets, where your plan includes it. Network access follows your plan and your organization's policy.

For agent code, the default matters. Open egress by default means you must remember to lock it down for every untrusted workload. Off by default means you must deliberately open it for the ones that need it. Designing an egress allowlist covers the second approach.

Lifecycle and limits

Lambda MicroVMs Sandscale sandboxes
Start RunMicrovm from an image version sandboxes.create from a template or snapshot
Suspend SuspendMicrovm, or an idle policy with auto-resume on traffic sandboxes.pause, then sandboxes.resume
Maximum lifetime maximumDurationInSeconds, 1 to 28,800 (8 hours) timeoutSeconds, server default 3600, at most 86400; Free plan sessions up to 4 hours
Sizes Baselines from 0.5 GB and 0.25 vCPU to 8 GB and 4 vCPU, with peaks up to 4x baseline By plan: up to 2 vCPU per box on Free, 16 on Pro and Team (32 on request for Team), up to 64 on Enterprise; 4 GiB per vCPU included
End TerminateMicrovm sandboxes.stop, which deletes the disk

Lambda MicroVMs' idle policy (maxIdleDurationSeconds, autoResumeEnabled) suspends a MicroVM automatically and wakes it on incoming traffic, which fits its endpoint model. Sandscale's pause is explicit: your code or agent decides when a sandbox sleeps.

Pricing models

Lambda MicroVMs. AWS's pricing page says MicroVMs are priced per instance-second. The images docs describe a baseline-and-peak model: you pay the baseline rate while the MicroVM is running and only pay for what you actively use above the baseline, billed per second. Suspending is described as reducing costs. See AWS Lambda pricing for rates.

Sandscale. Plans include awake vCPU-hours: 100 a month on Free, 1,500 on Pro, 2,000 per member pooled on Team. The plans reference says a box counts only while it is awake, and memory above 4 GiB per vCPU counts as vCPU-hours. On paid plans, usage beyond included hours is $0.05 per awake vCPU-hour if you turn it on. Pro is $20 a month billed annually or $25 monthly; Team is $40 per member a month billed annually or $48 monthly. See pricing.

Identity and governance

Lambda MicroVMs. IAM all the way down: a build role for image creation, an optional execution role at runtime (without it, no runtime logs to CloudWatch and no access to other AWS services), tags usable in IAM conditions, and KMS keys. If your organization already governs everything through IAM and CloudTrail, this fits in.

Sandscale. Built for agents acting on behalf of people. API keys expire within 90 days and have scopes. Agent policy can allow, block or send a step to a person, approvals route risky calls to a named approver, Vault gives a run secrets without putting them in prompts, and DLP checks prompts and tool calls; all of these are on every plan. The hash-chained audit log is on every plan, with export on Team and Enterprise. SSO with SAML or OpenID Connect is on Team and Enterprise; SCIM is Enterprise.

Regions and your own cloud

Lambda MicroVMs run in AWS Regions, in your AWS account. Sandscale runs in the United States region today (the regions page has the status of Europe); Enterprise can run Sandscale workers in your own AWS account.

Which to pick

Choose Lambda MicroVMs if you are building on AWS primitives, want a per-instance HTTPS endpoint into a running application, need VPC egress to private resources, and are happy to build the agent-facing layer (command execution, file transfer, policy, approvals, audit for agent actions) yourself.

Choose Sandscale if you want a sandbox your agent can use directly over an API, SDK, CLI or MCP, with no network unless you open it, and with policy, approvals, Vault and an audit log for agent actions already there. It also covers persistent workspaces and build hosts, and the Free plan is enough to try it.

Originally published on the Sandscale blog.

Top comments (0)