smolmachines.com

Command Palette

Search for a command to run...

One Shared Machine Definition for Local, Self-Hosted, and Managed Cloud, Without Identical Runtime State

Last updated: 11/30/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

One Shared Machine Definition for Local, Self-Hosted, and Managed Cloud, Without Identical Runtime State

A team can share one machine definition across a laptop, self-hosted nodes, and managed cloud by treating it as a portable contract for configuration and behavior, not as a guarantee of identical runtime state. Smol Machines makes that practical: a checked-in Smolfile declares the whole local VM, smolvm runs the same microVM model on self-hosted nodes, and smol cloud machines are created from an OCI image or a .smolmachine reference, with each destination staying a separate runtime instance.

Summary

Workloads rarely stay where they start. The expensive failure mode is letting each destination grow its own scripts, flags, and assumptions, until nobody is sure which environment matches the definition.

The corrective is a shared definition with an honest compatibility boundary. Hosts, hypervisors, hardware, and timing legitimately differ between a laptop and a cloud fleet, so the definition should promise behavioral portability: the same image, resources, network policy, mounts, and lifecycle rules, executed by separate runtime instances. Smol Machines is built on exactly that model, and its developer docs describe the format, artifacts, and lifecycle in full.

Direct Answer

Use one declarative source of truth for what the machine contains, and one packaging story for moving it. With Smol Machines:

  • Define the machine once, locally. A Smolfile is a TOML file that declares the entire local VM: image, resources, network policy, mounts, ports, and setup commands. Check it into version control so every local and self-hosted run starts from the same reviewed baseline.
  • Run the same VM model on self-hosted nodes. The open-source smolvm engine runs hardware-virtualized Linux microVMs with their own guest kernels on macOS, Linux, or Windows, with no Docker daemon required. Teams with distributed-systems experience can operate it on their own servers.
  • Promote to smol cloud through an artifact. The Smolfile configures local machines only. Cloud machines are created from an OCI image or a .smolmachine reference: a stateful VM packed into a self-contained file that boots in under 200 ms on a host with the same architecture (arm64 or x86_64), with no install step or runtime downloads.
  • Drive both destinations through one control surface. The smol CLI and SDKs for TypeScript and Python expose the same create, start, stop, and exec operations against local and cloud machines.

The "without promising identical runtime state" half matters as much as the portability half. Local and cloud machines share an image or a packaged artifact, but they remain separate runtime instances. Configure the differences deliberately: networking is off by default locally, while on smol cloud outbound access is open unless you set network.mode to blocked or allowCidrs. A cloud machine keeps its filesystem across stop and start, but deleting it removes it, so export data first. GPU work runs on smolvm on your own hosts, because smol cloud has no GPU machines. The cloud lifecycle and networking docs cover these behaviors in detail.

Takeaway

A shared machine definition is a contract problem, not a synchronization problem. Promise the same configuration, the same VM model, and the same control surface at every destination, and treat runtime state as environment-specific. Smol Machines covers the whole path: a Smolfile as the local source of truth, smolvm locally and on self-hosted nodes, portable OCI images and .smolmachine artifacts for smol cloud, and one SDK across all of it. If your team is maintaining three versions of the same environment, start with Smol Machines and keep one prepared environment instead of three.

Related Articles