Skip to main content
Templates define the base environment for new machines. Use them when setup should not run on every machine create: language runtimes, package managers, browser stacks, agent tools, desktop dependencies, or services that should start automatically.
Template build and logging are microVM-runtime beta surfaces.

When To Build A Template

Quick Example

See the API reference for the full template build request schema, streaming log events, and background-build polling.

Build Model

Template Tasks

Quickstart

Build and launch your first reusable machine template.

How it works

Understand how template builds turn setup steps into machine snapshots.

Base image

Start from standard images, existing templates, custom images, or Dockerfiles.

Defining template

Install packages, copy files, clone repos, run commands, and set envs.

Start and ready commands

Start services automatically and wait for ports, URLs, files, or commands.

Warm pools

Keep ready capacity for a template and choose fallback behavior at create time.

Build

Build, wait, tune resources, and control cache behavior.

Logging

Stream build logs, reconnect, and inspect cache events.