Skip to content

Providers

How COMA creates machines in your own cloud account, what it stores, what it costs, and how idle machines stop and start.

A provider creates machines in your own cloud account. COMA ships with eight: Amazon EC2 (aws), Google Compute Engine (gcp), Azure Virtual Machines (azure), DigitalOcean Droplets (digitalocean, or do), Vultr Cloud Compute (vultr), Scaleway Instances (scaleway), Linode (linode) and Hetzner Cloud (hetzner). coma provider list shows the installed ones and how to sign in to each.

A machine a provider created is a machine like any other: contexts, endpoints, sync and workspaces treat it the same. What differs is that COMA can also start, stop and delete it, and follows it when its address changes.

Credentials

COMA stores no cloud credentials. Each provider uses your cloud CLI's own login: aws login, gcloud auth application-default login, az login, doctl auth init, vultr-cli's config file, scw init, linode-cli configure or hcloud context create.

A provider is a plugin: a separate program COMA starts for each operation. COMA passes it only the environment variables its manifest declares, such as HOME and AWS_PROFILE, and nothing else from your environment. The full list is in the provider reference.

What COMA creates

  • A Debian VM (12 by default, 13 on DigitalOcean) with SSH as its only open port, for a user called coma.
  • An SSH key for this machine alone, generated by COMA.
  • No host key to confirm. The provider returns the machine's address and host key over its own authenticated API, so COMA verifies the first connection without asking you.
  • An engine, if you ask. --engine docker or --engine podman installs it as coma machine bootstrap does.
  • Tags on everything. Every VM, disk and network resource is tagged coma-managed, with a coma-resource-id, so you can find it in your cloud console.

A few resources are made once per account or region and kept for later machines: the coma-ssh security group on AWS, the coma-allow-ssh firewall rule on Google Cloud, the coma-ssh cloud firewall on DigitalOcean, the coma-ssh firewall group on Vultr, a coma-ssh security group per zone on Scaleway, the coma-ssh Cloud Firewall on Linode, and the coma-ssh firewall on Hetzner. On Azure every machine has its own resource group, deleted with it.

Addresses and generations

A cloud VM often gets a new public address when it starts. COMA records each address and host key it learns as a new generation, and every command and comad connection follows the newest one. coma machine create reports generation 1; each start after a stop is the next.

When a connection fails, COMA asks the provider for the machine's current record once, rather than retrying the old address. You never edit an address by hand.

What it costs

Before creating anything, COMA prints the size it chose and an estimate:

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 machine create … --dry-run shows each cost line, what is billed while stopped, and where the prices come from, then creates nothing.

ProviderPrices from
AWSThe AWS Pricing API
Google CloudThe Cloud Billing Catalog API, for the zone's region, cached for a day
AzureThe public Retail Prices API
DigitalOceanIts sizes API
VultrIts plan list, with each region's own price
ScalewayIts public catalog, in euros, the disk included
LinodeIts type list, with each region's own price
HetznerIts type list and price list, per location, in your account's currency, the IPv4 address included

They are list prices, not quotes. They exclude data transfer and snapshots, and do not reflect free credits or discounts. DigitalOcean, Vultr, Linode and Hetzner are shown per month: they bill by the hour, but cap each month at the size's monthly price. On Google Cloud, enable the catalog with gcloud services enable cloudbilling.googleapis.com; without it COMA uses a dated us-central1 price table and says so.

What is billed when

StateBilled
RunningEvery line of the estimate
Stopped (coma machine stop, or an idle stop)On AWS, Google Cloud, Azure and Scaleway, the lines --dry-run marks also while stopped, such as the disk. DigitalOcean, Vultr, Linode and Hetzner bill a stopped machine in full
Forgotten (coma machine remove)Everything, as before: the VM keeps running
Deleted (coma machine delete)Nothing

See what your machines cost

coma machine list shows a COST column for cloud machines: the rate in the state COMA last saw each machine in, from the estimate it recorded at create. A line under the table adds up the running ones per day. It makes no network call.

