Four months of CI on Cloudflare Containers: per-use vCPU billing and a hard cap that stopped CI
@kelvin_des describes moving all CI from GitHub Actions to one Cloudflare Container per job and puts the list-price bill for the same 90 days at about $1,608 versus $3,288–$6,502 for GitHub-hosted runners, because Containers bill vCPU on use and his boxes were about 41% busy. He also reports a ledger bug that made his own hard daily minute cap refuse every container, after which he bounds spend by max containers × per-job deadline.
- Products
- ContainersWorkers
- Source
- Author experience𝕏 thread
- Author
- @kelvin_des
Key points
- Setup he describes: one container per CI job, started by GitHub's webhook, runs one job, exits and stops billing, with $0 idle; it replaced three always-on VMs in July.
- His comparison for the same 90 days at list prices: Cloudflare about $1,608, GitHub-hosted 4-core $6,502, GitHub 2-core $3,288, Blacksmith $4,322. He attributes the gap to Cloudflare billing vCPU on use with CI boxes about 41% busy. These are his list-price calculations, not an unexpected charge.
- Incident: a hard daily minute cap he had set read 9,002 minutes a day because of a ledger bug, refused every container and stopped CI; his rule since is no hard caps, bounding spend by max containers × per-job deadline.
- Other incidents he lists: 'runner lost communication' failures that turned out to be his teardown code killing the wrong container, and a GitHub-side account issue that made 511 Actions runs fail at startup, after which his Worker took the pull_request webhook itself.
- He says building this is only worth it if hosted runners would cost over $1,000/month, someone owns it, and you need something vendors don't sell.
- Cloudflare's Containers pricing page (read 2026-11-13) says containers are billed for every 10 ms they are actively running, with memory and disk based on the provisioned instance type and CPU on active usage only.
Original sources
Published
Original post
Read on 𝕏@kelvin_des describes moving all CI from GitHub Actions to one Cloudflare Container per job and puts the list-price bill for the same 90 days at about $1,608 versus $3,288–$6,502 for GitHub-hosted runners, because Containers bill vCPU on use and his boxes were about 41% busy. He also reports a ledger bug that made his own hard daily minute cap refuse every container, after which he bounds spend by max containers × per-job deadline.
kelvin desman
@kelvin_des · Original 𝕏 post
1/ GitHub says my repo used 554,030 CI minutes in 90 days. It can't see a lot of them. Since Oct 18 none of our CI touches GitHub Actions. Here's 4 months of running all CI on Cloudflare Containers, with the real bill and everything that broke 🧵 https://t.co/KKf3tBezr8
2/ One container per CI job, started on GitHub's webhook, exits after the job and stops billing; $0 idle; replaced 3 always-on VMs in July.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
2/ Setup: one container per CI job. Starts on GitHub's webhook, runs one job, exits, stops billing. $0 idle. Replaced 3 always-on VMs in July.
3/ List-price bill for the same 90 days: Cloudflare ~$1,608, GitHub-hosted 4-core $6,502, GitHub 2-core $3,288, Blacksmith $4,322; Cloudflare bills vCPU on use and the CI boxes were ~41% busy.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
3/ Bill for the same 90 days of work, list prices: Cloudflare: ~$1,608 GitHub-hosted 4-core: $6,502 GitHub 2-core: $3,288 Blacksmith: $4,322 Why: Cloudflare bills vCPU on use. Our CI boxes were ~41% busy.
4/ The bill was the easy part: 433 commits to CI in 125 days, 54% of them fixes.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
4/ The bill was the easy part. 433 commits to CI in 125 days. 54% were fixes.
5/ 'Runner lost communication' (~10–14 failed runs a day) was his teardown code killing the wrong container, because GitHub does not bind a JIT runner to the job it was made for.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
5/ Incident: "runner lost communication", ~10-14 failed runs/day. Looked like a Cloudflare flake. It was my teardown code. GitHub doesn't bind a JIT runner to the job it was made for, so I kept killing the wrong container mid-build.
6/ A ledger bug made a hard daily minute cap read 9,002 min/day and refuse every container; rule since: no hard caps, bound spend by max containers × per-job deadline.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
6/ Incident: a hard daily minute cap. A ledger bug read 9,002 min/day. The cap refused every container. CI stopped. Rule since: no hard caps. Bound spend by max containers × per-job deadline.
7/ A GitHub-side account issue made 511 Actions runs fail with startup_failure; the next day his Worker took the pull_request webhook itself and ran CI without Actions.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
7/ Incident: an account issue on GitHub's side. Every Actions run → startup_failure (511 of them). Self-hosted runners can't help when Actions won't start a run. Next day our Worker took the pull_request webhook itself and ran CI without Actions.
8/ Only worth building if hosted runners would cost over $1,000/month, someone owns it, and you need something vendors don't sell.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
8/ Should you build this? Probably not. Only if hosted runners would cost you over $1,000/month, someone owns it, and you need something vendors don't sell.
9/ Links a full write-up with raw data, the script for every number and the open-source runner.
Read on 𝕏kelvin desman
@kelvin_des · Original 𝕏 post
9/ Full write-up, raw data + script for every number, and the open-source runner: https://t.co/WzwuxlPRmG https://t.co/KcObQ4I9X2
More to read
风易: the easy leak on a free R2 public bucket is the public URL, not the quota itself
风易 (@Michael_liyang) argues that a public R2 bucket’s direct URL can be hotlinked by anyone, so other sites’ traffic is billed to the bucket owner. The recommended three steps are a custom domain instead of a bare r2.dev link, a Worker Referer allowlist that returns 403 otherwise, and signed expiring URLs for images.
ivebenfreed: a Dynamic Workers bill came to nearly $80 in October after unique-worker charges.
X user @ivebenfreed (Ben Freed) says the Dynamic Workers bill came to nearly $80 last month because each Code Mode call spun up a new instance, including via Cloudflare's official @cloudflare/codemode package, at $0.002 per unique worker per day past the first 1,000 a month; on the worst day in October there were over 12,000 of them. The author later stopped using Dynamic Workers (the count went from roughly 2,600 a day in October to zero since November 13). “October's pace would have come to about $155 a month” is a projection and is not used as the event amount. Replies in the thread are not official Cloudflare responses.
runes_leo: applying for the Cloudflare for Startups $10k bootstrapped tier with an AI agent
@runes_leo describes applying for the Cloudflare for Startups $10k tier without funding: the three tiers, who qualifies, the four-page form, and three pitfalls (a sign-in button greyed out in Chrome, a required company-domain email, and a payment method required on the linked account). He later corrected the $100k/$350k criteria, said approval and credits were still pending, and on November 10 updated that Workers AI is no longer covered for new members (existing $10k-tier members up to $2,500 until December 1).