When To Use Machines
Quick Example
The SDK, CLI, and HTTP snippets below are alternative control planes. Use one path end-to-end unless you are intentionally passing a machine ID between tools.Core Model
Common Tasks
Create, connect, and list
Launch machines, reconnect by ID, and paginate running or paused work.
Lifecycle
Understand create, exec, hibernate, reusable snapshots, fork, and destroy.
Persistence
Pause machines and resume paused state later.
Snapshots
Capture reusable baseline state and spawn independent machines from it.
Auto-resume
Wake paused machines from SDK calls, HTTP, and WebSocket traffic.
Fork
Branch warm state into independent children.
Metrics and timeouts
Inspect resource usage and control timeout behavior.
Preview URLs
Expose HTTP and WebSocket services from inside a machine.
What To Read Next
- Use Commands to run work inside a machine.
- Use Filesystem to move data in and out.
- Use Templates when setup should be reusable.
- Use Template Warm Pools when a custom template needs ready capacity before a burst.
- Use Volumes when data must outlive the VM.
- Use PTY or SSH for human debugging.