vm instance is a full Linux virtual machine with its own kernel and KVM hardware
virtualization. It uses the same API keys, endpoints, URLs, and prepaid wallet as a default
instance. VM compute has its own rate, listed below.
Reach for it when your workload needs the kernel itself:
- Docker, Compose, and buildx. Build and run containers, including Docker-in-Docker workloads and containers that need privileged mode or their own networks.
- Kubernetes. k3s runs with its node Ready and pod networking working.
- Databases. Postgres, MySQL, Redis, anything with its own storage engine.
- Android emulators.
/dev/kvmis present inside the machine, so an AVD boots with hardware acceleration instead of crawling. Theagent37-androidtemplate has one installed and running already; see Host an Android phone.
us, eu
(France), and ap-south (India, Mumbai). Outside the US they are the only type available, so
a create in eu or ap-south has to send "type": "vm".
Create one
curl
agent37-ubuntu is Ubuntu 26.04 with Docker, Compose, and buildx installed and dockerd already
running, plus an XFCE desktop with Firefox in the browser. It is built for this type, so it only
runs as a vm and a create without "type": "vm" is a 400.
agent37-android is a separate VM image with the Android SDK, an AVD,
ADB, and a screen on port 6901. It does not bundle Ubuntu’s Docker daemon or XFCE desktop.
Your own custom image works too: pass "type": "vm" with any template.
Two things to know first:
- A container runtime inside the machine must keep its data on your billed disk. The writable
root is an overlay, and pulling an image onto one fails. Point Docker at
$HOMEwithdockerd --data-root "$HOME/docker"(or/etc/docker/daemon.json), and k3s with--data-dir "$HOME/k3s".agent37-ubuntualready does this. - Your entrypoint is PID 1, and there is no init system. An image whose entrypoint is systemd is not supported, the same as on Docker. Run your processes from your entrypoint, or install them and start them over SSH.
Run Docker inside the VM
After create returns, run Docker through exec or SSH:curl
exit_code and stdout. Your existing tooling can keep calling
docker run and docker compose inside this machine. Containers share the VM’s purchased
CPU, memory, and disk. Publish a container’s HTTP port onto the VM with docker run -p, then
reach it at https://{id}-{port}.agent37.app with your workspace key.
Docker-in-Docker also works: a privileged docker:dind container can run its own daemon.
Bind its /var/lib/docker to a directory under $HOME, just as the outer daemon keeps its
data at $HOME/docker. The default gVisor instance type cannot run a Docker daemon.
Getting in
agent37-ubuntu has no default port, so the bare instance URL has nothing behind it: whatever
you run gets its own port. The machine binds exactly one port of its own, so every other port is
yours:
The dashboard opens it with a button. For a shell of your own, use
SSH (one
agent37 ssh setup first), or exec for one-off
commands:
curl
{id}-{port}.agent37.app for your
workspace’s keys, or a public port for an unauthenticated one.
Sizing and price
The same four shapes, and compute meters at 2.5x the default rate: a VM’s RAM is reserved for it alone and its vCPUs are its own. Disk is unchanged at $0.09 per GB per month.
The wallet needs a day of the VM’s compute at create, which the $5 starter credit covers for every size.
When you omit
resources, agent37-ubuntu defaults to 2 vCPU / 4 GB RAM / 12 GB disk
($12.08/month), and agent37-android defaults to 4 vCPU / 8 GB RAM / 12 GB disk
($23.08/month). These VM templates default to 12 GB disk even when you choose another CPU/RAM
shape; pass resources.disk to choose a different size within that shape’s range.
Lifecycle
stop, start, restart, update, and resize all work, and your billed disk survives every
one of them. The machine cold-boots on start and on any resize, so in-memory state is lost:
anything that has to outlive a restart belongs in a file under $HOME.
Growing the disk extends it in place and your filesystem grows into the new space on the next
boot, so the data is kept. Disk only grows, as on every instance.
Backups
Backups work exactly as they do on any other instance: a week of daily restore points plus one you take on demand, listed and restored by id, and a restore replaces the data it finds rather than merging into it. Two things are worth knowing on a VM. A backup is taken from the machine’s disks, so it captures what your programs have written to disk, not what they are still holding in memory: a database is backed up the way pulling the power cord would leave it, and recovers on the next start the same way. That is the same guarantee a VPS snapshot gives you, and it is why a backup that has to be exact should be taken with the machine stopped, or alongside your database’s own dump. And a restore cold-boots the machine, so in-memory state is lost either way.Auto-sleep
Auto-sleep works the way it does on a sandbox, and it is off unless you ask for it. Once nothing has moved through the machine’s URLs foridle_timeout_seconds, its memory is saved to disk, its CPU and RAM are released, and it bills
the disk rate alone. The next request wakes it and is served on the way through. Wake time
depends on memory size and whether the saved state can be restored. A successful memory restore
resumes running processes; if that checkpoint is unusable or the instance moves hosts, it
cold-boots instead. Keep anything that must survive a wake on the persistent disk.
What is not available yet
Everything else on this reference behaves identically: public ports,
domains, SSH keys, logs,
metrics, exec, and
fork, which copies the machine’s files onto a second machine of
its own and leaves this one running. Crons post a
prompt to an agent’s chat API, so they need a template that serves one:
agent37-ubuntu does not
and refuses them, while your own image takes them like any other instance.