24 free alternatives to A library for execing Python code safely using
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 library for execing Python code safely using is free itself (its own site, checked November 2026). Below are 24 products that do a similar job and cost nothing to start: 23 free outright and 1 with a free plan and paid upgrades. Each price was read from the product's own site. They are ranked by how close each is in meaning, then by launch-day votes.
- 1

Experimental wasm32-unknown-wasi runtime for Python code execution
2024 · github.com · price checked November 2026
- 2
JawsFree▲290Jaws is an open-source ahead-of-time compiler that converts JavaScript code into WebAssembly.
2024 · github.com · price checked November 2026
- 3

This is a WebAssembly-based runtime that isolates untrusted code to protect host systems from potential damage.
Feb 2026 · github.com · price checked November 2026
- 4
MagenticFree▲283This is a Python package that allows you to write function signatures to define LLM queries. This makes it easy to mix regular code with calls to LLMs, which enables you to use the LLM for its creativity and reasoning while also enforcing structure/logic as necessary. LLM output is parsed for you according to the return type annotation of the function, including complex return types such as streaming an array of structured objects. I built this to show that we can think about using LLMs more fluidly than just chains and chats, i.e. more interchangeably with regular code, and to make it…
2023 · github.com · price checked November 2026
- 5

This web app experiment tests whether large language models can replace traditional code by handling every HTTP request directly.
2025 · github.com · price checked November 2026
- 6

Outlines is a Python library for controlling text generation with large language models.
2023 · github.com · price checked November 2026
- 7
SembleFree▲445Semble is an open-source code search tool designed for AI agents working with large codebases.
May 2026 · github.com · price checked November 2026
- 8
AlgojammerFree▲309An experimental code editor for writing algorithms
2018 · github.com · price checked November 2026
- 9
LeapingFree▲120Leaping is a pytest plugin that uses an LLM to debug Python tests by analyzing execution logs in natural language.
2024 · github.com · price checked November 2026
- 10

AST-based fragmental source code refactoring toolkit for Python
2021 · github.com · price checked November 2026
- 11
FuturecoderFree▲371Some highlights: - 100% free and open source (https://github.com/alexmojaki/futurecoder), no ads or paid content. - No account required at any point. You can start instantly. (You can create an account if you want to save your progress online and across devices. Your email is only used for password resets) - 3 integrated debuggers can be started with one click to show what your code is doing in different ways. - Enhanced tracebacks make errors easy to understand. - Useful for anyone: You can have the above without having to look at the course. IDE mode…
2023 · futurecoder.io · price checked November 2026
- 12

This project compiles Erlang code to WebAssembly and runs it as an HTTP request handler within Wasmtime.
2024 · github.com · price checked November 2026
- 13
PypFree▲285Easily run Python at the shell! Magical, but never mysterious.
2020 · github.com · price checked November 2026
- 14

org-babel integration with Jupyter for evaluation of (Python by default) code blocks
2015 · github.com · price checked November 2026
- 15

Highlight.io is a web application monitoring platform that uses large language models and embeddings to automatically classify and organize application errors.
2023 · github.com · price checked November 2026
- 16
KatakateFree▲124Katakate runs dozens of lightweight virtual machines per node for safe execution of untrusted code at scale.
2025 · github.com · price checked November 2026
- 17
TinyGoFree▲177Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM.
2018 · github.com · price checked November 2026
- 18
Amla SandboxFree▲146WASM 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
Jan 2026 · github.com · price checked November 2026
- 19

A pure ORM for writing native SQL queries yielding pure business objects
2021 · github.com · price checked November 2026
- 20

This is a minimal WebAssembly compiler written in Go that converts WebAssembly text format (WAT) to binary format (WASM).
2022 · github.com · price checked November 2026
- 21
PrometeoFree▲166An experimental Python-to-C transpiler and domain specific language for embedded high-performance computing
2021 · github.com · price checked November 2026
- 22
HatchFree▲108Modern, extensible Python project management.
2017 · github.com · price checked November 2026
- 23

This TypeScript package allows you to safely execute JavaScript code within a WebAssembly sandbox using the QuickJS engine. Perfect for isolating and running untrusted code securely, it leverages the lightweight and fast QuickJS engine compiled to WebAssembly, providing a robust environment for code execution. Features - *Security*: Run untrusted JavaScript code in a safe, isolated environment. - *File System*: Can mount a virtual file system - *Custom Node Modules*: Custom node modules are mountable - *Fetch Client*: Can provide a fetch client to make http(s) calls - *Test-Runner*: Includes…
2024 · github.com · price checked November 2026
- 24
ExeclaveFree plan, paid from $199/mo▲123Execlave is the AI agent governance and enforcement platform. Govern autonomous AI agents with runtime policy enforcement, kill switches, and audit-ready compliance evidence — in under 20 ms. SOC 2, EU AI Act, ISO 27001 ready.
Aug 2026 · execlave.com · price checked November 2026
All alternatives to A library for execing Python code safely using, paid too →About A library for execing Python code safely using →
Free means the product’s own site says it is free or offers a free plan, as read on the date shown. Plans change; check the site before you rely on one.