SuperAPIAI Directory

AgentRun vs Sourcery

Metrics & specs comparison

AgentRun

AgentRun is a Python library for safely running Python code generated by large language models (LLMs). Built on the Docker Python SDK and RestrictedPython, it provides an API that executes isolated code in a single line. Key features include: checking code safety before execution, running in a fully isolated Docker container, configurable resource limits (CPU, memory, timeout), automatic dependency installation and uninstallation, dependency caching, automatic cleanup of generated files, and support for self-hosting via a REST API. The library has 97% test coverage, full static typing, and only two dependencies. It is suitable for scenarios that require letting LLMs execute code, such as mathematical calculations and data analysis, while preventing the execution of dangerous code.

DimensionAgentRunSourcery
CategoryAI codingAI coding
Monthly visits—
38.8K
MoM—-23.6%
Global rank—#740,667
Avg. visit—14s
AI referrals—1.6%
Pricing开源项目(可免费自部署)开源项目(可免费自部署)
PlatformsLinux · APIWeb · Linux
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools