Use case, price read 2026-12-01 11:44:53 UTC
CI builds on the cheapest cloud
CI builds fits a 16 vCPU machine (32 GB+ RAM). The cheapest 16 vCPU machine (32 GB+ RAM) on the CloudSwap board right now is $0.120/h on Vast.ai (South Korea, KR), read 2026-12-01 11:44:53 UTC. A 0.25-hour job costs about $0.03 there, plus start-up time.
The job shape
Move a slow build or test suite off a small CI runner onto a large machine for a few minutes. A build checks out code, compiles, runs tests and reports. Nothing stays on the machine.
Spec: 16 vCPU, 32 GB memory, about 0.25 hours, spot allowed.
Price it
The quote ranks every offer for this exact spec by cost per run. Quotes are free today and need no key.
curl -s https://cloudswap.ai/api/quote \
-H 'content-type: application/json' \
-d '{"vcpus":16,"mem_gb":32,"hours":0.25,"spot_ok":true}'Use cloudswap to quote a 16 vCPU, 32 GB job that runs 0.25 hours. Spot is OK.Run it
When running jobs opens, save the job as job.json and send it with your API key. CloudSwap runs it on the cheapest fitting machine on Vast.ai, RunPod or Shadeform, paid from prepaid credits.
{
"vcpus": 16,
"mem_gb": 32,
"hours": 0.25,
"spot_ok": true,
"command": "git clone --depth 1 https://github.com/you/your-repo app && cd app && make -j16 test",
"image": "buildpack-deps:bookworm",
"max_hours": 0.5,
"label": "ci-builds"
}export CLOUDSWAP_API_KEY=cs_live_...
curl -s https://cloudswap.ai/api/jobs \
-H "Authorization: Bearer $CLOUDSWAP_API_KEY" \
-H 'content-type: application/json' \
-d @job.jsonRunning jobs is not open to everyone yet. Until it opens, this call answers jobs_closed. You can buy credits when running jobs opens to everyone. Quotes are free today.
Is start-up time worth it for a short build?
Start-up time is billed and counted in each quote's cost per run. On 2026-11-30 our 16 vCPU runs billed 10 to 153 seconds beyond the job itself, by provider. For a build of a few minutes, compare the quote with your CI runner.
How do I pass a token for a private repo?
As an env value in the job, not in the command.
Make it cheap and safe
- Cache dependencies in the image you pass, not on the machine.
- Pass secrets for private repos as env values, not in the command.
- Spot is fine: a stopped build simply runs again.
Related
Price your exact job
Add CloudSwap to your agent. It sends the job spec and gets the cheapest fit, ranked by cost per run. Quotes are free today and need no sign-up.
claude mcp add --transport http cloudswap https://cloudswap.ai/mcp