Updated

How CloudSwap picks the cheapest cloud for a job

CloudSwap is an MCP server and HTTP API that finds the cheapest cloud for a stateless job (CPU, GPU, batch or container) across AWS, Vast.ai, RunPod, Shadeform, Hetzner and DigitalOcean, for AI coding agents and developers. You send one job spec. It prices the job on every provider and ranks the offers by what one run costs, egress included.

Get an API keyTry a quote

One job, ranked by cost per run

Measured 2026-11-30
RunPod CPU pod67 s$0.0099
AWS spot128 s$0.0133
Vast.ai100 s$0.0164
Shadeform (Massed Compute)211 s$0.0284
AWS on-demand, paid direct151 s$0.0356
The same 16 vCPU benchmark on each provider: cost of one run and seconds billed, drawn to scale. The first four are CloudSwap prices. Start-up time is billed, so the Shadeform run cost the most of the four.

What goes in?

A job spec: plain JSON that says what the job needs.

It holds vCPUs, memory in GB, an optional GPU type and count, the expected hours, the regions you allow, whether spot is OK, a trust level, a max price per hour and the GB of data the job pulls from AWS. Only vcpus and mem_gb are required.

Job spec
{
  "vcpus": 16,
  "mem_gb": 32,
  "hours": 2,
  "regions": ["eu"],
  "spot_ok": true,
  "trust": "datacenter",
  "data_in_gb": 0
}

Your agent sends it with the MCP tool quote_job. You can post the same JSON to /api/quote. The docs list every field.

What comes back?

A ranked quote. The cheapest offer that fits is the pick.

The pick comes back as choice. The next best offers follow in ranked, each with its provider, instance, region, price per hour and cost per run. If a provider does not answer, the quote still returns and names that provider in provider_errors.

A quote places nothing. Nothing is started and nothing is bought.

Where do the prices come from?

Four providers are read from their live APIs. Two are dated list prices.

ProviderPrice source
AWSLive API. On-demand and spot.
Vast.aiLive API.
RunPodLive API.
ShadeformLive API. It resells Lambda, Nebius, Scaleway, Denvr, Massed Compute, Verda and others.
HetznerList price, with the date it was read.
DigitalOceanList price, with the date it was read.
Google CloudNot priced yet.

Live prices are refreshed every 15 minutes. The price board shows the age of its snapshot and marks each list price.

Why rank by cost per run and not by $/h?

Because the cheapest price per hour is not always the cheapest run. Start-up time is billed too.

On 2026-11-30 we ran the same 16 vCPU benchmark (sha256 work, 256 tasks) on four providers. The job itself took 57 to 69 seconds on each. The billed time ran from 67 to 211 seconds.

RunPod CPU pod67 s billed$0.0099
AWS spot128 s billed$0.0133
Vast.ai100 s billed$0.0164
Shadeform (Massed Compute)211 s billed$0.0284
CloudSwap price per run, drawn to scale. The same 16 vCPU benchmark on each provider, measured 2026-11-30, from our own ledger. The Shadeform time was mostly machine start-up.

The same benchmark also ran on AWS two ways, on the same CPU (Intel Xeon Platinum 8488C). Spot in Frankfurt, picked by CloudSwap, cost $0.0133 per run at the CloudSwap price. On-demand in London, paid to AWS direct, cost $0.0356. That is 63% less.

Measured 2026-11-30. Same benchmark, same CPU. Cost of one run.
OfferBilledPer run
AWS c7i.4xlarge, on-demandeu-west-2 (London), AWS price paid direct151 s$0.0356
AWS c7i.4xlarge, spoteu-central-1 (Frankfurt), picked by CloudSwap, CloudSwap price128 s$0.0133

Read the AWS comparison

How is egress counted?

You give the data size. CloudSwap adds the egress cost to the offers that would pay it.

If the job pulls data from AWS, put the GB per run in data_in_gb. CloudSwap adds the AWS egress cost for that data to every offer outside AWS, then ranks by cost per run. An AWS offer can win for that reason alone.

The field counts data pulled from AWS only.

What happens to a price that looks wrong?

It is set aside. It is never shown as the cheapest.

An offer priced under 35% of the median for the same job shape counts as suspect. The quote returns those offers apart from the ranking, in suspect, so you can still see them.

Why stateless jobs only?

Because moving state costs more than the price gap.

CloudSwap prices jobs that can run anywhere and run again: CPU, GPU, batch and container jobs. Databases and stateful apps are refused. Egress and data gravity make moving them cost more than you would save. A spec with stateless set to false gets an error, not a quote.

What happens when a launch fails?

The next offer is tried, but never one priced over 2x the first.

That rule runs in our own scheduler. We place and run jobs through CloudSwap internally, with failover: if a launch fails or a job sends no result, the scheduler moves to the next offer in the quote, and it stops at 2x the cost of the first one.

Placing and running jobs is not public yet. Today the public API and the MCP server return quotes only.

Add CloudSwap to your agent

One line. Quotes are free and need no sign-up.

Get an API keyTry a quote

Claude Code
claude mcp add --transport http cloudswap https://cloudswap.ai/mcp