Skip to content

For agents

For an agent. Start with microvm manifest. It returns commands, flags, response types, and exit codes as JSON without credentials or network access. microvm manifest --dense gives a compact command list. Prefer the installed binary’s contract over prose that may describe a different version.

  • Use --json. Commands write one envelope to stdout and progress to stderr. exec --stream emits NDJSON events and the final envelope.
  • Branch on error code and exitCode, not message text. ERR_EXEC_FAILED means the command in the VM failed; it does not imply an AWS failure.
  • Read leaked after cleanup. Teardown is attempted by default, but failures and process termination can leave resources behind. microvm ls --remote compares the local ledger with AWS.
  • Keep per-VM secrets out of shared images. The guest can access its execution role; user demotion does not hide it.
  • No internet egress requires a VPC without an IGW or NAT gateway. Neither omitting --egress nor setting --deny-egress enforces isolation.
  • Keep agentd as the image’s CMD and start workloads only after bootstrap.
Task Contract or guide
CLI integration microvm manifest, Reference
Direct daemon integration GET /v1/schema, Protocol
Rust, Python, Node Libraries
First AWS run First-run tutorial
Coding agents inside a VM Agents on Bedrock
Network isolation Networking
Image integration Embedding

microvm doctor checks prerequisites before a build. quickstart creates billable AWS resources, runs a hello-world, and attempts cleanup. Reuse images with --image to avoid unnecessary builds and retention charges.

Read CONTRIBUTING.md. Run mise run check for local code verification and mise run docs:check for the documentation build. mise run docs:gate adds accessibility and Lighthouse checks. The prose gate runs in check. Live AWS behavior needs a separate exercise of the changed path; mise run live is billable. Report when it has not been run, and verify cleanup independently afterward.

