Enterprise DNA
O Open Source Orchestration medium

AgentRun

by Community

The easiest, and fastest way to run AI-generated Python code safely

A

OSS

AgentRun

Added 1 June 2026

Overview

AgentRun is an open-source Python library that provides a safe sandbox for executing AI-generated Python code. It focuses on speed and ease of use, allowing developers to run generated scripts without risking system integrity.

Best for

Best for
Developers who need to safely and quickly run AI-generated Python code in experimental or agentic contexts

Use cases

  • Running Python code generated by large language models securely
  • Testing and validating AI-generated scripts in isolated environments
  • Integrating safe code execution into agentic workflows or pipelines

Notes

AgentRun is an open-source Python library that provides a safe sandbox for executing AI-generated Python code. It focuses on speed and ease of use, allowing developers to run generated scripts without risking system integrity.

371 stars on GitHub. Last updated 2024-11-29. Licensed Apache-2.0.

Use cases

  • Running Python code generated by large language models securely
  • Testing and validating AI-generated scripts in isolated environments
  • Integrating safe code execution into agentic workflows or pipelines

Pros

  • Simple and fast setup for executing untrusted code
  • Built-in sandboxing reduces risk of harmful side effects
  • Lightweight library with minimal dependencies

Cons

  • Only supports Python code execution
  • Not designed for high-scale production workloads
  • Limited documentation and community support due to early-stage project

Indexed from awesome-langchain and enriched against its public facts.

Pros

  • Simple and fast setup for executing untrusted code
  • Built-in sandboxing reduces risk of harmful side effects
  • Lightweight library with minimal dependencies

Cons

  • Only supports Python code execution
  • Not designed for high-scale production workloads
  • Limited documentation and community support due to early-stage project

Pairs with

Other entries in the index that connect to this one. Click through to see the chain.