Self-hosted platform for secure code execution
Top 14.2% on sourcepulse
This project provides a self-hosted platform for securely executing untrusted user or AI-generated code. It addresses the limitations of traditional methods like local execution, containers, and VMs by offering hardware-level isolation with instant startup times, all within your own infrastructure. The target audience includes developers, AI agents, and data analysts who need to run potentially malicious or experimental code without compromising system security or sacrificing performance.
How It Works
Microsandbox leverages microVMs powered by libkrun
for strong, hardware-level isolation. This approach provides superior security compared to containerization, which shares host kernels. The system boasts sub-200ms boot times, significantly faster than traditional VMs, enabling near-instantaneous code execution. It is OCI compatible, allowing the use of standard container images, and includes built-in MCP support for seamless integration with AI tools.
Quick Start & Requirements
curl -sSL https://get.microsandbox.dev | sh
msb server start --dev
msb pull microsandbox/python
pip install microsandbox
(SDKs for JS, Rust, and others available)Highlighted Details
Sandboxfile
for environment management.Maintenance & Community
The project is actively developed with a clear contribution guide. Community expansion for SDKs is encouraged.
Licensing & Compatibility
Licensed under the Apache License 2.0, permitting commercial use and integration with closed-source projects.
Limitations & Caveats
The SDK is currently in Beta. The first run of an environment image will incur a download delay.
3 days ago
Inactive