DevTrends开发者趋势
主题色

tencentcloud /

cubesandbox

Over the past few months, as we scaled our internal AI Agents, we hit a dead end: Running LLM-generated arbitrary code in Docker is basically running naked on security due to container escape risks. But using full tradit…

DT数据与运维DT安全与测试DTAgent 能力扩展DTAgent 评测与安全DT内容 / 资源DT库 / SDK

关于

Over the past few months, as we scaled our internal AI Agents, we hit a dead end: Running LLM-generated arbitrary code in Docker is basically running naked on security due to container escape risks. But using full traditional VMs takes minutes to boot and eats too much memory to support high-density concurrency. We loved the developer experience of SaaS sandboxes on the market, but they are closed-source, expensive, and have too high a barrier to entry for self-hosting. So, our team decided to build our own. After months of grinding, using RustVMM and KVM, we built a blazing-fast, ultra-lightweight secure sandbox service from the ground up: CubeSandbox. Today, we are officially open-sourcing it. To balance security and performance, we stripped the underlying OS to the absolute extreme. Here’s what it can do right now: 1. <60ms blazing-fast cold start: End-to-end latency is under 60ms, making it 2.5x to 50x faster than traditional secure sandbox solutions. 2. <5MB extreme memory footprint: Memory per instance is kept under 5MB. A single 96-vCPU physical machine can easily run 2,000+ sandboxes concurrently, reducing storage consumption by 90%. 3. Massive concurrency scheduling: Capable of spinning up hundreds of thousands of instances in minutes. 4. True kernel-level isolation: Every Agent gets its own dedicated Guest OS kernel. 5. Native E2B SDK compatibility: Just swap a single URL environment variable. Zero code changes required for smooth migration and hosting. Also, a millisecond-level “snapshot rollback” feature is coming soon… Before opening the repo today, CubeSandbox has been running silently behind the scenes in Tencent Cloud, serving massive real-world AI Agent workloads in production. As we open-source it today, it is no longer a prototype, but battle-tested, production-ready infrastructure. Today, we hand it over to the community. Because we believe that high-performance agent infrastructure shouldn’t be exclusive to a few—it belongs to every developer worldwide who demands ultimate security and freedom. The project is still in its very early open-source stages, and we are really looking forward to your hardest critiques and architectural roasts. I’ll be hanging out here all day to answer your questions. The source code and deployment guides are all in the README. Come play with it! https:&#x2F;&#x2F;github.com&#x2F;TencentCloud&#x2F;CubeSandbox

收录记录

  1. Show HN

    2026年4月22日 · 1 次收录

  2. GitHub Trending

    2026年7月2日 – 2026年7月9日 · 4 次收录

讨论这个产品