nowfound

AI · November 19, 2024

WASM runtime for sandboxing Python code

A while ago I started experimenting with compiling the Python interpreter to WASM. To build a secure, fast, and lightweight sandbox for code execution — ideal for running LLM-generated Python code.

WASM runtime for sandboxing Python code launched on November 19, 2024 with 9 votes, #2,254 of 4,990 launches that month and more than 75% of that year's launches. The site was still online in September 2026, 1 year on.

What it does

Experimental wasm32-unknown-wasi runtime for Python code execution - ErikKaum/runner

An experimental Rust-based server that executes Python code in a WebAssembly+WASI sandbox. The server provides a simple HTTP API to run Python code securely and with extremely fast startup times. This makes Runner ideal for running LLM-generated code safely. The purpose of this repo is to explore the current state of WASM+WASI as a sandboxed runtime for code execution. I've always been amazed by the Cloudflare Workers runtime , which builds on the V8 engine. You can think of this as an aspiration to build something: With the development build, it takes around 15 seconds to load the Python runtime (about 1 second on release builds). 2024-11-17T17:01:08.345563Z INFO runner: starting server…from github.com

Does a similar job

all alternatives →
  • Sandboxing untrusted code using WebAssemblyFeb 2026 · github.com · ▲76

    Hi everyone, I built a runtime to isolate untrusted code using wasm sandboxes. Basically, it protects your host system from problems that untrusted code can cause. We’ve had a great discussion about sandboxing in Python lately that elaborates a bit more on the problem [1]. In TypeScript, wasm integration is even more natural thanks to the close proximity between both ecosystems. The core is built in Rust. On top of that, I use WASI 0.2 via wasmtime and the component model, along with custom SDKs that keep things as idiomatic as possible. For example, in Python we have a simple decorator:…

  • PythonSandbox2022 · ▲157

    Write, run, debug, embed and share your Python code

  • My LLM CLI tool can run tools now, from Python code or plugins2025 · simonwillison.net · ▲529

    LLM 0.26 is out with the biggest new feature since I started the project: support for tools. You can now use the LLM CLI tool—and Python library—to grant LLMs from …

  • A library for `exec`ing Python code safely using WASM2023 · github.com · ▲6

    Inspired by Simon Willison's blog post that was catalyzed by this HN post: https://news.ycombinator.com/item?id=34598024 wasm_exec is a Wasm-powered, sandboxed implementation of exec() for safely running dynamic Python code There are number of use-cases emerging that require arbitrary code execution, often code that is generated by LLMs (Large Language Models) like ChatGPT. This can enable some really cool functionality - like generative BI or website generation - but also introduce a massive security flaw if implemented via eval() or exec(). This is because arbitrary code can…

  • A MCP server to evaluate Python code in WASM VM using RustPython2025 · github.com · ▲41

    This is a pet project of mine where I build a MCP with WASM plugin system (published to OCI). I added a new plugin today that use Rust, compiled to WebAssembly to run Python code securely.

  • Amla Sandbox – WASM bash shell sandbox for AI agentsJan 2026 · github.com · ▲146

    WASM sandbox for running LLM-generated code safely. Agents get a bash-like shell and can only call tools you provide, with constraints you define. No Docker, no subprocess, no SaaS — just pip install amla-sandbox

More ai this month

the category →
  • Video model that turns script into viral social media videos

    AI · 17d ago · spira.ai

  • The browser where Claude Code and Codex work beside you

    AI · 16d ago · rill.love

  • Kolibri is Aleph Alpha

    AI · 18d ago · tej.as

  • Paintings by AI models: programs run through a simulation of oil paint.

    AI · 20d ago · stillwet.art

  • Onepin▲384

    AI voiceover with every name, price and date said right

    AI · 30d ago · onepin.ai

  • A real-time world model you can explore and change

    AI · 28d ago · world.pixverse.video

Source: Show HN post ↗

Launched alongside, November 2024

the whole month →
  • Lovable▲1,477

    Hey HN! Previous CERN physicist turned hacker here. We've developed a way to make AI coding actually work by systematically identifying and fixing places where LLMs typically fail in full-stack development. Today we're launching as Lovable (previously gptengineer.app) since it's such a big change. The problem? AI writing code typically make small mistakes and then get stuck. Those who tried know the frustration. We fixed most of this by mapping out where LLMs fail in full-stack dev and engineering around those pitfalls with prompt chains. Thanks to this, in all comparisons I found with: v0,…

    AI · 2024 · lovable.dev

  • Superchat▲1,427

    AI Agents for WhatsApp Business, Instagram & Co

    Growth · 2024 · superchat.com

  • Postiz▲1,188

    Streamline your social media with Postiz. Schedule posts, analyze performance, and manage all accounts in one place.

    Dev tools · 2024 · postiz.com

  • I wasn't quite sure if this qualified as "Show HN" given you can't really download it and try it out. However, dang said[0]: > If it's hardware or something that's not so easy to try out over the internet, find a different way to show how it actually works—a video, for example, or a detailed post with photos. Hopefully I did that? Additionally, I've put code and a detailed guide for the netboot computer management setup on GitHub: https://github.com/kentonv/lanparty Anyway, if this shouldn't have been Show HN, I apologize! [0]…

    Dev tools · 2024 · lanparty.house

  • Unlock a new level productivity with AI, Cloud Sync and more

    Work · 2024 · raycast.com

  • Cap▲1,047

    Beautiful screen recordings, owned by you. 100% open source.

    Dev tools · 2024 · cap.so