Sandfort Sandbox: run AI code in isolation

    by Nenad Mitrovic

    1

    This skill teaches your agent when to use a sandbox and how to drive it.

    Free

    Security scanned

    Works with the AI Agents you already use

    Sandfort Sandbox: run AI code in isolation

    Example session with this skill installed

    I need to test this Python snippet that calculates Fibonacci numbers, but I don't want to run it on my laptop. Use a sandbox.

    • Read your context and instructions
    • Compiled the sandfort sandbox

    I ran it in a disposable Sandfort sandbox instead of your machine.

    What I did

    1. create_sandbox(name="fib-test", snapshot="python:3.12-slim") -> {"id": "sbx_01M88W...", "state": "started"}
    2. upload_text_file(sandbox_id, path="/tmp/fib.py", content=<your snippet>) -> uploaded 142 bytes
    3. run_command(sandbox_id, command="python3 /tmp/fib.py", cwd="/tmp") ->
    {"exit_code": 0, "stdout": "[0, 1, 1, 2, 3, 5, 8, 13, 21, 34]\n", "stderr": "", "timed_out": false}
    
    1. delete_sandbox(sandbox_id) -> deleted, nothing persists

    Verdict

    CheckResult
    Exit code0
    Outputthe first 10 Fibonacci numbers, as expected
    Timed outfalse
    Touched your files or networkno, the code ran inside the sandbox only

    The snippet is correct and safe to keep. If you plan repeated runs, I can create_snapshot the prepared environment first so the next run starts from it.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Sandfort is a self-hosted sandbox platform for running AI-generated code: a REST API, Python and TypeScript SDKs, a CLI and a stdio MCP server (sandfort-mcp) over isolated Docker-backed sandboxes. This skill teaches your agent when to use a sandbox and how to drive it.

    What it does

    • Tells the agent when a sandbox is the right call: code the agent just wrote, untrusted or downloaded scripts, disposable environments, testing without the user's files, credentials or network.
    • Documents the 14 sandfort-mcp tools with real parameters and defaults: create, run code (Python, JavaScript, TypeScript, Bash), run commands, upload and download files, inspect the filesystem, snapshot, list and delete.
    • Safety defaults: pick the isolation tier on purpose (container, gvisor or microvm), start closed on the network with an egress allowlist, never put production secrets in a sandbox, keep the API key out of the conversation, delete sandboxes when done.
    • A "No server yet?" branch: a local Docker quickstart from the repository README, or the invite-only hosted evaluation beta. The agent shows commands and lets the user run or approve them; it does not edit configuration files or handle API keys itself.

    What you need

    • A reachable Sandfort server (self-hosted on your own Docker host, or the invite-only hosted beta for evaluation) and an API key.
    • The MCP server: uvx sandfort-mcp@0.1.0 (Python 3.12+). Configuration template is in the skill.

    Limits, stated plainly

    • Isolation is container-based by default: container shares the host kernel, gvisor is a user-space kernel, microvm (Kata Containers) needs KVM. If your threat model requires microVM isolation in production, Sandfort is not a fit today.
    • Pre-1.0 beta (version 0.1.0). Production use is self-hosted; the hosted beta is for evaluation only, with no SLA.
    • The MCP tool set is small on purpose; files over 1 MiB are refused in both directions.

    License and source

    Skill and sandfort-mcp are Apache-2.0 and free. The skill is also on GitHub (malinele/sandfort-skills, installable with npx skills add malinele/sandfort-skills); the Sandfort server is source-available (FSL-1.1-Apache-2.0) at github.com/malinele/sandfort.

    Requires Python 3.12+ and a running Sandfort server. 1 MiB file transfer limit. MCP toolset cannot set isolation tiers or egress allowlists; use the SDK for strict security requirements.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Accounts
    Sandfort serverAPI key
    Software
    Sandfort MCPPythonGit

    Needs a reachable Sandfort server and an sf_ API key. No server yet? The skill walks you through a local Docker quickstart or requesting hosted beta access.

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Environment Variables
    Listed9 days ago

    What's inside

    Frequently Asked Questions

    This skill acts as a secure buffer between an AI agent and your local system, routing all generated code into isolated Docker containers (gVisor-hardened) to prevent accidental data loss or unauthorized system access.

    The skill is compatible with any AI agent or platform that supports the Model Context Protocol (MCP), including Claude Desktop and other MCP-compliant IDEs and frameworks.

    Setup requires a reachable Sandfort API server (self-hosted or beta-hosted) and the installation of the sandfort-mcp server to bridge your agent to the sandbox environment.

    Yes, the 'State Persistence' feature allows you to create snapshots of a sandbox's filesystem, making it easy to reuse complex environments or specific dependency sets across different sessions.

    The skill currently supports a maximum file transfer size of 1 MiB for uploads and downloads, which is optimized for scripts, logs, and small data samples.

    While the sandbox provides a secure execution layer, users must ensure their Sandfort API endpoint is properly secured and that networking egress allowlists are configured to prevent data exfiltration.

    New in LLM Ops

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Free