AI Code Sandbox

Published

An increasingly important part of the AI stack is running untrusted code in a sandbox.

List of code sandbox for AI offerings:

Open source:

WebAssembly alternatives:

  • amla-sandbox (QuickJS) Unfortunately: “The WASM binary is currently proprietary—you can use it freely with this package, but you can’t extract or redistribute it separately. We’re working on open sourcing the WASM runtime.”
  • eryx (componentize-py)
  • localsandbox (pyodide + deno)
  • wassette (multiple languages wrapped in an MCP server)

Rolling your own:

See also:

  • Rustpython With Wasm

    RustPython is a python interpreter written in rust. What makes it interesting is that it does no use cpython which makes it much more straightforward to target WebAssembly and do things like execute untrusted code on a host machine.