Edit site/authored/ for user guides and top-level docs/*.md for contracts. site/src/content/docs/ is generated. References generated from source contain commit-pinned citations that may be stale in the current checkout; check the source instead of treating prose as proof. Record new AWS measurements with date, region, and API version. A measurement that contradicts an entry replaces it. Each page gives one current answer, and git history holds the old one.

Read this Raw Markdown
Learn learn.md
Install the CLI or an SDK learn/tutorial/install.md
Configure AWS and run your first sandbox learn/tutorial/first-run.md
Keep a VM running and work inside it learn/tutorial/long-lived-vm.md
Run a project through a VM learn/tutorial/run-a-project.md
Use the SDKs learn/tutorial/from-code.md
Configure networking learn/operations/configure-networking.md
Write a guest Dockerfile learn/operations/write-a-guest-dockerfile.md
Embed agentd in your own image learn/operations/embed-agentd-in-your-image.md
Run coding agents in sandboxed MicroVMs learn/operations/run-coding-agents-on-bedrock.md
Remote dev with code-server over port-forward learn/operations/remote-dev-with-code-server.md
Prefetch S3 content at image build learn/operations/prefetch-s3-at-build.md
Read the cost report learn/operations/read-the-cost-report.md
Debug a failed build learn/operations/debug-a-failed-build.md
Recover a leaked VM learn/operations/recover-a-leaked-vm.md
Configure the project file learn/operations/configure-the-project-file.md
Drive it from a script or an agent learn/operations/drive-it-from-a-script-or-an-agent.md
Run the live suite learn/operations/run-the-live-suite.md
Reference reference.md
microvm run reference/commands/run.md
microvm quickstart reference/commands/quickstart.md
microvm build reference/commands/build.md
microvm agent-up reference/commands/agent-up.md
microvm agent-prompt reference/commands/agent-prompt.md
microvm exec reference/commands/exec.md
microvm wait reference/commands/wait.md
microvm health reference/commands/health.md
microvm discovery reference/commands/discovery.md
microvm keepalive reference/commands/keepalive.md
microvm ack reference/commands/ack.md
microvm kill reference/commands/kill.md
microvm ps reference/commands/ps.md
microvm stdin reference/commands/stdin.md
microvm cp reference/commands/cp.md
microvm exists reference/commands/exists.md
microvm sync reference/commands/sync.md
microvm attach reference/commands/attach.md
microvm adopt reference/commands/adopt.md
microvm tunnel reference/commands/tunnel.md
microvm port-forward reference/commands/port-forward.md
microvm shell reference/commands/shell.md
microvm suspend reference/commands/suspend.md
microvm resume reference/commands/resume.md
microvm terminate reference/commands/terminate.md
microvm ls reference/commands/ls.md
microvm history reference/commands/history.md
microvm names reference/commands/names.md
microvm logs reference/commands/logs.md
microvm image-versions reference/commands/image-versions.md
microvm gc reference/commands/gc.md
microvm image-set-status reference/commands/image-set-status.md
microvm image-builds reference/commands/image-builds.md
microvm cost reference/commands/cost.md
microvm egress-posture reference/commands/egress-posture.md
microvm doctor reference/commands/doctor.md
microvm manifest reference/commands/manifest.md
microvm constants reference/commands/constants.md
microvm dockerfile reference/commands/dockerfile.md
Python SDK reference/python.md
AgentSpec reference/python/classes/agentspec.md
TypeScript SDK reference/typescript.md
AgentVm reference/typescript/classes/agentvm.md
The envelope reference/envelope.md
AgentVm reference/python/classes/agentvm.md
microvms: functions, constants, and exceptions reference/python/module.md
Amount reference/typescript/classes/amount.md
microvms: functions, constants, and enums reference/typescript/module.md
Exit codes reference/exit-codes.md
Amount reference/python/classes/amount.md
BearerToken reference/typescript/classes/bearertoken.md
BaseImage reference/python/classes/baseimage.md
Response types reference/response-types.md
BudgetVerdict reference/typescript/classes/budgetverdict.md
BearerToken reference/python/classes/bearertoken.md
BuildHookTimeout reference/typescript/classes/buildhooktimeout.md
Wire schema reference/wire-schema.md
Architecture drift reference/architecture-drift.md
BudgetVerdict reference/python/classes/budgetverdict.md
ControlPlane reference/typescript/classes/controlplane.md
BuildHookTimeout reference/python/classes/buildhooktimeout.md
CostReport reference/typescript/classes/costreport.md
ByteStream reference/python/classes/bytestream.md
Detached reference/typescript/classes/detached.md
ConnectionEnd reference/python/classes/connectionend.md
Duration reference/typescript/classes/duration.md
ControlPlane reference/python/classes/controlplane.md
EstimatedUsd reference/typescript/classes/estimatedusd.md
CostReport reference/python/classes/costreport.md
ExecHandle reference/typescript/classes/exechandle.md
CLI reference/cli.md
Public API reference/public-api.md
Detached reference/python/classes/detached.md
RPC tools reference/rpc-tools.md
ExecProcess reference/typescript/classes/execprocess.md
Discovery reference/python/classes/discovery.md
ExecStream reference/typescript/classes/execstream.md
DownloadedFile reference/python/classes/downloadedfile.md
KeepAwake reference/typescript/classes/keepawake.md
Duration reference/python/classes/duration.md
LineItem reference/typescript/classes/lineitem.md
EnsuredImage reference/python/classes/ensuredimage.md
NameRecord reference/typescript/classes/namerecord.md
EstimatedUsd reference/python/classes/estimatedusd.md
NameRegistry reference/typescript/classes/nameregistry.md
ExecHandle reference/python/classes/exechandle.md
PortForward reference/typescript/classes/portforward.md
ExecProcess reference/python/classes/execprocess.md
RateTable reference/typescript/classes/ratetable.md
ExecResult reference/python/classes/execresult.md
Region reference/typescript/classes/region.md
ExecStream reference/python/classes/execstream.md
ResidencyComparison reference/typescript/classes/residencycomparison.md
Exit reference/python/classes/exit.md
RunHookTimeout reference/typescript/classes/runhooktimeout.md
Gap reference/python/classes/gap.md
Sandbox reference/typescript/classes/sandbox.md
HandlerOutcome reference/python/classes/handleroutcome.md
Session reference/typescript/classes/session.md
Health reference/python/classes/health.md
SizeClass reference/typescript/classes/sizeclass.md
HookObservation reference/python/classes/hookobservation.md
Total reference/typescript/classes/total.md
IdentityStep reference/python/classes/identitystep.md
Tunnel reference/typescript/classes/tunnel.md
IdlePolicy reference/python/classes/idlepolicy.md
TunnelIdentity reference/typescript/classes/tunnelidentity.md
Image reference/python/classes/image.md
Unpriced reference/typescript/classes/unpriced.md
ImageBuild reference/python/classes/imagebuild.md
AgentEnsureOptions reference/typescript/interfaces/agentensureoptions.md
ImageSummary reference/python/classes/imagesummary.md
AgentImageOptions reference/typescript/interfaces/agentimageoptions.md
ImageVersion reference/python/classes/imageversion.md
AgentLaunchOptions reference/typescript/interfaces/agentlaunchoptions.md
KeepAwake reference/python/classes/keepawake.md
AgentSpec reference/typescript/interfaces/agentspec.md
KeepAwakeReport reference/python/classes/keepawakereport.md
AgentSpecInput reference/typescript/interfaces/agentspecinput.md
LineItem reference/python/classes/lineitem.md
BaseImageInput reference/typescript/interfaces/baseimageinput.md
ManagedBaseVersion reference/python/classes/managedbaseversion.md
BuildImageOptions reference/typescript/interfaces/buildimageoptions.md
Microvm reference/python/classes/microvm.md
CompletionRequest reference/typescript/interfaces/completionrequest.md
MicrovmSummary reference/python/classes/microvmsummary.md
ConnectionEnd reference/typescript/interfaces/connectionend.md
NameRecord reference/python/classes/namerecord.md
DeleteImageOptions reference/typescript/interfaces/deleteimageoptions.md
NameRegistry reference/python/classes/nameregistry.md
DetachedObject reference/typescript/interfaces/detachedobject.md
OutputChunk reference/python/classes/outputchunk.md
Discovery reference/typescript/interfaces/discovery.md
OutputGap reference/python/classes/outputgap.md
DownloadedFile reference/typescript/interfaces/downloadedfile.md
PortForward reference/python/classes/portforward.md
DownloadFileOptions reference/typescript/interfaces/downloadfileoptions.md
PortForwardReport reference/python/classes/portforwardreport.md
EnsuredImage reference/typescript/interfaces/ensuredimage.md
PreflightCheck reference/python/classes/preflightcheck.md
EnsureImageOptions reference/typescript/interfaces/ensureimageoptions.md
PreflightReport reference/python/classes/preflightreport.md
ExecOptions reference/typescript/interfaces/execoptions.md
ProcGroup reference/python/classes/procgroup.md
ExecResult reference/typescript/interfaces/execresult.md
ProvisionedAgentd reference/python/classes/provisionedagentd.md
HandlerOutcome reference/typescript/interfaces/handleroutcome.md
RateTable reference/python/classes/ratetable.md
Health reference/typescript/interfaces/health.md
Region reference/python/classes/region.md
HookObservation reference/typescript/interfaces/hookobservation.md
ResidencyComparison reference/python/classes/residencycomparison.md
IdentityStep reference/typescript/interfaces/identitystep.md
RunHookTimeout reference/python/classes/runhooktimeout.md
IdlePolicy reference/typescript/interfaces/idlepolicy.md
Sandbox reference/python/classes/sandbox.md
Image reference/typescript/interfaces/image.md
Session reference/python/classes/session.md
ImageBuild reference/typescript/interfaces/imagebuild.md
SizeClass reference/python/classes/sizeclass.md
ImageSummary reference/typescript/interfaces/imagesummary.md
StdinAck reference/python/classes/stdinack.md
ImageVersion reference/typescript/interfaces/imageversion.md
SweepFailure reference/python/classes/sweepfailure.md
KeepAwakeOptions reference/typescript/interfaces/keepawakeoptions.md
SweepReport reference/python/classes/sweepreport.md
KeepAwakeReport reference/typescript/interfaces/keepawakereport.md
SyncReport reference/python/classes/syncreport.md
LaunchMetrics reference/typescript/interfaces/launchmetrics.md
TeardownReport reference/python/classes/teardownreport.md
ListMicrovmsOptions reference/typescript/interfaces/listmicrovmsoptions.md
Total reference/python/classes/total.md
ManagedBaseVersion reference/typescript/interfaces/managedbaseversion.md
Tunnel reference/python/classes/tunnel.md
Microvm reference/typescript/interfaces/microvm.md
TunnelIdentity reference/python/classes/tunnelidentity.md
MicrovmSummary reference/typescript/interfaces/microvmsummary.md
TunnelReport reference/python/classes/tunnelreport.md
NameRecordObject reference/typescript/interfaces/namerecordobject.md
Unpriced reference/python/classes/unpriced.md
OutputGap reference/typescript/interfaces/outputgap.md
PlanUsageOptions reference/typescript/interfaces/planusageoptions.md
PortForwardReport reference/typescript/interfaces/portforwardreport.md
PreflightCheck reference/typescript/interfaces/preflightcheck.md
PreflightReport reference/typescript/interfaces/preflightreport.md
ProcessExit reference/typescript/interfaces/processexit.md
ProcGroup reference/typescript/interfaces/procgroup.md
PromptOptions reference/typescript/interfaces/promptoptions.md
ProvisionedAgentd reference/typescript/interfaces/provisionedagentd.md
ProvisionOptions reference/typescript/interfaces/provisionoptions.md
RetryDetails reference/typescript/interfaces/retrydetails.md
RetryOptions reference/typescript/interfaces/retryoptions.md
RunOptions reference/typescript/interfaces/runoptions.md
RunUsageOptions reference/typescript/interfaces/runusageoptions.md
ServeOptions reference/typescript/interfaces/serveoptions.md
SpawnOptions reference/typescript/interfaces/spawnoptions.md
StdinAck reference/typescript/interfaces/stdinack.md
StreamEvent reference/typescript/interfaces/streamevent.md
StreamOptionsInput reference/typescript/interfaces/streamoptionsinput.md
SweepFailure reference/typescript/interfaces/sweepfailure.md
SweepOptions reference/typescript/interfaces/sweepoptions.md
SweepReport reference/typescript/interfaces/sweepreport.md
SyncDirOptions reference/typescript/interfaces/syncdiroptions.md
SyncReport reference/typescript/interfaces/syncreport.md
TeardownOptions reference/typescript/interfaces/teardownoptions.md
TeardownReport reference/typescript/interfaces/teardownreport.md
TunnelReport reference/typescript/interfaces/tunnelreport.md
WaitForStateOptions reference/typescript/interfaces/waitforstateoptions.md
WrapDockerfileOptions reference/typescript/interfaces/wrapdockerfileoptions.md
Internals internals.md
Networking internals/networking.md
AWS Lambda MicroVMs: measured platform behavior internals/platform.md
Suspend and resume internals/suspend-resume.md
Wire protocol v1 internals/protocol.md
Stability from 1.0 internals/stability.md
The trust contract for a control daemon inside a Lambda MicroVM internals/trust.md
Embed agentd in a sandbox workflow internals/embedding.md
Strategy: the trust and preparation contract for coding agents on microVMs internals/strategy.md
Harness capabilities internals/harness-capabilities.md
Run coding agents in a MicroVM internals/agent-vms.md
Plan: full live coverage through the microvm CLI internals/cli-coverage-plan.md
Requirement traceability internals/traceability.md
Data flow internals/architecture/data-flow.md
Module map internals/architecture/module-map.md
System overview internals/architecture/system-overview.md
Processes internals/behavior/processes.md
State machines internals/behavior/state-machines.md
Dead code internals/analysis/dead-code.md
Ownership internals/analysis/ownership.md
Risk hotspots internals/analysis/risk-hotspots.md
Components internals/diagrams/architecture/components.md
Sequences internals/diagrams/behavioral/sequences.md
Dependency graph internals/diagrams/structural/dependency-graph.md
Business logic internals/insights/business-logic.md
Contract map internals/insights/contract-map.md
Debugging guide internals/insights/debugging-guide.md
Impact analysis internals/insights/impact-analysis.md
Tech debt internals/insights/tech-debt.md
Glossary glossary.md

Append .md to a page path: /reference/cli/ becomes /reference/cli.md. Fetch the individual page when its location is known. llms.txt indexes the corpus; llms-small.txt and llms-full.txt provide bundles. schema.json is the generated daemon wire contract.