Microsandbox: Secure, Self-Hosted Sandboxes for AI Agents and Untrusted Code

This repository profile is provided by osrepos.com, an open source repository discovery platform.

Microsandbox: Secure, Self-Hosted Sandboxes for AI Agents and Untrusted Code

Summary

Microsandbox is an open-source project providing self-hosted, hardware-isolated sandboxes designed for securely executing untrusted user and AI code. It offers a unique balance of strong isolation, instant startup times, and OCI compatibility, addressing the challenges of traditional container and VM solutions. Built in Rust, Microsandbox is ideal for developers building agentic AI applications requiring robust and flexible execution environments.

Repository Information

Analyzed by OSRepos on January 28, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introdução

Microsandbox é um projeto open-source inovador desenvolvido pela zerocore-ai, que oferece sandboxes auto-hospedadas e isoladas por hardware para a execução segura de código de usuário e IA não confiável. Construído em Rust, ele visa superar as limitações de soluções tradicionais como contêineres e máquinas virtuais, fornecendo uma combinação de forte isolamento, tempos de inicialização instantâneos e compatibilidade OCI. Isso o torna uma espinha dorsal ideal para a web agêntica, permitindo ambientes de execução rápidos, seguros e flexíveis para agentes de IA e outras cargas de trabalho exigentes. Com 4498 estrelas e 208 forks, está ganhando uma tração significativa na comunidade de desenvolvedores.

Instalação

Para começar com o Microsandbox, siga estes passos simples:

  1. Baixe microsandbox:

    curl -sSL https://get.microsandbox.dev | sh
    
  2. Inicie o servidor:

    msb server start --dev
    
  3. Puxe uma imagem de ambiente (Opcional):

    msb pull microsandbox/python
    

Exemplos

Microsandbox oferece maneiras flexíveis de gerenciar e acessar sandboxes, incluindo utilitários de linha de comando e SDKs para várias linguagens.

Exemplos de Linha de Comando:

  • Sandbox Temporário: Para tarefas únicas, crie um ambiente limpo que não deixa rastros na saída.

    msx python # ou `msb exe --image python`
    
  • Sandboxes em todo o Sistema: Execute sandboxes de longa duração configuradas automaticamente como executáveis em todo o sistema.

    msi python py-data # ou `msb install --image alpine py-data`
    py-data # De qualquer diretório, execute a sandbox
    

Exemplos de SDK (BETA):

Microsandbox fornece SDKs para integrar capacidades de sandboxing diretamente em suas aplicações.

  • Python:

    import asyncio
    from microsandbox import PythonSandbox
    
    async def main():
        async with PythonSandbox.create(name="test") as sb:
            exec = await sb.run("name = 'Python'")
            exec = await sb.run("print(f'Hello {name}!')")
    
        print(await exec.output()) # prints Hello Python!
    
    asyncio.run(main())
    
  • JavaScript:

    import { NodeSandbox } from "microsandbox";
    
    async function main() {
      const sb = await NodeSandbox.create({ name: "test" });
    
      try {
        let exec = await sb.run("var name = 'JavaScript'");
        exec = await sb.run("console.log(`Hello ${name}!`)");
    
        console.log(await exec.output()); // prints Hello JavaScript!
      } finally {
        await sb.stop();
      }
    }
    
    main().catch(console.error);
    
  • Rust:

    use microsandbox::{SandboxOptions, PythonSandbox};
    
    #[tokio::main]
    async fn main() -> Result<(), Box> {
        let options = SandboxOptions::builder().name("test").build();
        let mut sb = PythonSandbox::create(options).await?;
    
        let exec = sb.run(r#"name = "Rust""#).await?;
        let exec = sb.run(r#"print(f"Hello {name}!")"#).await?;
    
        println!("{}", exec.output().await?); // prints Hello Rust!
    
        sb.stop().await?;
    
        Ok(())
    }
    

Porquê usar Microsandbox

Microsandbox se destaca por oferecer uma combinação atraente de recursos que abordam necessidades críticas no desenvolvimento de software moderno, especialmente para aplicações de IA e agênticas:

  • Forte Isolamento: Atinge isolamento de VM em nível de hardware usando microVMs, garantindo que o código não confiável seja executado em um ambiente altamente seguro.

  • Inicialização Instantânea: Com tempos de inicialização abaixo de 200 ms, o Microsandbox fornece ambientes de execução quase instantâneos, cruciais para aplicações dinâmicas e responsivas.

  • Compatível com OCI: Pode executar imagens de contêiner padrão, permitindo que os desenvolvedores aproveitem os ecossistemas existentes de Docker e OCI.

  • Auto-Hospedado: Implante o Microsandbox dentro de sua própria infraestrutura, dando-lhe total autonomia e controle sobre seus ambientes de execução.

  • Pronto para IA: Integra-se perfeitamente com fluxos de trabalho de agentes e IA via MCP, tornando-o uma ferramenta poderosa para construir sistemas de IA seguros e escaláveis.

Seu design como a espinha dorsal de execução da web agêntica destaca seu foco em velocidade, segurança e flexibilidade para a próxima geração de aplicações impulsionadas por IA.

Links

Related repositories

Similar repositories that may be relevant next.

Start-Technologies: Monorepo for StartOS and Self-Hosting Solutions

Start-Technologies: Monorepo for StartOS and Self-Hosting Solutions

August 13, 2026

Start-Technologies is the comprehensive monorepo by Start9Labs, featuring StartOS as its flagship product. This open-source Linux distribution enables users to run personal servers, facilitating the self-hosting of various services for enhanced data ownership and privacy. It integrates a robust Rust backend, an Angular frontend, and a unique diff-based database for reactive state synchronization.

open-sourceself-hostingpersonal-server
Cortex-Mem: A Production-Ready Memory Framework for Autonomous AI Systems

Cortex-Mem: A Production-Ready Memory Framework for Autonomous AI Systems

August 12, 2026

Cortex-Mem is a production-ready, AI-native memory framework built in Rust, providing intelligent long-term memory for autonomous systems. It features a hierarchical three-tier memory architecture for efficient information management, from extraction and search to automated optimization. This framework empowers AI agents to remember, learn, and personalize interactions across sessions, transforming stateless AI into context-aware partners.

RustAImemory-management
CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

CubeSandbox: Instant, Concurrent, and Secure Sandbox for AI Agents

August 9, 2026

CubeSandbox, developed by TencentCloud, is a high-performance, secure sandbox service built on RustVMM and KVM, designed specifically for AI agents. It offers ultra-fast startup times, hardware-level isolation, and high-density deployment, making it ideal for scalable and secure agent execution environments. The service is also fully compatible with the E2B SDK for seamless integration.

agentscontainersandbox
StringWars: Benchmarking High-Performance String Processing in Rust and Python

StringWars: Benchmarking High-Performance String Processing in Rust and Python

July 21, 2026

StringWars is a comprehensive GitHub repository dedicated to benchmarking performance-oriented string processing libraries in Rust and Python. It meticulously compares various operations, including substring search, hashing, and edit distances, across both CPUs and GPUs. This project serves as an invaluable resource for developers seeking to identify the fastest and most efficient solutions for critical string manipulation tasks, particularly those leveraging modern SIMD instructions and GPU acceleration.

benchmarkstring-processingRust

Source repository

Open the original repository on GitHub.

12 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️