Skip to content

ms-enclave Documentation

logo

ms-enclave is a modular, robust sandbox runtime that gives your applications a secure, isolated execution environment. Backed by Docker for strong isolation, with local / HTTP managers and an extensible tool system to safely run code (including LLM-generated code) in a controlled environment.

Key features

  • πŸ”’ Secure isolation: Docker-based isolation with resource limits
  • 🧩 Modular: sandboxes, tools, and managers are all pluggable via registry/factory
  • ⚑ Stable: lightweight implementation, fast startup, pool warm-up supported
  • 🌐 Remote-ready: built-in FastAPI server, identical API for local and remote
  • πŸ”§ OpenAI-compatible: tool schemas plug directly into Function Calling

Requirements

  • Python β‰₯ 3.10
  • OS: Linux / macOS / Windows (with Docker)
  • A working Docker daemon; port 8888 must be free for the Notebook sandbox

Where to start

New here?

  1. Installation
  2. 5-Minute Quickstart β€” one minimal runnable example
  3. Core Concepts β€” understand Sandbox / Manager / Tool

By task

Deployment

Extending

API reference

Stuck?