SuperAPIAI Directory

AgentRun vs autogen

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.

DimensionAgentRunautogen
CategoryAI codingAI coding
Pricing开源项目(可免费自部署)GitHub 开源项目 · 61,962 Stars
PlatformsLinux · API—
GitHub stars— 61,962
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools