packages/in-app-agent-sandbox-runtime/README.md
Minimal HTTP control server for the in-app agent sandbox runtime.
See web/src/ee/features/in-app-agent/README.md for how this package fits into the in-app agent sandbox architecture.
The runtime runs as a single unprivileged sandbox-server user inside the container.
This keeps the setup compatible with Lambda MicroVMs, which set no new privileges
and prevent sudo-based user switching at runtime.
sandbox-server.read, write, edit, bash) also run as sandbox-server./workspace/tool_calls is recreated from prior tool outputs before each tool invocation, so any modifications made during one tool call are discarded before the next one.GET /healthPOST /sandboxPOST /aws/lambda-microvms/runtime/v1/readyPOST /aws/lambda-microvms/runtime/v1/runPOST /aws/lambda-microvms/runtime/v1/resumePOST /aws/lambda-microvms/runtime/v1/suspendPOST /aws/lambda-microvms/runtime/v1/terminateTo rebuild the local Docker image manually:
pnpm turbo run build:docker-image --filter @repo/in-app-agent-sandbox-runtime --force
This produces langfuse-in-app-agent-sandbox:latest.
Use packages/in-app-agent-sandbox-runtime/build-microvm-image.sh as the canonical build and publish flow.
From the repo root:
bash packages/in-app-agent-sandbox-runtime/build-microvm-image.sh
The script:
packages/in-app-agent-sandbox-runtime/.envdistIMAGE_ARN=... and IMAGE_VERSION=...Required environment variables:
AWS_PROFILEAWS_REGIONS3_BUCKETMICROVM_IMAGE_NAMELAMBDA_MICROVM_BUILD_ROLE_ARNBASE_IMAGE_ARNBASE_IMAGE_VERSIONPrerequisites:
lambda-microvms supportThe script configures the required MicroVM hooks for this runtime, including ready, run, resume, suspend, and terminate on port 5000.