NAME   TARGET                   HEALTH   ARCH   CPUS  MEMORY    ENGINES        COST
dev    ssh://coma@203.0.113.10  healthy  amd64  2     3.8 GiB   docker 29.1.2  $0.0482/h
build  gcp: stopped             stopped  amd64  8     31.4 GiB  docker 29.1.2  $5.44/mo stopped
1 cloud machine running: about $1.16/day (estimates at list prices)

A machine that stopped itself shows as stopped once COMA has seen it so: after the next command that uses it, or comad's next reconnect. A machine created before COMA kept the estimate shows -.

A machine that never stops itself (--idle-stop off, or one on DigitalOcean, Vultr, Scaleway, Linode or Hetzner) and has run for a day is named once a day on your next command, with what it costs per day and the command that ends its bill.

Idle machines stop themselves

A machine with no SSH session and a low load for 4 hours stops itself, so a VM you forgot over the weekend does not bill all weekend.

  • The machine decides, not your laptop. A systemd timer on the machine checks every 5 minutes, so it works with your laptop closed or asleep.
  • Idle means no established SSH connection, and a 5-minute load average under a quarter of a core per CPU. A long build or batch job keeps the machine awake.
  • The window is --idle-stop on create: 15m to 30d, or off. The default is 4h.
coma machine create ci --provider aws --location eu-north-1 --idle-stop off
ProviderHow it stops
AWSPowers off; instances launch with shutdown behaviour stop
Google CloudPowers off; the instance is then TERMINATED, Compute Engine's stopped state
AzureDeallocates itself, through a managed identity allowed to manage only its own resource group
DigitalOcean, Vultr, Linode, HetznerNot offered: a stopped machine is billed anyway. Delete it when you are done
ScalewayNot offered yet: the machine would need an API key that can stop every server in the project. Its stop does end compute billing, so stop it with coma machine stop

To turn the watchdog off on an existing machine, run sudo systemctl disable --now coma-idle-stop.timer on it. On Google Cloud the startup script turns it back on at every boot, so create the machine with --idle-stop off instead.

Starting on use

A stopped machine starts by itself when you use it:

  • a command: coma docker …, coma podman …, coma connect, coma endpoint start, coma sync start, coma workspace up, coma machine discover;
  • a request from a Docker or Podman client through COMA's endpoint, such as docker compose up after coma connect.

A command says so, then runs:

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

A client through the endpoint sees only a slower first request. Requests that arrive together share one start.

Only something you do starts a machine. comad's background work, such as sync reconnects, port mirrors and tunnels, never starts one. A machine that stopped itself stays stopped when your laptop wakes, until you use it. Background work that needs it reports machine_stopped.

coma machine start dev starts a machine explicitly.

When a create is interrupted

A create that ends part-way never leaves a machine billed without COMA knowing:

  • Ctrl-C: COMA waits for the provider to finish, then deletes the machine.
  • The plugin crashes: COMA deletes what it made straight away.
  • COMA cannot clean up (a second Ctrl-C, COMA killed, the cleanup failed): the machine stays as incomplete. Every later command warns about it, coma machine list shows create unfinished, and coma doctor flags it. Commands that would use it fail with machine_incomplete.

coma machine delete <name> finds and removes whatever the create made, then forgets the machine. If the provider cannot tell whether the machine is gone, COMA keeps its record so you can run delete again.

Where plugins live

COMA looks for provider plugins, in order, in:

  1. each directory in COMA_PROVIDER_DIR (colon-separated);
  2. providers/ next to the coma binary;
  3. ../lib/coma/providers/ relative to the coma binary, where release archives install the eight built-in plugins;
  4. providers/ in COMA's config directory.

The first directory with a given provider ID wins, as with PATH. --provider also accepts the absolute path of a plugin executable or of its coma-provider.yaml; COMA never looks plugins up in PATH or the current directory.

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