Skip to content

Create a cloud machine

Create a Debian VM with Docker in your own AWS, Google Cloud, Azure, DigitalOcean, Vultr, Scaleway, Linode or Hetzner account with coma machine create, then stop, start or delete it.

coma machine create makes a machine in your own cloud account: a Debian VM with SSH as its only open port, registered with COMA and, with --engine, ready for coma docker when the command ends. It works with AWS, Google Cloud, Azure, DigitalOcean, Vultr, Scaleway, Linode and Hetzner. See Providers for how it works.

You need no COMA account. COMA uses your cloud CLI's own login and stores no cloud credentials. The machine is billed to your cloud account until you delete it.

If you already have a server, use Add a machine instead.

Sign in to your cloud

coma provider list
PROVIDER      NAME                    VERSION  SIGN IN WITH
aws           Amazon EC2              0.1.0    aws login (or aws sso login); set AWS_PROFILE to use a named profile
azure         Azure Virtual Machines  0.1.0    az login
digitalocean  DigitalOcean Droplets   0.1.0    doctl auth init (or set DIGITALOCEAN_ACCESS_TOKEN); set DIGITALOCEAN_REGION, e.g. lon1
gcp           Google Compute Engine   0.1.0    gcloud auth application-default login, and gcloud config set project <id>
hetzner       Hetzner Cloud           0.1.0    hcloud context create <name> (or set HCLOUD_TOKEN); set HCLOUD_LOCATION, e.g. fsn1
linode        Linode (Akamai Cloud)   0.1.0    linode-cli configure (or set LINODE_CLI_TOKEN); set LINODE_REGION, e.g. gb-lon
scaleway      Scaleway Instances      0.1.0    scw init (or set SCW_ACCESS_KEY, SCW_SECRET_KEY and SCW_DEFAULT_PROJECT_ID)
vultr         Vultr Cloud Compute     0.1.0    set VULTR_API_KEY, or put `api-key: <key>` in ~/.vultr-cli.yaml; set VULTR_REGION, e.g. lhr
Create one with: coma machine create <name> --provider <provider> --location <region> --engine docker

Run the sign-in command for your cloud in its own CLI. COMA never asks for a password, key or token. Per-cloud details are in the provider reference.

See what it would cost

coma machine create dev --provider aws --location eu-north-1 --dry-run
Creating dev on aws would make, in eu-north-1:
  t3.medium (2 vCPU, 4 GiB, amd64, 30 GiB disk)
  image ami-0f7ca6f49a5728960
  stops itself after 4h idle (no SSH session, low load)
Estimated cost:
  compute    $0.0432/hour    while running
  disk       $2.51/month     also while stopped
  public-ip  $0.005/hour     while running
  running    ≈ $37.69/month  ($0.0482/hour)
  stopped    ≈ $2.51/month
An estimate from the provider's price list, not a quote; AWS on-demand Linux list price in eu-north-1; excludes egress, snapshots and gp3 IOPS or throughput above the baseline.
Nothing was created. Run the same command without --dry-run to create it.

--dry-run (-n) asks the provider for the size it would choose and its price, and creates nothing. Prices are list prices, not quotes. See What it costs.

Create it

coma machine create dev --provider aws --location eu-north-1 --engine docker --use

Before COMA makes anything, it prints the plan on one line:

Plan: t3.medium (2 vCPU, 4 GiB, amd64, 30 GiB disk) on aws in eu-north-1 · about $0.0482/hour while running (≈ $37.69/month), $2.51/month while stopped · stops itself after 4h idle

COMA then creates the VM, waits until SSH answers, and with --engine docker installs Docker as coma machine bootstrap does, without asking: --engine is the confirmation. --use makes the machine the current context's target. The command ends with the machine's address, its inventory and the next step:

Created machine dev with provider aws (generation 1 at ssh://coma@203.0.113.10)
Next: coma docker run --rm hello-world
Billed by aws until you run `coma machine delete dev`.

There is no host key to confirm: the provider returns the machine's address and host key over its own authenticated API. COMA generates an SSH key for this machine alone.

Use it

coma docker run --rm hello-world

From here the machine works like any other: coma connect dev points your docker CLI and Compose at it, and a workspace syncs your project to it.

Choose the size

The default is 2 vCPUs, 4 GiB of memory, a 30 GiB disk, amd64 and Debian 12: the cheapest size on that cloud that meets it. Ask for more with flags:

coma machine create build --provider gcp --location europe-west2-b --cpus 8 --memory 32GiB --disk 100GiB
FlagWhat it setsDefault
--cpusvCPUs2
--memoryMemory, e.g. 8GiB4GiB
--diskBoot disk, e.g. 100GiB30GiB (DigitalOcean, Vultr, Linode, Hetzner: the size's own disk)
--archamd64 or arm64amd64
--dedicatedDedicated vCPUs instead of burstable onesBurstable
--debian12 or 1312 (13 on DigitalOcean)
--idle-stopStop after this long idle, 15m to 30d, or off4h
--engineAlso install docker or podmanNone
--locationRegion or zoneYour cloud CLI's default

--label key=value and --description add your own metadata, as for machine add.

Stop and start

coma machine stop dev
Stopped dev. Start it again with: coma machine start dev

Stopping keeps the disk. On AWS, Google Cloud, Azure and Scaleway a stopped machine's compute is no longer billed; the disk still is. DigitalOcean, Vultr, Linode and Hetzner bill a stopped machine in full, so delete it instead to stop paying.

You rarely need coma machine start: a stopped machine starts by itself when you use it, for example with coma docker … or a docker command through COMA's endpoint:

dev is stopped (it stops itself after 4h idle); starting it (usually under a minute)...

A started machine often has a new address. COMA follows it, so contexts, endpoints and workspaces keep working. See Idle machines stop themselves.

Delete it

coma machine delete dev

COMA asks first, because the machine's disk and everything on it are destroyed. Pass --yes in scripts and coding agents.

Deleted machine dev with provider aws
Cleared it from context(s): default

delete removes the VM and the cloud resources the provider made for it, then forgets the machine and clears it from any context that targets it. coma machine remove is different: it only makes COMA forget the machine, and leaves the VM running and billed, so for a provider machine it asks first.

If you interrupt a create, COMA waits for the provider to finish and then deletes the machine, so nothing is left behind. See When a create is interrupted.

Scripts and coding agents

machine create, start, stop and delete take --json. create needs no confirmation, so anything that can run it can spend money in your account: keep cloud credentials away from coding agents you would not trust with a credit card. Provider errors keep the cloud's own code in error.details.providerCode; see Exit codes.

Next

© 2026 Fractional Tech Ltd. COMA is a trademark of Fractional Tech Ltd. Privacy

COMA is in pre-alpha. Commands in these docs were checked against v0.1.0-rc.11.

On this page