Live data from Hacker News

Cloudflare Sandbox SDK

sandbox.cloudflare.com

61–70 of 95 posts

Re: Cloudflare Sandbox SDK

#61
It's sad to see Cloudflare slowly adding egress fees to their new services.

It was a core differentiator to never* have to worry about egress with them.

*: unless it's so large that it borders on abuse or require a larger plan

Re: Cloudflare Sandbox SDK

#62
post #61

It's sad to see Cloudflare slowly adding egress fees to their new services. It was a core differentiator to never* have to worry about egress with them. *: unless it's so large that it borders on abuse or require a larger plan

I agree. It’s the enshittification of the internet. Luckily we still have infrastructure providers with more sensible offerings. We don’t have to use aws, gcp, etc.

Re: Cloudflare Sandbox SDK

#64

Earlier quoted context omitted.

You can’t compare these with regular VM of aws or gcp. VM are expected to boot up in milliseconds and can be stopped/killed in milliseconds. You are charged per second of usage. The sandboxes are ephemeral and meant for AI coding agents. Typical sandboxes run less than 30 mins session. The premium is for the flexibility it comes with.

Serously, what flexibility? I coud easily spin-up a firecracker VM on-demand and put it behind an API. It boots up in under 200 milliseconds. and I get to control it however I wish to. And also, all costs are under my control. I compared the costs with instances purchased from Hetzner or Contabo here: https://news.ycombinator.com/item?id=45613653 Bottomline: by doing this small stuff myself, I can save 35 times more.

In my case, it is ignorance. I am not familiar with how to wield firecracker VMs and manage their lifecycle without putting a hole in my pocket. These sandbox services(e2b, Daytona, Vercel, etc.) package them in an intuitive SDK for me to consume in my application. Since the sandboxing is not the main differentiator for me, I am okay to leverage the external providers to fill in for me. That said, I will be grateful if you can point me to right resources on how to do this myself :)

Re: Cloudflare Sandbox SDK

#65

The pricing with such offerings is the biggest throwoff. This one comes out to be more than $58/month for just 1vCpu and 1GiB RAM when used continuously. Compare this with instances from Hetzner or Contabo or the likes. They are 35+ times cheaper. This means my total usage across entire month on cloudflare sandbox cannot cross even one single day of non-stop usage, just to break-even with hetzner/contabo/others.

That's like comparing any serverless offering to a continuously running host.

Continuously running means you're doing it wrong / it's a bad fit. But yes the ratio is somewhat extreme.

Re: Cloudflare Sandbox SDK

#66

This looks interesting. Instead of having to code this up using typescript, is there an MCP server or API endpoint I can use? Basically, I want to connect an MCP server to an agent, tell it it can run typescript code in order to solve a problem or verify something.

Hey, I'm building a similar thing to sandbox SDK

Are you interested in code execution only, or something else? File operations, git checkout etc?

Re: Cloudflare Sandbox SDK

#67
post #21

Cloudflare Containers (and therefore Sandbox) pricing is way too expensive. The pricing is a bit cumbersome to understand by being inconsistent with pricing of other Cloudflare products in terms of units and split between memory, cpu and disk instead of combined per instance. The worst is that it is given in these tiny fractions per second. Memory: $0.0000025 per additional GiB-second vCPU: $0.000020 per additional v…

You can’t compare these with regular VM of aws or gcp. VM are expected to boot up in milliseconds and can be stopped/killed in milliseconds. You are charged per second of usage. The sandboxes are ephemeral and meant for AI coding agents. Typical sandboxes run less than 30 mins session. The premium is for the flexibility it comes with.

I think you can absolutely compare them and there is no added flexibility, in fact there is less flexibility. There is added convenience though.

For the huge factor in price difference you can keep spare spot VMs on GCP idle and warm all the time and still be an order of magnitude cheaper. You have more features and flexibility with these. You can also discard them at will, they are not charged per month. Pricing granularity in GCP is per second (with 1min minimum) and you can fire up firecracker VMs within milliseconds as another commenter pointed out.

Cloudflare Sandbox have less functionality at a significantly increased price. The tradeoff is simplicity because they are more focused for a specific use case for which they don't need additional configuration or tooling. The downside is that they can't do everything a proper VM can do.

It's a fair tradeoff but I argue the price difference is very much out of balance. But then again it seems to be a feature primarily going after AI companies and there is infinite VC money to burn at the moment.

Re: Cloudflare Sandbox SDK

#68

The pricing with such offerings is the biggest throwoff. This one comes out to be more than $58/month for just 1vCpu and 1GiB RAM when used continuously. Compare this with instances from Hetzner or Contabo or the likes. They are 35+ times cheaper. This means my total usage across entire month on cloudflare sandbox cannot cross even one single day of non-stop usage, just to break-even with hetzner/contabo/others.

It's interesting to also compare this to getting a bare metal instance and provisioning microVMs on it using Firecracker. (Obviously something you shouldn't roll yourself in most cases.)

You can get a bare metal AX162 from Hetzner for 200 EUR/mo, with 48 cores and 128GB of RAM. For 4:1 virtual:physical oversubscription, you could run 192 guests on such a machine, yielding a cost of 200/192 = 1.04 EUR/mo, and giving each guest a bit over 1GiB of RAM. Interestingly, that's not groundbreakingly cheaper than just getting one of Hetzner's virtual machines!

Re: Cloudflare Sandbox SDK

#69

The pricing with such offerings is the biggest throwoff. This one comes out to be more than $58/month for just 1vCpu and 1GiB RAM when used continuously. Compare this with instances from Hetzner or Contabo or the likes. They are 35+ times cheaper. This means my total usage across entire month on cloudflare sandbox cannot cross even one single day of non-stop usage, just to break-even with hetzner/contabo/others.

Cloudflare bills by CPU time. You'll come up on top if you have very irregular traffic as Hetzner bills you 24/7 for your instance.

Re: Cloudflare Sandbox SDK

#70

These CF website relaunches are just that right? Workers last week ( https://workers.cloudflare.com ) and now this one yesterday. I mean, if CF has something newsworthy here they should do a blog post announcing it because otherwise it's just a refreshed website. It's hard to tell if there's anything new here. It's the same SDK stuff from earlier this year right? https://developers.cloudflare.com/changelog/2025-06-24…

The workers website looks extremely based.

Love the evocative animations and it manages to still be readable and well organized.

Post reply on HN