沙盒:安全、快速地运行不受信任的AI代码
Sandbox: Run untrusted AI code safely, fast

原始链接: https://github.com/PwnFunction/sandbox

安全、快速地运行AI代码,不受信任。一个使用Firecracker微型虚拟机构建的、可自托管的代码执行沙箱平台。亚200毫秒启动时间,基于快照的热池。Concave提供安全、隔离的代码执行环境,用于运行不受信任的代码。构建于Firecracker微型虚拟机、gRPC编排和现代基础设施工具之上。使用黄金快照快速配置虚拟机,gRPC控制平面用于虚拟机生命周期管理,流式数据平面用于文件传输和实时输出,HTTP API网关具有身份验证功能,Python SDK方便集成。提供仪表盘和文档站点。详见SETUP.md获取完整的部署说明。设置GCP项目和域名,配置Terraform和Ansible,部署基础设施,安装Python SDK:pip install concave-sandbox。欢迎贡献!详见CONTRIBUTING.md获取指南。如果您发现安全漏洞,请创建一个issue。所有安全问题都将得到及时处理。本项目采用MIT许可证。

## Hacker News 讨论:AI 代码沙箱 最近一篇 Hacker News 文章介绍了“Sandbox”项目(github.com/pwnfunction),用于安全地运行不受信任的 AI 代码。讨论很快集中在*本地*运行这些沙箱的挑战上,而不是依赖像 GCP 这样的云服务提供商。 许多用户表示有兴趣使用更易于使用的体验来利用 Firecracker VM 等技术,认为设置过程复杂且不一致。一位开发者正在构建一个 Rust 库,旨在简化这一过程,提供带有 KVM/Virtualization.framework 支持、预热 VM 池和结构化命令执行的 CLI 和 API。评论者认为理想的用户体验应该类似于 Docker 在管理网络和底层工具方面的简单性。 其他替代方案也被讨论,包括“Coderunner”(github.com/instavm/coderunner),一个基于 Apple 容器的 macOS 沙箱,以及 Modal.com 作为一种经济高效的云解决方案。核心问题是本地执行与云 VM 在代理任务中的优势,一些人更喜欢本地 VM 对敏感数据的安全性。
相关文章

原文

Concave Sandbox Banner

Run AI code safely, fast, untrusted

A self-hostable code execution sandbox platform built with Firecracker microVMs. Sub-200ms startup times with snapshot-based warm pooling.

Concave provides secure, isolated code execution environments for running untrusted code. Built with Firecracker microVMs, gRPC orchestration, and modern infrastructure tools.

  • Fast VM provisioning with golden snapshots
  • gRPC control plane for VM lifecycle management
  • Streaming data plane for file transfers and real-time output
  • HTTP API gateway with authentication
  • Python SDK for easy integration
  • Dashboard and documentation site

See SETUP.md for complete deployment instructions.

  1. Set up GCP project and domain
  2. Configure Terraform and Ansible
  3. Deploy infrastructure
  4. Install Python SDK: pip install concave-sandbox

Contributions are welcome! See CONTRIBUTING.md for guidelines.

If you discover a security vulnerability, please create an issue. All security issues will be promptly addressed.

This project is licensed under the MIT license.

联系我们 contact @ memedata.com