Claude Managed Agents on AWS Lambda MicroVMs

Claude Managed Agents on AWS Lambda MicroVMs

This reference solution demonstrates how to run Claude's self-hosted sandbox tool execution on AWS Lambda MicroVMs. It implements an orchestrator plus ephemeral-MicroVM-per-session pattern, where each Claude session gets its own Firecracker-isolated compute environment with VM-level isolation and no state shared between sessions.
The control plane is webhook-driven. When a Claude session starts, Anthropic sends a webhook to an Amazon API Gateway endpoint (protected by AWS WAF) that triggers a Lambda launcher. The launcher verifies the signature using a secret from Systems Manager Parameter Store and launches a single MicroVM. The MicroVM fetches per-session credentials, claims the session, executes tools, and posts results back.
The security model keeps organization API keys away from AWS compute. Only per-session references and environment-key parameter names are forwarded, secrets live in Parameter Store, and IAM execution roles enforce least-privilege access. The event-driven design launches fresh MicroVMs on demand, so agents can run untrusted code in strong isolation while preserving full organizational governance and CloudWatch monitoring.

< Back to all repos

GitHub icon View this repo on GitHub


Clone this repo

git clone https://github.com/aws-samples/sample-lambda-microvm-claude-managed-agents


Created by:

Josh Rodgers

Josh Rodgers

Josh Rodgers is a Senior Solutions Architect for AWS who works with enterprise customers in the Travel and Hospitality vertical. Josh enjoys working with customers to solve complex problems with a focus on serverless technologies, DevOps, and security. Outside of work, Josh enjoys hiking, playing music, skydiving, painting, and spending time with family.

David Lamb

David Lamb

David Lamb is a Solutions Architect with AWS.

Follow on LinkedIn

Ben Freiberg

Ben Freiberg

Ben is a Senior Solutions Architect at Amazon Web Services (AWS) based in Frankfurt, Germany.

Follow on LinkedIn